Getting rid of the Gallery Nav Buttons

Viewing 3 posts - 1 through 3 (of 3 total)
  • #3037
    Peregrin5
    Participant

    This is an amazing theme, and I’m using it as the splash page for my teaching website. I’m currently trying to get rid of the nav bar arrows on the sides of the gallery view. From a previous thread I heard to:

    get rid of the #nav-slider div, I’m assuming from style.css, so I commented that baby out. And also to remove the paged parameter from query_posts.
    I found query_posts in loop-slider.php. So far it looks like this:

    [code]<?php
    global $wp_query, $query_string;
    // $paged = get_query_var( ‘paged’ );
    $args = array(
    ‘posts_per_page’ => 5,
    // ‘paged’ => $paged,
    ‘ignore_sticky_posts’ => 1
    );
    $args = wp_parse_args( $args, $wp_query->query );
    ?>
    <?php query_posts( $args ); ?>[/code]

    query_posts seems to lead to the &args array, so I tried commenting out ‘paged’ alone, $paged alone, and then as you can see now, I commented out both of them. So right now it just has the navigation arrow at the bottom of the slider which looks very unattractive, and I had the same outcome for the other two attempts.

    How do I get rid of the navigation arrows in greater detail? I’m not familiar with PHP or CSS, but I can get by. My website is here: http://www.f-sci.net

    And just to let you know, you may visit the site and see nothing wrong with it. In that case, I did get rid of the arrows, and my caches are simply being stupid even though I’ve cleared them tons of times and shift-refreshed a bunch already. If that is so, please tell me so I can stop worrying.

    #3038
    Peregrin5
    Participant

    So, I figured it out. When I was commenting out #nav-slider in the style.css page, you need to comment out ALL of the nav-slider modules. So:

    [code]/*
    #nav-slider .nav-previous,
    #nav-slider .nav-next {
    position:absolute;
    top:185px;
    right:0;
    width:40px;
    }

    #nav-slider .nav-next {
    left:0;
    right:auto;
    }

    #nav-slider .nav-previous a,
    #nav-slider .nav-next a {
    display:block;
    width:24px;
    height:40px;
    margin:0 8px;
    background:url(images/next.png) center no-repeat;
    }

    #nav-slider .nav-next a {
    background:url(images/prev.png) center no-repeat;
    }
    */[/code]

    Secondly you only have to comment out the [code]// ‘paged’ => $paged,[/code] line in the $args array. It is now nice and neat with no arrows.

    #3039
    Kath
    Participant

    Thank you Peregrin5! This works beautifully! It’s good to be hand-held through things like this, so I appreciate your clear instructions. Thanks!

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

You must be logged in to reply to this topic.