sitemap

#358609
  • Resolved Mansar
    Rank Math free

    Hello

    I am configuring rank math like your video and advices, but robot.txt and sitemaps dont appear…
    Can you help me please ? I can give you an id to log my blog and see if you want.
    Thank you very much

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please share the URL of your site so we can check and assist you further.

    Looking forward to helping you.

    Mansar
    Rank Math free

    Hello

    My website is https://buzzinlife.fr/

    thank you

    Anas
    Rank Math business

    Hello,

    Can you please follow these steps?
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    That should fix the issue. Please let me know if that does not. We are here to assist.

    Mansar
    Rank Math free

    hello

    I have done the first step but for the secund i cant because i dont have cache pluggin.
    How can i do ?

    Anas
    Rank Math business

    Hello,

    I checked the sitemap, it is working now.

    Please add this filter in the theme’s functions.php file:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here is a guide you can follow to add the filter:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#functions-php-file

    Hope that helps.

    Thank you.

    Mansar
    Rank Math free

    thank you,
    i dont have the same code on function.php file like your guide. Sorry i understand nothing about coding 🙂 You can reply tomorrow i know it’s evening for you now.

    Tell me where to put below the code you give me :
    add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);

    MY FUNCTIO.PHP FILE IS LIKE THAT :

    define(‘BUNYAD_THEME_VERSION’, ‘7.1.1’);

    // Already initialized – some buggy plugin call?
    if (class_exists(‘Bunyad_Core’)) {
    return;
    }

    /**
    * Initialize Framework
    *
    * Include the Bunyad_Base and extend it using our theme-specific class.
    */
    require_once get_theme_file_path(‘lib/bunyad.php’);
    require_once get_theme_file_path(‘inc/bunyad.php’);

    /**
    * Main Theme File: Contains most theme-related functionality
    *
    * See file: inc/theme.php
    */
    require_once get_theme_file_path(‘inc/theme.php’);

    // Fire up the theme – make available in Bunyad::get(‘theme’)
    Bunyad::register(‘theme’, [
    ‘class’ => ‘Bunyad_Theme_SmartMag’,
    ‘init’ => true
    ]);

    // Legacy compat: Alias
    Bunyad::register(‘smart_mag’, [‘object’ => Bunyad::get(‘theme’)]);

    /**
    * Main Framework Configuration
    */
    $bunyad = Bunyad::core()->init(apply_filters(‘bunyad_init_config’, [
    // Due to legacy compatibility, it’s named smartmag without dash.
    ‘theme_name’ => ‘smartmag’,

    // For retrieving meta values from core plugin.
    ‘meta_prefix’ => ‘_bunyad’,

    // Legacy compat.
    ‘theme_version’ => BUNYAD_THEME_VERSION,

    // Widgets enabled.
    ‘post_formats’ => [‘gallery’, ‘image’, ‘video’, ‘audio’],

    // Sphere Core plugin components
    ‘sphere_components’ => [
    ‘social-follow’,
    ‘breadcrumbs’,
    ‘auto-load-post’,
    ‘elementor\layouts’,
    ‘elementor\dynamic-tags’
    ],

    ‘add_sidebar_class’ => false,
    ]));

    Anas
    Rank Math business

    Hello,

    You should add that code at the bottom of the functions.php file.

    However, if you are not sure, you can add the code using a plugin like the Code Snippets plugin.

    You can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#code-snippets-plugin

    Hope that helps.

    Thank you.

    Mansar
    Rank Math free

    thank you all is ok

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The ticket ‘sitemap’ is closed to new replies.