WordPress menu / page plugin

Friday, April 2nd, 2010

Hello everyone,

I am not one to fill my wordpress folder with plug-ins, I much prefer to set up a standard list of codes in my functions.php file.

Today I spent about 2 hours looking for some code for functions.php that would remove the link from a parent menu dropdown. I needed this cause when setting up pages and assigning them to a parent there is no functionality to tell the parent folder when there is no content, to not display the menu item as a link. I think WordPress should have this as an included function, maybe they will at a later stage.

So I spent ages looking for this code and came across http://bavotasan.com/tutorials/how-to-remove-the-links-to-parent-pages-in-the-wordpress-page-list/ however this code when applied to your functions.php does just the job except it removes the whole link, leave just the word. This caused issues with my menu as the dropdown I was using relied on the menu item having a link to work. I tried editing the code but without luck I couldn’t get it to replace the link with a #.

So I decided to resort to a plug-in and found this incredible one called Page Lists Plus it allows you to select any page and give it a link or not give it a link. Also has the option to make the link blank keeping the <a href> styling in the menu I was using.

I would recommend this plug-in for anyone who uses a drop down that relies on the <a> tag being in the dropdown menu list.

Written by Asher Charles

A computer geek and creative print and web designer. You can follow his daily design, web, Apple, geek stuff and life links on Twitter You can "like" on Facebook You can visit his portfolio of work here.

Feel free to leave a comment (please don't be a spammer)


Creating a landing page for your Facebook page

Tuesday, August 30, 2011

You may have seen them around, they are everywhere, if you are a business you are probably wondering how can I make my Facebook business look like that? In this article I will show you how to use an application…

Read the full article

That little extra padding using viewport

Thursday, June 9, 2011

The iPhone and iPad are great mobile devices for view websites, they both automatically take a 980px width of the site and fit it within the browser window. If you are like me and you use a grid systems when…

Read the full article

Getting transparency right on the web

Thursday, June 2, 2011

Transparency effects on divs can look amazing when done right, here is a piece of fail safe code to ensure your transparencies look consistent accross all browsers. Take a look at the code for IE will you! When are they…

Read the full article