Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5419

    First, I am very happy with this theme. I have been running it for a while.

    Anyway, I used to have a social widget on the footer and all the extra stuff (Pages, Archive, Categories and Blogroll) were hidden. I removed the social widget and it all popped up again. I cant seem to remove it without chopping up the .css

    Is there a way I can edit this easily.

    http://www.leegattenbymusic.com

    #50161

    Hey,

    To remove the footer “dummy widgets” open up footer.php (please don’t use wp backend editor otherwise it won’t work – use a ftp software to download/upload footer.php) and remove following code:

    <div class='box box_mini'>
    <h4>Pages</h4>
    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Archive</h4>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Categories</h4>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Blogroll</h4>
    <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
    </div>

    #50162

    Ahh, I was looking for this snippet of code in the WP backend. So wonder I couldn’t find it. Edited it in cuteftp and there it was. Thank you so much!!

    #50163

    Ahh, it removed it from the splash page, but all my child pages still have them.

    #50164

    The footer.php is used on all pages. When you remove the code from it the widgets won’t display at all (homepage + subpage). You need to use a ftp software to edit footer.php.

    Another option is to use an empty text widget – this allows you to remove the widgets without editing a file.

    #50165

    This is my current footer.php located in ~wp-content/themes/display folder.

    Code:
    <?php global $k_option; ?>
    </div><!– end #top –>
    </div><!– end #wrapper –>

    <div class=’wrapper’ id=’footerwrap’>

    <div id=’footer’>
    <div class=’footer_widgets’>
    <?php
    ###########################################################################################################
    # if footer widgets are applied to “footer widget area” display them, else show predefined lists
    ###########################################################################################################

    if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Footer Area’)) : else :

    $exclude = ”;

    if($k_option[‘blog’][‘blog_widget_exclude’] == 1)
    {
    $exclude = ‘&exclude=’.$k_option[‘blog’][‘blog_cat_final’];
    }
    ?>

    <?php
    endif;
    ?>
    </div>
    <div class=”box box_custom_footer”>

    <?php
    ############################################################################################
    # FOOTER RIGHT BLOCK DEFINITIONS WITH FALLBACK MESSAGES IF NO DATABASE ENTRIES ARE FOUND
    ############################################################################################
    if($k_option[‘footer’][‘button_link’] != ”) $k_option[‘footer’][‘button_link’] = get_page_link($k_option[‘footer’][‘button_link’]);
    ?>

    <!– big button –>
    ‘ class=’custom_button ie6fix rounded’>
    <?php echo $k_option[‘footer’][‘button1′]; ?>
    <span><?php echo $k_option[‘footer’][‘button2′]; ?></span>

    <div id=’sitesearch_footer’>
    <h4>Search Site</h4>
    <?php get_search_form(); ?>
    </div>

    <!– copyright text –>
    <p><?php echo $k_option[‘footer’][‘copyright’]; ?></p>

    <!– social bookmarks –>
    <ul class=”social_bookmarks”>
    <li class=’rss’>“>RSS
    <?php
    if($k_option[‘footer’][‘acc_fb’] != ”)
    echo “<li class=’facebook’>Facebook“;

    if($k_option[‘footer’][‘acc_tw’] != ”)
    echo “<li class=’twitter’>Twitter“;

    if($k_option[‘footer’][‘acc_fl’] != ”)
    echo “<li class=’flickr’>flickr“;

    ?>

    </div>

    </div><!–end footer–>

    </div>
    <?php wp_footer();

    if($k_option[‘general’][‘analytics’])
    echo $k_option[‘general’][‘analytics’];
    ?>
    </body>
    </html>

    #50166

    Am I editing the correct file?

    #50167

    Yes – in display/footer.php replace:

    <div class='footer_widgets'>
    <?php
    ###########################################################################################################
    # if footer widgets are applied to "footer widget area" display them, else show predefined lists
    ###########################################################################################################

    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area')) : else :

    $exclude = '';

    if($k_option['blog']['blog_widget_exclude'] == 1)
    {
    $exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    }
    ?>
    <div class='box box_mini'>
    <h4>Pages</h4>
    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Archive</h4>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Categories</h4>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
    </ul>
    </div>

    <div class='box box_mini'>
    <h4>Blogroll</h4>
    <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
    </div>

    <?php
    endif;
    ?>
    </div>

    with:

    <div class='footer_widgets'>
    <?php
    ###########################################################################################################
    # if footer widgets are applied to "footer widget area" display them, else show predefined lists
    ###########################################################################################################

    if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer Area')) : else :

    $exclude = '';

    if($k_option['blog']['blog_widget_exclude'] == 1)
    {
    $exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    }
    ?>

    <?php
    endif;
    ?>
    </div>

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

The topic ‘Remove Pages, Archive, Categories and Blogroll from footer’ is closed to new replies.