Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • Forum: Hacks
    In reply to: Menu Customisation – Urgent
    Thread Starter Alec Weekes

    (@alec-weekes)

    Do you suspect that there is a spelling error within it however? I’ve just noticed my coding program is colouring Home as if something isn’t closed.

    Could you check the: .get_settings(‘home’). section as fully intentional, I’ve not used .get_settings before

    Forum: Hacks
    In reply to: Menu Customisation – Urgent
    Thread Starter Alec Weekes

    (@alec-weekes)

    Thanks Vishal,

    The menu is appearing as it was originally, but it appears that it isn’t hiding the Home Page link at all.

    It seems as if the if(!is_home()) isn’t working or doing its job properly. It shows on all the child pages as intended, but still shows on the Home Page.

    Would is_page(‘x’) work better?

    Forum: Hacks
    In reply to: Menu Customisation – Urgent
    Thread Starter Alec Weekes

    (@alec-weekes)

    How would you structure that then Vishal?

    I’m trying to include the if(!is_home()) somewhere in the code I showed above, and I just displays the entire menu i’ve got.

    Edit:

    I’m getting the following error using your suggestion:

    Parse error: syntax error, unexpected ‘<‘ in [directorylistings]/header.php on line 94

    Forum: Hacks
    In reply to: Menu Customisation – Urgent
    Thread Starter Alec Weekes

    (@alec-weekes)

    Vishal,

    Firstly, as far as I’ve tried whenever using <li> or </li>I get errors related to them.

    Along with this, I am wanting to hide the “Home” on any of my Home Pages. But still show it on the Sub Pages.

    I’m thinking something along the lines of an if statement to load either my first, or second menu dependant on which page they’re on.

    If they’re on page one for example then Menu 1 is loaded, however page 2 loads Menu 2.

Viewing 4 replies - 16 through 19 (of 19 total)