1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with a simple code change.

Discussion in 'General Programming Chat' started by massonspy, May 16, 2012.

  1. massonspy

    massonspy Junior Member

    Joined:
    Apr 3, 2010
    Messages:
    130
    Likes Received:
    23
    Occupation:
    Health Pro
    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
     
  2. RonieizBad

    RonieizBad Newbie

    Joined:
    Apr 19, 2012
    Messages:
    39
    Likes Received:
    4
    Use HTML links..
     
  3. sockpuppet

    sockpuppet Junior Member

    Joined:
    Nov 7, 2011
    Messages:
    155
    Likes Received:
    145
    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.