WordPress.org

Forums

Modify/Add Links in Footer (2 posts)

  1. BinyaminAlmalech
    Member
    Posted 3 years ago #

    Hi All,

    Trying to add/modify links in the footer code. The Site is http://www.jamacob.com/. I checked footer.php and what we found was

    <!-- begin footer -->
    
    <div style="clear:both;"></div>
    <div id="footer">
    <div align="center"><ul><?php 
    
     $args = array(
    	'depth'        => 1,
    	'show_date'    => '',
    	'date_format'  => get_option('date_format'),
    	'child_of'     => 0,
    	'exclude'      => '',
    	'include'      => '',
    	'title_li'     => '',
    	'echo'         => 1,
    	'authors'      => '',
    	'sort_column'  => 'menu_order, post_title',
    	'link_before'  => '',
    	'link_after'   => '',
    	'walker' => '' ); 
    
    wp_list_pages($args); ?></ul></div>
    <div style="clear:both; float:none;"></div>
    <div >Copyright &copy; 2010 <strong>JAMAICA COMMUNITY BOARD</strong>. All Rights Reserved.</div>
    </div>
    <?php do_action('wp_footer'); ?>
    </div>
    </body></html>

    I'm guessing:
    wp_list_pages($args);
    is the bit where a certain list of pages is brought in. How do I access that list of pages to add or modify items on that list?

    Thanks
    Benjamin

  2. BinyaminAlmalech
    Member
    Posted 3 years ago #

    I am finding out that in my theme, maybe this applies to others depending on the code in footer.php, I simply need to modify the arguments that are being plugged in to the wp_list_pages function.

    For example, above, in the code display where it says $args = array that list of arguments, depth, echoand so on, determine what and how appears in the footer on my site. checkout for details on what each argument/parameter does.

    Pay particular attention to include if you are trying to adjust which pages show up as links in your footer.

    Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Topic