WordPress.org

Support

Support » Themes and Templates » remove extra ‘Home’ link

remove extra ‘Home’ link

  • This code displays an extra ‘Home’ link, which I want to remove and just list pages. How do I do that? I’ve tried commenting it out but then it breaks the page and nothing is displayed.

    <ul>
    		<li class="<?php if (is_home()) { echo "current"; } ?>"><a href="<?php echo get_settings('home'); ?>"></a></li>
    			<?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
    		</ul>
Viewing 2 replies - 1 through 2 (of 2 total)
  • <li class="<?php if (is_home()) { echo "current"; } ?>"><a href="<?php echo get_settings('home'); ?>"></a></li>

    that is the code that is producing the extra code. Try removing it and you shoudl have successful results.

    it works! oddly enough, the theme breaks if i comment out the whole thing including the html and php code, but it works find if i only remove the html tags.

    thanks, quakemedia! =D

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove extra ‘Home’ link’ is closed to new replies.
Skip to toolbar