• Resolved Christina

    (@mikeposnerhits)


    I tried posting on the forum at Colorlib.com twice in 2 days, and I have yet to see my question appear, so I’m posting this on here. I’ve posted about topics 2 or 3 times last year without any problems.

    Referring to a particular post on Sparkling theme demo at https://colorlib.com/sparkling/template-paginated/. I applied the code <!--nextpage--> several times to a single post for the first time.

    I’m wanting to find out if it’s at all possible to HIDE the Pagination on the homepage of a particular post that I’ve chosen to add several pages to. I actually just created a new post yesterday on my site and I broke it down into 8 pages within the post. It’s my first time ever doing this to a single post. I think seeing the Pagination inside a post on the homepage looks a bit crazy/ugly when I have my posts set to show excerpts on the homepage. I just want the Pagination (numbered pages of the posts) to show up ONLY on the single post page. Is this possible? If so, what coding do I add and where?

    I can’t find the answers on here or Google when I tried searching for a resolution yesterday.

    My website is https://mikeposnerhits.com and you’ll see the post titled ‘Infinite Legroom Interviews Mike Posner’ dated April 22, and you’ll see the Pagination showing up in the post on the homepage. I want to hide it from the homepage. I hope that it’s possible, but if not, I can live with it.

    By the way, is it not wise/not recommended to add Pagination to posts? Does it mess up the SEO, or anything else important for that matter, etc? I was just wondering.

    Thank you for the help in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Silkalns

    (@silkalns)

    You can hide post pagination from front page and archive pages by adding this simple CSS to Appearance >> Theme Options >> Other >> Custom CSS.

    .home .page-links,
    .archive .page-links {
        display: none;
    }

    It is not the most SEO friendly way as Google Webmaster tools will report duplicate title and meta description issue but there is a workaround for that and you can read more about it here: https://edward-designer.com/web/multipage-wordpress-seo/

    Let me know if this helps.

    Thread Starter Christina

    (@mikeposnerhits)

    THANK YOU SO MUCH! It works! I was getting the code all wrong when I tried to do this the other day. I was trying it like this:

    .page-links{
        display: none;
    }

    Which doing so hid all of the Pagination from the site pages, ha ha.

    I never would’ve thought to add home or archive into the code. Thank you so very much! Now, it looks much better! I appreciate the help once again!

    I’ll definitely check out that website you mentioned to read more about the SEO workaround. That’s why I had asked about it, because I remember reading something about the issue with SEO when doing the multiple pages in posts. Thanks for the link.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to HIDE Pagination in Posts on Homepage’ is closed to new replies.