Remove page link | WordPress.org

[ad_1]

Hello @onurkk,

Thank you for your query and we are so sorry about the trouble this must have caused.

That page is loading fine but it returns an empty page. It is possible that Rank Math sees your homepage as a post archive but your theme is not loading the items in the pagination pages.

If you wish to remove the adjacent links of your homepage, please refer to this code below:

add_filter( "rank_math/frontend/next_rel_link", function( $link ) {

if(is_home() && is_front_page()){

return false;

}

return $link;

});

add_filter( "rank_math/frontend/prev_rel_link", function( $link ) {

if(is_home() && is_front_page()){

return false;

}

return $link;

});


You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer