Remove page arrow from front page - keep only 4 posts (3 posts)

  1. leleaneb@gmail.com
    Posted 3 years ago #

    I'd like to remove the page arrow from the front page of our site so that only the top 4 posts show. Is there a way to do this on just the front page without affecting the way the gallery view appears when viewing by category? Here's the page I am referring to http://www.filipposantorocomposer.com/ Thank you- Laura

  2. cphu87
    Posted 3 years ago #

    I'm not sure if i did it correctly but I just changed the if statement in the loop_slider.php to

    <?php if ( $wp_query->max_num_pages < 1 ) : ?>
    <div id="nav-slider">

    so it was > 1 initially, I just changed it to < 1 and it got rid of the arrows since the statement now is referring to less than one page.

    Hope it helps!

  3. leleaneb@gmail.com
    Posted 3 years ago #

    It worked like a charm! Thank you :) I know I'll be asked if this page arrow could be preserved for the category views but not on the home page. I'll do some experimenting but please write if you have ideas. Best- LB

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic