My Wordpress Theme is a Mess - HELP PLEASE!!

13 replies
Hi All,

Hoping some coders are on the board.

Was changing some code on my wordpress theme to add pages that wouldnt appear on the navigation but it looks like I've wiped some code that put the parts in order?

Can anyone HELP???

see houseoption.co.uk

Regards, Jim.
#mess #theme #wordpress
  • Profile picture of the author ecoboss
    Here is how the code looks right now its the only part I think I changed - can anyone see anything obvious thats missing??


    <div class="topmenu">
    <ul>

    <?php wp_list_pages
    ('title_li=&depth=4&sort_column=menu_order&include ='.$bot_topmenu); ?>

    </ul>

    </div><!--topmenu -->
    Signature

    \" ..What goes around, comes around \"

    {{ DiscussionBoard.errors[3794163].message }}
    • Profile picture of the author ecoboss
      Its ok got it now - (BUT) can anyone tell me how to create pages but not have them appear on the navigation bar?

      Can you provide the full code that should appear in the header div ?

      This would be a BIG help.

      Thanks, Jim
      Signature

      \" ..What goes around, comes around \"

      {{ DiscussionBoard.errors[3794410].message }}
      • Profile picture of the author tomkane
        Is this problem solved yet? If not, just drop me a PM and I'd be glad to help.
        {{ DiscussionBoard.errors[3794769].message }}
      • Profile picture of the author zvendor
        I use a plugin called wp-hide-pages.
        {{ DiscussionBoard.errors[3798736].message }}
  • Profile picture of the author affiliatepro15
    2 options.. there are lots of plugins to hide pages from the nav. The other option is to use the new custom menus feature of WP where you can select items from your pages/categories/etc to create a menu widget.

    If you create a custom menu and using a older theme, you may have to change the current menu area into a widget area on your theme header. Shouldn't be too hard and gives you total control.

    Actually, if you don't need a dynamic menu that adds new pages/categories to your menu automatically, you can just write the HTML for the menu directly to your header.
    {{ DiscussionBoard.errors[3795294].message }}
    • Profile picture of the author ecoboss
      Managed to get the changes made to the header.php but its still showing two pages I dont want there - FAQ's and Options Explained, also want the privacy and terms pages to appear in the footer only?

      I believe there is a simple exclude argeument you put in but dont know how to enter it?

      Jim.
      Signature

      \" ..What goes around, comes around \"

      {{ DiscussionBoard.errors[3795410].message }}
      • Profile picture of the author ariefdisolo
        If you are using this code:
        <?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order&include ='.$bot_topmenu); ?>

        Then you can add exclude parameter followed by page ID:
        <?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order&include ='.$bot_topmenu).'&exclude=123,456'; ?>
        Note: 123 and 456 is the page ID you want to exclude
        {{ DiscussionBoard.errors[3796531].message }}
        • Profile picture of the author ecoboss
          Need the whole code as when i try to copy and paste - I get Nothing!!
          Signature

          \" ..What goes around, comes around \"

          {{ DiscussionBoard.errors[3798653].message }}
  • Profile picture of the author Cameron Nabeel
    I think the code ecoboss has provided you is the right one, its better to hire someone to get this task done as you know webmasters hate helping for nothing and its the rule of business as well.
    {{ DiscussionBoard.errors[3801067].message }}
  • Profile picture of the author Christian Little
    ecoboss - read the documentation on how the wp_list_pages function works, link: Function Reference/wp list pages « WordPress Codex

    You'll get your answers there.
    {{ DiscussionBoard.errors[3801101].message }}
    • Profile picture of the author ecoboss
      Thanks Christian,

      Appreciate this....

      Jim.
      Signature

      \" ..What goes around, comes around \"

      {{ DiscussionBoard.errors[3803259].message }}
      • Profile picture of the author ecoboss
        Guys still struggling to exclude pages from the navigation bar

        I wanted the top holder to just show Member Login - FAQ's - Contact Us but it was repeating all the page titles in the main nav - however now theyve ALL dissapeared!!

        Can anyone see why?

        Jim.
        Signature

        \" ..What goes around, comes around \"

        {{ DiscussionBoard.errors[3804438].message }}
        • Profile picture of the author ecoboss
          Seems to have most of it to work now.

          Christian and others thanks for the feedback.

          Just one more thing, The navigation pages seem to have dropped down the page and I can see the word (pages) in black and its pushing everything else down.

          Cant see anything in the code, its clearly something I'm missing. Can anyone tell me why?

          Regards, Jim.
          Signature

          \" ..What goes around, comes around \"

          {{ DiscussionBoard.errors[3816654].message }}

Trending Topics