Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoseph Hall
10,865 PointsExtra Blank Link in my custom wordpress menu that I want to remove
Dear Treehouse,
I am working on a wordpress site that enables custom menu's. However, when I add pages, I get this extra blank menu item linking to "localhost/wordpress/" I want to remove this extra link (of which I did not setup or create) and replace it with my "Home" page menu item.
Regards,
Joseph
2 Answers
Andrei-Robert Rusu
763 PointsHey, I can give you a JS hack which could help probably, didn't test it, but it should work.
<script type="text/javascript">
jQuery('#path-to-menu > ul > li > a[href="localhost/wordpress/"]').attr('href', 'index');
</script>
Zac Gordon
Treehouse Guest TeacherHey Joseph Hall! Few questions for you. Do you have a page set as your static homepage? Also, have you added a Home link to your custom menu? Thanks!