Page not found in EXTRA theme

#6293
  • Resolved Agustin
    Rank Math free

    In my “Homepage” appears in the tab “Page not found” then the separator and then the name of the page, it is very strange.
    The page looks good, but I miss that phrase …

    attached image.- thanks.

    site: http://www.afrecho.com

    • This topic was modified 4 years, 11 months ago by Agustin.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

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

    Please make use of the following code in your theme’s functions.php file to fix the compatibility:

    /**
    * Adjusting homepage’s title tag
    * @return string
    */
    function extra_rank_math_homepage_title_adjustment( $title ) {
    if ( is_home() ) {
    $title = RankMath\Helper::replace_vars( RankMath\Helper::get_settings( ‘titles.homepage_title’ ) );
    }
    return $title;
    }
    add_filter( ‘rank_math/frontend/title’, ‘extra_rank_math_homepage_title_adjustment’, 16 );

    I hope this info helps. Thank you.

    ​​​​​​​

    Thank you michael, very kind.-

    However, the problem persists.

    I placed the code in the functions.php file of the theme (CHILD THEME) .. I attached capture.
    functions

    HI there,

    Thanks for the follow up.

    There is a character encoding issue on the pasted code that could be preventing it from executing. Please try the following code:

    /**
    * Only load if Rank Math plugin is activated
    */
    if ( defined('RANK_MATH_FILE' ) && 'layout' === get_option('show_on_front') ) {
    
    /**
    * Adjusting homepage’s title tag
    * @return string
    */
    function extra_rank_math_homepage_title_adjustment( $title ) {
    if ( is_home() ) {
    $title = RankMath\Helper::replace_vars( RankMath\Helper::get_settings('titles.homepage_title') );
    }
    return $title;
    }
    add_filter('rank_math/frontend/title', 'extra_rank_math_homepage_title_adjustment', 16 );
    
    /**
    * Adjusting homepage’s meta description
    * @return string
    */
    add_filter( 'rank_math/frontend/description', function( $description ) {
    if ( is_home() ) {
    $description = RankMath\Helper::replace_vars( RankMath\Helper::get_settings( 'titles.homepage_description' ) );
    }
    return $description;
    });
    
    /**
    * Adjusting homepage’s robots
    * @return string
    */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    if ( is_home() ) {
    $robots = RankMath\Helper::get_settings( 'titles.homepage_robots' );
    if ( ! is_array( $robots ) || ! in_array( 'noindex', $robots ) ) {
    $robots['index'] = 'index';
    }
    if ( ! is_array( $robots ) || ! in_array('nofollow', $robots ) ) {
    $robots['follow'] = 'follow';
    }
    }
    return $robots;
    });
    }

    if the issue persists, please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi there,

    Thanks for the follow up.

    The access credentials do not appear to be correct, please check and share some new access.

    I am looking forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Apologies for the delay.

    I have added the code on your theme’s functions.php file and the errors are now resolved on your homepage.

    Let me know if you have additional questions or comments. Thank you.

    Perfect !!

    Thank you very much Michael, you are very professional and I am sure that at the global level you will be the first in your area.
    I am very grateful and in compensation, if you still do not have Spanish translation of your excellent plugin, you can count on me to translate it in Spanish (Neutral). Via Poedit.
    I already did the Spanish translation to friends of the “Clearfy” plugin of Webcarftic.
    Again, thank you very much and I am at your service.
    Best regards from Venezuela.

    • This reply was modified 4 years, 11 months ago by Agustin. Reason: nothing in particular.-

    Hello,

    We are super happy that this resolved your issue. You can take part in the translation of the plugin on the WP repo from this link. 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/?rate=5#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 11 replies - 1 through 11 (of 11 total)

The ticket ‘Page not found in EXTRA theme’ is closed to new replies.