Need help with a simple code change.

massonspy

Junior Member
Joined
Apr 3, 2010
Messages
140
Reaction score
29
I have illustrated in the image every detail.
An issue with the footer.php file.
Footer menu on the left side shows all pages created. Top menu i solved the problem by adding a custom menu.(Wordpress)
How do i change the code to show either a custom menu or specifically 4 pages?
I dont want to delete the code coz then it would look awful.

Untitled.jpg
 
The simplest solution would be to just replace the php code with the html of the four links.
Another way would be to add a filter to the 'walker_nav_menu_start_el' hook, but that would change every nav_menu on your page.
I think the correct way is to add a custom walker that skips all items but the four you want to display.
 
Back
Top