Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @biswajitjana12
    Sorry for the trouble. You may use 2 lines of CSS code to hide the pagination from home, category, or any specific page. First right-click on any page, open the inspect tool, find your <body> tag (screenshot), and see what’s the class used based on the current page name. If you’re on the home page, you might get the same class name as I’ve found on my screenshot. Then also get the pagination class name and then trigger the CSS code following this.

    body.home .pagination-class,
    body.category .pagination-class {
        display: none !important;
    }

    You may add multiple pages body class to hide the pagination from various pages. Give it a try and let me know how that goes! ??

    Possible alternate solution might be:

    function disable_pagination( $query ) {
        $query->set( 'nopaging' , true );
    }
    add_action( 'pre_get_posts', 'disable_pagination' );

    This has to be add in a function.php of your child-theme or custom plugin.

    If you have problems with one of the two solutions, please give us the link to your site – then we could help more concretely.

    Thread Starter biswajitjana12

    (@biswajitjana12)

    @threadi thanks but i don’t put yet. You can see my web https://www.lyricsduniya.co.in

    Thread Starter biswajitjana12

    (@biswajitjana12)

    @faisalahammad sir can tell me where put… I mean which file edit? I am biginer not enough idea ?? my web https://www.lyricsduniya.co.in

    Thread Starter biswajitjana12

    (@biswajitjana12)

    @faisalahammad sir, can you tell me that can i put code in addition css in castomized section? If yes then plz share code.. ??

    Hide the pagination with following CSS:

    .paging-navigation {
      display: none;
    }

    Add this in Appeareance > Customizer > Additional CSS.

    Keep in mind that this will merely hide the pages, but they might still exist and be accessed.

    Thread Starter biswajitjana12

    (@biswajitjana12)

    @threadi great sir….. That what i want… Thank you so much sir… Have a great day ??

    @biswajitjana12 Hi,
    Yeah, @threadi sent you the right solution. ????

    But if you don’t hide from the whole website then you’ve to follow my code. ??

    Thread Starter biswajitjana12

    (@biswajitjana12)

    @faisalahammad Thank you very much too, actually someone is copying the post on my page and I can’t give him the copyright because my website is a lyrics website. And this lyrics is already copyright going to the original lyricist. So I gave up the option to go to my next page, and my post will not be able to copy normally, but if someone copies the sitemap it is a different matter. And that’s exactly what I expected of that @threadi Ener code. Many thanks to both of you @faisalahammad @threadi
    Have a great day ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Next/previous bottom hide’ is closed to new replies.