Edit Style CSS to remove 'previous and next' links.

  • Anonymous

    #8422

    I would like some help please.

    I think I need to edit the Graphene: Stylesheet (style.css) in order to remove the ‘previous and next links’ from showing…but I don’t know

    where to put the code.

    Is this the code I use?

    .single .post-nav {

    display: none;

    }

    and WHERE do I add it?

    Thanks for your help.

    Anonymous

    #41121

    Add this to your child themes style.css

    /* post nav */
    .previous, .next-post {
    display: none;
    }

    Anonymous

    #41122

    @Graham, though your code works for previous and next post links, it also removes Older Posts and Newer Posts link on blog page and archive pages. So it is better to use

    .single .post-nav {
    display: none;
    }

    or

    .single .previous, .single .next-post {
    display: none;
    }

    @pimllc, add that code to child-theme style.css or in Graphene Options –> Display –> Custom CSS.

    Anonymous

    #41123

    Your correct Prasanna 🙂

    I forgot I use PageNavi and have no need for the Older Posts etc. So removing the links don’t effect the navigation on my site.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.