[OFFER ALERT!] This Halloween, Get Any Premium Theme for Just $19 [GET IT NOW]
Jump to content

[Rank Math SEO Plugin] RankMath Plugin Conflict with wpportfolio Plugin


Team_TechUptodate
 Share

Recommended Posts

  • Support

Hello,

I was able to reproduce this issue on my setup. The problem is the links on the portfolio page is using placeholder URLs like {{ link_url }}, which is breaking the Rank Math code that adds nofollow, target _blank to external URL's. I've forwarded this issue to our Development team and they will add a condition to validate URL before adding nofollow, target attributes to external links.

For now, to fix it on your site, I added below filter code in your theme's functions.php file:

add_action( 'rank_math/head', function() {
	if ( is_page( 'portfolio' ) ) {
		global $wp_filter;
		if ( isset( $wp_filter["wp_head"] ) && isset( $wp_filter["wp_head"][99] ) ) {
	    unset( $wp_filter["wp_head"][99] );
	  }
	}
});

The portfolio page is now working fine on your site.

Hope that helps. Please let us know if there is anything else.

Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

Thank you for contacting MyThemeShop and sorry for any inconvenience that might have been caused due to that.

Please share your login details in the "Sensitive Data" section by clicking the Add button on the top and bottom right-hand side on this ticket and follow the instructions shown in the screenshot below:
rQoczm+

Looking forward to helping you. Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

I was able to reproduce this issue on my setup. The problem is the links on the portfolio page is using placeholder URLs like {{ link_url }}, which is breaking the Rank Math code that adds nofollow, target _blank to external URL's. I've forwarded this issue to our Development team and they will add a condition to validate URL before adding nofollow, target attributes to external links.

For now, to fix it on your site, I added below filter code in your theme's functions.php file:

add_action( 'rank_math/head', function() {
	if ( is_page( 'portfolio' ) ) {
		global $wp_filter;
		if ( isset( $wp_filter["wp_head"] ) && isset( $wp_filter["wp_head"][99] ) ) {
	    unset( $wp_filter["wp_head"][99] );
	  }
	}
});

The portfolio page is now working fine on your site.

Hope that helps. Please let us know if there is anything else.

Thank you.


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

Hello,

The portfolio page is working fine on your site ( added screencast in the Sensitive Data Section ), please clear your browser's cache and check again.

Thank you.

 


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

  • Support

We are really glad to hear that it is working now.

If you need our assistance with anything else, please do not hesitate to let us know. 


🏁Rank #1 on Google With our WordPress SEO Plugin.

Score a 💯on PageSpeed and Dominate Search Rankings.

✏ Editing theme files? Please create a child theme to make your changes update-proof.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...