• Resolved lokkenpa

    (@lokkenpa)


    I have installed this theme and really like it…. But there are just 2 things about it that are driving me nuts…

    The biggest one that I want to tackle first is the dynamic creation of the top line menu just below the header image. Whenever you create a page, it automatically puts it up there.

    Here’s the link to the theme: https://www.solostream.com/free-wordpress-themes/

    Once again, this site is installed locally for development and is not on the internet just yet.

    Thanks in advance for the help!

    Phil

Viewing 10 replies - 1 through 10 (of 10 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link to the theme’s demo page?

    Moderator keesiemeijer

    (@keesiemeijer)

    Your theme uses <?php wp_list_pages('title_li='); ?> to output the navigation menu. With other theme’s you can use navigation menu’s to rearange and order all menu items. https://codex.www.ads-software.com/Navigation_Menus
    https://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus

    If you really like this theme and want to choose the pages that appear in the menu you can try this:
    Give the pages you want to appear in the menu a custom field with a key ‘menuitem’. and change this (in header.php):

    <?php wp_list_pages('title_li='); ?>

    to this:

    <?php wp_list_pages('meta_key=menuitem&title_li='); ?>

    Thread Starter lokkenpa

    (@lokkenpa)

    Thanks for the info.

    keesiemeijer, I tried what you had above. I created a custom key with a name of menu and value of menuitem(without the ”). When I click on create, does that automatically add that to the page or do I have to manually add the code? If I have to add the code, what is the syntax?

    Thanks!
    Phil

    Thread Starter lokkenpa

    (@lokkenpa)

    Also, I tried the code as you have it, editing the header.php did remove the unwanted pages. But as I stated, I am not sure of the syntax to use to add in the other page.

    Also, when I click on the create button for the custom field, I note the refresh. Then when I save/update the page the custom field that I just created goes away.

    Thanks!
    Phil

    Thread Starter lokkenpa

    (@lokkenpa)

    Here is the demo site…

    https://themes.solostreamsites.com/

    Thanks!
    Phil

    Moderator keesiemeijer

    (@keesiemeijer)

    Did the the custom field work on the first page you tried this on?
    If so, on the next page you want to add the custom field there is a dropdown where you can select the meta key (name). The value is of no importance, you can add what you want there.

    Thread Starter lokkenpa

    (@lokkenpa)

    Morning.

    I log into the site site this morning and I have the meta key of “menu” in the drop down list with the value of “menuitem” for the value.

    However, its not showing in the menu area.

    Sorry for not grasping this yet.

    Thanks!
    Phil

    Moderator keesiemeijer

    (@keesiemeijer)

    I have the meta key of “menu”

    If you use meta key “menu” try it with the following code in your header.php

    <?php wp_list_pages('meta_key=menu&title_li='); ?>

    Sorry for not grasping this yet.

    No problem.

    Thread Starter lokkenpa

    (@lokkenpa)

    Ok… I am an idiot… I just got it to work with your last statement above… I used the “value” field instead of the “name” field. I change the header.php file to:

    <?php wp_list_pages(‘meta_key=menu&title_li=’); ?>

    and it works fine!!

    Thanks!!

    Phil

    Moderator keesiemeijer

    (@keesiemeijer)

    You’re welcome. I’m glad you got it resolved ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Zeke 2 col. ver 1.0’ is closed to new replies.