WordPress.org

Ready to get started?Download WordPress

Forums

remove extra 'Home' link (3 posts)

  1. sandg
    Member
    Posted 5 years ago #

    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>
  2. quakemedia
    Member
    Posted 5 years ago #

    <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.

  3. sandg
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags