change backlink of rank math seo score

#62885
Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math today.

    Of course! We have this code:

    /**
     * Filter to change the backlink inside the Front End SEO Score output.
     *
     * @param string $backlink bvacklink HTML.
     * @return string
     */
    add_filter( "rank_math/frontend/seo_score/backlink", function( $backlink ) {
     return $backlink;
    });

    At the top, you can see it says “@param string $backlink Backlink HTML”. It means you will need to return an HTML a Href tag with the backlink you want to use.

    For example, let’s say you want that the new backlink is to Google and to show the text “Powered By Google”, you would do the following:

    /**
     * Filter to change the backlink inside the Front End SEO Score output.
     *
     * @param string $backlink bvacklink HTML.
     * @return string
     */
    add_filter( "rank_math/frontend/seo_score/backlink", function( $backlink ) {
     return '<a href="https://google.com">Powered by Google</a>';
    });

    I hope it helps but if you have any questions just let me know.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Anonymous
    Rank Math free

    thank you so much!

    Todd
    Rank Math free

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘change backlink of rank math seo score’ is closed to new replies.