• I set my home page to display as a static page… problem is that instead of “home” in the nav bar it’s displaying the page name.

    I could change the page title to “home”, but I want to keep the page title in h1 text on the page as it displays before the post.

    Here’s the website:

    https://accountantottawa.net

    I see the nav bar code (below) in header.php, but have no idea how to edit it to change this.

    <div class=”art-nav”>
    <div class=”l”></div>
    <div class=”r”></div>
    <ul class=”art-menu”>
    <?php art_menu_items(); ?>

    </div>

    Thanks for any help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • If you can use wp_nav_menu function and you’ll have full control over your menus.

    Or you could examine the art_menu_items() function to determine how the menu is being generated.

    Thread Starter moessap

    (@moessap)

    The nav menu gives me the message:

    “The current theme does not natively support menus”

    So I guess that option’s out?

    This is what I found in functions.php for art_menu_items… no idea what I should add in here to change this… sorry bit of a newbie to this.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks again for any help :).

    Thread Starter moessap

    (@moessap)

    Edit

    https://pastebin.com/4DA3ZfFk

    Sorry I’m not sure if I’m supposed to paste the pastebin url or what… embedding the past didn’t work.

    Try removing art_print_homepage();

    Thread Starter moessap

    (@moessap)

    Hey sorry I didn’t see the reply.

    I tried that, but it didn’t seem to change anything.

    Any other suggestions?

    Thanks!

    Your theme might not give you the option to change the title. So If you want to give creating your own menu and modifying the theme…

    1. In functions.php add
    if ( function_exists( ‘add_theme_support’ ) ){
    add_theme_support( ‘menus’ );
    }

    2. Under menus in the sidebar create your menu by adding pages and give it a name of ‘art-menu’. Pretty straight forward. In there you’ll be able to change the label of your items, which is what you are looking for.

    3. Replace

    <ul class="art-menu">
    <?php art_menu_items(); ?>
    </ul>

    with

    <?php wp_nav_menu(array('menu' => 'art-menu', 'menu_class' => 'art-menu')); ?>

    Thread Starter moessap

    (@moessap)

    Hey… thanks a ton for the reply… it worked :).

    The menu didn’t show up properly though… the font and alignment was
    off… I assume I’d need to create formatting within the stylesheet?

    Thanks again!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing Nav Bar Home Page Display Name’ is closed to new replies.