WordPress.org

Ready to get started?Download WordPress

Forums

Removing next/prev on Imbalance 2 posts (4 posts)

  1. robbajob
    Member
    Posted 3 years ago #

    Hi.

    I want to remove next/prev from posts from Imbalance 2. I googled, but all I found was advice to remove code from single.php that my single php doesn't contain. This is all there is in my single.php:

    <?php get_header(); ?>
    		<div id="content">
    		<?php get_template_part( 'loop', 'single' ); ?>
    		</div><!-- #content -->
    <?php get_footer(); ?>

    [Please post code snippets between backticks or use the code button.]

    If it helps, my site is nomorehappyendings.com.

    Any help much appreciated.

    John

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Try looking in loop-single.php or loop.php.

  3. robbajob
    Member
    Posted 3 years ago #

    Thanks so much for the quick reply. I'm not exactly proficient in php. All the advice I found mention next_link and prev_link, but I can't find them in loop-single or loop.php

    In loop-single.php there's:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. robbajob
    Member
    Posted 3 years ago #

    Okay, so, I don't know if this is the correct way to do it, but I just added disable:none; to these lines of code in style.css and all the prev/next elements disappeared.

    #nav-above { float: left; width: 210px; padding-right: 40px; text-align: right; color: #636363; display: none; }
    #nav-above a { text-decoration: none; color: #333; display: none; }
    .nav-previous, .nav-next { display: inline; display: none; }
    .nav-separator { color: #e5e5e5; display: none; }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.