WordPress.org

Ready to get started?Download WordPress

Forums

ANYONE USING DFBLOG? (2 posts)

  1. katriina
    Member
    Posted 3 years ago #

    HI

    If you are using dfblog as your theme, i have at least one burning question.

    I would like to change the tabs/headers on the top (like home and blog) to something else and add a few more but cannot figure out how.

    thanks
    katriina

  2. threestyler
    Member
    Posted 3 years ago #

    The navigation is created dynamically and displays the pages you have created in the admin panel.

    Open header.php and look for:

    <ul class="sf-menu">
    
    <li class="<?php echo $indexpage_class; ?>"><a href="<?php echo get_settings('home'); ?>"><?php echo $dfblog_home_label ?></a></li>
    
    <?php wp_list_pages('sort_column=menu_order&title_li='); /* old -> wp_list_pages('title_li=&depth=1'); */ ?>
    
    <?php if ($dfblog_feed_visibility == "on") { ?>
    <li class="page_item"><a href="<?php bloginfo('rss2_url'); ?>"  title="<?php bloginfo('name'); ?> RSS Feed"><?php _e('Subscribe to Feed'); ?></a></li>
    <?php } ?>
    <li class="page_last"> </li>
    
    </ul>

    The code inbetween the first <li> </li> tags is what outputs the pages as menus. The Second <li> </li> tags output the Subscribe to RSS Menu

    You could hardcode a menu before, in between or after any of the above <li> </li> tags or you could delete them entirely and manually add the menu's yourself. Just make sure you remove the opening and closing <li><!-- and everything in between --></li>

    ie if you wanted to manually add links to the homepage and blog:
    <li><a href="http://yourwebsitename.com">Home</a></li>
    <li><a href="http://yourwebsitename.com/blog">Blog</a></li>

Topic Closed

This topic has been closed to new replies.

About this Topic