Support » Theme: Twenty Fourteen » How to remove the next/previous post links?

  • Resolved xfreespiritx

    (@xfreespiritx)


    Hello, does anyone know how to remove the links to next post and previous post displayed on the page. I have looked on previous posts that suggest modifying the style.css, but the code mentioned to change is not present with this theme. Can anyone help?

    kindest regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • You will probably need to start customising your theme’s CSS – possibly via a child theme or a custom CSS plugin. Are you using a child theme or a custom CSS plugin?

    Thread Starter xfreespiritx

    (@xfreespiritx)

    Thank you for replying esmi.

    Oh my goodness, I have no idea, I’m just using the default Twentyfourteen theme. But given your informative reply and having a quick read of both methods, I would take either route you would recommend for customising css that’s easiest!:-) I’m an ex frontpage dabbler.. so not a programmer.

    kindest regards

    Add Custom Css Plugin. Paste
    .nav-links { display: none; }

    Thread Starter xfreespiritx

    (@xfreespiritx)

    OMG!! that sooooooo worked, thank you so much oobmak!

    Thread Starter xfreespiritx

    (@xfreespiritx)

    This has been resolved courtesy of oobmak. Thank you!

    I don’t know why people always recommends to hide things with css on this forums.

    It’s not good to make the calls to subsequently hide them on the browser, that is bad coding right there.
    The proper answer should be not to make the call.

    So to stop displaying the nav you have to edit your child theme single.php file and delete or comment this line:
    twentyfourteen_post_nav();

    Dr. Irfan

    (@drirfantariq)

    I don’t know why people always recommends to hide things with css on this forums.

    It’s not good to make the calls to subsequently hide them on the browser, that is bad coding right there.
    The proper answer should be not to make the call.

    So to stop displaying the nav you have to edit your child theme single.php file and delete or comment this line:
    twentyfourteen_post_nav();

    This is because it the best and easiest way to display your site as you like, without going into the child theme and php stuff.

    This doesn’t affect the website’s SEO or performance, so there is nothing wrong in using ‘display:none’ custom CSS

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove the next/previous post links?’ is closed to new replies.