• marioneq

    (@marioneq)


    Hello I use sliding-door theme, it looks fine, but I have a problem with creating sublinks.

    There are 7 pictures on the top, so I created 7 ‘main links/topics” and I numbered them in the order which is the most suitable for me. For example there are topics like: INFO, FREE STUFF< CONTACT etc.
    After that I wanted to create sublinks like eg:
    INFO:
    – Me in the past
    – Me now (I know fooly ezamples)
    but when I created these sublinks the main link in header disapears. So I cannot create any additional sublinks, because, the pictures in header don’t work correctly, do you know how to change it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes this is true, unfortunately with this theme the seven pages don’t work if they have sublinks for some reason. The way to get round this is to use the page links to plug-in. Just use the first seven pages as you’re sliding menu pages, and then point them to your real pages which will have submenus.

    The problem seems to be this line towards the bottom of header.php:
    <?php slider_menuparse(wp_list_pages('sort_column=ID&depth=1&number=7&title_li=&echo=0')); ?>

    By specifying number=7, only the first 7 pages will be looked at, even if they are not all top-level pages (depth=1). Remove the &number=7 text, and ALL top-level pages will be shown. Provided you have exactly 7 top-level pages, then the behavior will be as you wish.

    Note also that changing ID to menu_order will sort the pages in menu order, using the Order attribute of the page.

    Thanks so much tetonbabe,
    I had an almost similar problem whereby I had over 11 parent links, but when I installed the Sliding-door template, it was only displaying the first 5 on the header images, leaving the other two images without any links.
    NOTE: If u have over 7 parent pages and you change {ID to menu_order} the images will display links to Sliding door theme download site.

    I folllowed tetonbabe’s instructions fully and now my site is how I wanted it to be, cheerz ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems with sublinks’ is closed to new replies.