WordPress.org

Ready to get started?Download WordPress

Forums

Add page to menu (9 posts)

  1. rtica3
    Member
    Posted 1 year ago #

    Hello,

    I have used Joomla a good amount, but I am new to wordpress. I am editing my employer's site (www.fullcircle-pr.com). What I need to do is pretty simple - add a new page to my main top menu - but am really confused as to why it is not working. A few things to note:

    My current theme does not natively support menus, but I can add a “Custom Menu” widget to the theme’s sidebar only (on the services page).

    The main menu links right now are set up under pages (About Us, Services, News, Testimonials, Contact), NOT in a custom menu.

    So - I added a new page, Case Studies, made it public, gave it the page order I wanted, but it does not show up in the main menu. I have searched all over and the only answer I find is that it is not added to the custom menu, but a) I cannot add a custom main menu per my template, and b) all of the other pages show up as links, just not the new one I added.

    Can anyone help?

    Thank you.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Your theme appears to be using a non-core menu. Are you perhaps using a menu plugin?

  3. rtica3
    Member
    Posted 1 year ago #

    Thank you for your response. There are 11 plugins activated but none of them have to do with any menus. I find it so weird that the other pages are showing up that are set up the same exact way - and they have the same settings?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Your theme uses wp_list_pages() function to create the menu. Check the relevant template file in the theme and see if the include parameter is being used with that function.

  5. rtica3
    Member
    Posted 1 year ago #

    Ok, thank you, I will try to find it :) Would this be under Editor?

  6. rtica3
    Member
    Posted 1 year ago #

    Ugh. Searched all of the .php files and didn't find it... it has to be in one of the template php files, right? Geeze, kind of crazy it is so complicated to add a menu item, I've been trying to figure this out for hours!

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    Try looking in header.php.

  8. rtica3
    Member
    Posted 1 year ago #

    Ah - it has this:

    <?php
    if ( get_option(SHORTNAME."_mainnavhome") != ''){ $prosto_mainnav = 'show_home=' . get_option(SHORTNAME."_mainnavhome"); } else {$prosto_mainnav = 'show_home=1';}
    if( get_option(SHORTNAME."_mainnav") != '') {$prosto_mainnav .= '&sort_column=menu_order&include=' . get_option(SHORTNAME."_mainnav"); wp_page_menu($prosto_mainnav);} else {wp_page_menu();}
    ?>

    So what do I change? php is so mysterious... ;)

    Thank you!!!

  9. rtica3
    Member
    Posted 1 year ago #

    Hi. Are you still out there? So I changed include to exclude and thought I had fixed it, but then pages/links that I didn't want there appeared. All but 1 (the home page blurb under the slider) is actually in use, so I thought - well if I make those pages drafts, it won't pull them for the menu, but then even some of the published pages that were there before that I want don't show up. Thoughts? There seems to be no rhyme or reason. Is there something I need to add to the php to pull certain pages? Or a setting for the pages I want?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags