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

Pratik.d

Support
  • Posts

    1,169
  • Joined

  • Last visited

Posts posted by Pratik.d

  1. Hello,

    To change Homepage link, please add below filter code in your theme's functions.php file:

    add_filter( 'rank_math/frontend/breadcrumb/args', function( $args ) {
    	$shop_page_url = get_permalink( wc_get_page_id( 'shop' ) );
    	$args['wrap_before'] = '<nav class="rank-math-breadcrumb"><p><a href="'. $shop_page_url .'">Shop</a> <span class="separator"> - </span>';
    	return $args;
    });

     

    6 hours ago, support40 said:

    On a side note for anyone using the7 theme, their kind support advised on the correct approach to make Rank Math breadcrumbs work in the7 theme. This is placed in the child's functions.php file:
    function presscore_get_breadcrumbs(){
    if(function_exists('rank_math_the_breadcrumbs'))
    {
    rank_math_the_breadcrumbs();
    }
    }

    We still have an issue to rule out, as Rank Math breadcrumbs are appearing above the header, when its expected to be within the header. **Image shows where it needs to be.

    Are you sure presscore_get_breadcrumbs() function doesn't run above the header? The rank_math_the_breadcrumbs is just a function which output Breadcrumbs data where you placed it.

    Hope that helps. Thank you.

  2. Hello,

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

    Thank you for letting us know this issue. It looks like Rank Math is not recognizing the Focus keyword in content when more than 4 words are used in Focus keyword. I've forwarded this issue to our development team and they will fix this issue in the next release of the plugin.

    We appreciate your patience. Thank you.

  3. Hello,

    Disabling Rich Snippet will only disable the Snippet data added by Rank Math plugin. It will not remove the og & twitter tags.

    To remove the twitter tags added by Rank Math please add below filter code in your theme's functions.php file:

    add_action( 'rank_math/head', function() {
    	remove_all_actions( 'rank_math/opengraph/facebook' ); // Use this code to remove FB open graph tags
    	remove_all_actions( 'rank_math/opengraph/twitter' ); // Use this code to remove Twitter tags
    });

    Hope that helps. Thank you.

  4. Hello,

    This is not an issue, that's how Rank Math adds the description. If a description is not added in the form then it uses the excerpt content and if there is no content in excerpt then it uses the default description added in settings. To prevent the plugin from using excerpt content you will have to add the filter code I gave you before. There is no other option since it's not an issue.

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

    Thank you.

  5. Hello,

    I rechecked your site and, everything seems to be working fine. The priority in which description is added to the posts is:

    a) Description inserted in Post Setting's Description field
    b) Excerpt Text
    c) Description added in Settings
    d) Auto-generated description from content

    All posts on your site have an excerpt, that's the reason why the description is showing the excerpt text on the frontend. To ignore excerpt, i.e. step 2 and show the description added in Settings, please add the code I shared in my previous reply to your theme's functions.php file.

    Hope that helps. Thank you.

  6. Hello,

    I see the issue on your site but unfortunately, I could not recreate this issue on my setup. Also on your site, I see the issue only on the Article Posts, on pages, it seems to be working fine.

    Can you please check if there are any errors logged in debug.log file in wp-content/ folder?

    For now, to temporarily fix it on your site, I added below code to your active theme's funcitons.php file:

    add_filter( 'rank_math/frontend/description', function( $desc ) {
    	if( is_singular() ) {
    		global $post;
    		$desc = get_post_meta( $post->ID, 'rank_math_description', true );
    		if( ! $desc ) {
    			$settings = get_option( 'rank-math-options-titles' );
    			$desc = $settings["pt_{$post->post_type}_description"];
    			$desc = RankMath\Helper::replace_vars( $desc );
    		}
    	}
    
    	return $desc;
    });

    The posts now show the description added in Settings.

    The code I added fix the issue but please do share the error log information in the Sensitive Data Section so we can further debug the issue on your site as we are not able to reproduce it on our setup.

    Looking forward to helping you. Thank you.

  7. Hello,

    Thank you for contacting MyThemeShop today.

    You can use rank_math/snippet/rich_snippet_product_entity filter to change the product snippet data.

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $pre ) {
    	// You can modify/add product details here by extending the $pre variable
    	return $pre;
    });

    Hope that helps. If there is anything else, please let us know.

    Thank you.

  8. Hello,

    Thank you for contacting MyThemeShop today.

    You can use a plugin filter to add/change the output of the snippet data. Below is a syntax of this filter:

    add_filter( 'rank_math/snippet/rich_snippet_recipe_entity', function( $recipe ) {
    	// You can modify/add recipe details here by extending the $recipe variable
    	return $recipe;
    });

    Hope that helps. Thank you.

  9. Hello,

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

    Can you please confirm if Author archives in Dashboard >> Rank Math >> Titles & Meta >> Author Archives are enabled on your site:

    uYI4ml+

    If it is enabled then please share your login details in the "Sensitive Data" section by editing your first post on this ticket and follow the instructions shown in the screenshot below:
    sensitive.jpg

    Please make a reply once you update the details, so we get notified.

    Looking forward to helping you. Thank you.

    • Like 1
  10. Hello,

    All the Settings on your site looks ok to me. Your article's source code shows the title you added in the plugin settings. If you have recently made these changes than its likely that Google hasn't re-crawled and re-indexed your site since before these changes were made. To ask Google to see your site's most updated information, please submit your site to Google Search Console and request a re-index.

    Hope that helps. Thank you.

    • Like 1
  11. Hello,

    Thank you for providing the links. I see the issue on your site and it looks like WP Category Permalink is causing the problem. With Rank Math plugin there is no need to use other plugins to set category in the permalink. You can simply use Rank Math's Primary category option to select a category which you want to show in the permalink. Please see the screenshot in the Sensitive Data Section.

    I deactivated the WP Category Permalink plugin on your site and set the Primary category on the course which was showing 404. Please confirm if it's ok now.

    Hope that helps. Thank you.

  12.  Hello,

    28 minutes ago, sensenwedding said:

    And when I change 

           focus:  wedding

     image alt : wedding          OK

    the weird is when  I chage again 

         focus:  wedding

     image alt : wedding , wedding photographer  correct!!!...

    Maybe this is happening because you are adding focus keywords and alt tag in Chinese. In the Chinese language, there are no spaces between the words so that might be causing this problem.

    Can you tell us what exactly is not working with Ocean Plugin? The Heading issue you were facing before was not related to the Ocean plugin and I don't see Focus Keyword in any of the headings in the link you added above.

    Looking forward to helping you. Thank you.

  13. Hello,

    The tests are working fine on your site. I checked the link you added above, that post doesn't have any images which has alt matching the focus keyword. The focus keyword you used in that post is 高雄孕婦寫真 and the alt text you added to the Featured image is 高雄孕婦寫真, 高雄孕婦攝影. This test will only pass when alt text is equal to the focus keyword.

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

    Thank you.

  14. Hello,

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

    I logged into your site and I see the issue but unfortunately, I could not reproduce it on my setup. Could you please share your FTP access details as well in the Sensitive Data Section so we could further debug this issue on your site?

    Looking forward to helping you. Thank you.

  15. Hello,

    Please use below code to remove the Search console option for everyone except the IDs in the array:

    // Remove Search Console option from Settings.
    add_filter( 'rank_math/settings/general', function( $tabs ) {
    	$user_id = get_current_user_id();
    	if ( ! in_array( $user_id, array( '{COMMA_SEPARATED_CLIENT_IDS}' ) ) ) { // Eg 1,2,3
    		unset( $tabs['search-console'] );
    	}
    	return $tabs;
    });
    
    // Remove Search Console option from Setup Wizard.
    add_filter( 'rank_math/wizard/steps', function( $steps ) {
    	$user_id = get_current_user_id();
    	if ( ! in_array( $user_id, array( '{COMMA_SEPARATED_CLIENT_IDS}' ) ) ) { // Eg 1,2,3
    		unset( $steps['searchconsole'] );
    	}
    	return $steps;
    });

    Hope that helps. Thank you.

  16. Hello,

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

    Search console profile shows all the accounts linked to the email address. Sadly, there is no way to show specific Analytics Account in Seach Console Profile. To show client specific analytics account in the profile you'll either have to create separate client accounts or you can hide the Search console option completely for specific WP users which belongs to your client by adding below code to your active theme's funcitons.php file:

    // Remove Search Console option from Settings.
    add_filter( 'rank_math/settings/general', function( $tabs ) {
    	$user_id = get_current_user_id();
    	if ( in_array( $user_id, array( '{COMMA_SEPARATED_CLIENT_IDS}' ) ) ) { // Eg 1,2,3
    		unset( $tabs['search-console'] );
    	}
    	return $tabs;
    });
    
    // Remove Search Console option from Setup Wizard.
    add_filter( 'rank_math/wizard/steps', function( $steps ) {
    	$user_id = get_current_user_id();
    	if ( in_array( $user_id, array( '{COMMA_SEPARATED_CLIENT_IDS}' ) ) ) { // Eg 1,2,3
    		unset( $steps['searchconsole'] );
    	}
    	return $steps;
    });

    Please replace '{COMMA_SEPARATED_CLIENT_IDS}' with the WP user IDs.

    Hope that helps. Thank you.

  17. Hello,

    Sorry if I was not clear before. 

    9 hours ago, andr266 said:

    The problem is that it happens with at least 3 different plugins and haven't tested fully the website to see if there's any other issue.

     I appreciate your concern but I cannot ask you to change the code on 3 different plugins.

    I was referring to Rank Math plugin when I said, I'll try to make some changes in the plugin code. I am not going to change anything in other plugins. I checked your site before and I found that Casepedia plugin was conflicting with Rank Math. I couldn't find Casepedia plugin anywhere on the internet, so I could not debug it on my setup. That's the reason I asked you for your site's FTP access so we can further debug this issue on your site and if possible make it compatible with Casepedia.

    Looking forward to helping you. Thank you.

×
×
  • Create New...