Ready to get started?Download WordPress


Adding menu options to Topbar, Header & Footer (3 posts)

  1. gator4231
    Posted 8 months ago #

    I'm very new to working with WordPress and code in general. I tried adding additional menus via code in the theme editor for Hueman. (Only one menu spot for Topbar, Header & Footer?). Now the admin login and the website login redirect me to this message
    "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in D:\Hosting\11658448\html\wp-content\themes\hueman\functions.php on line 84"
    How do I get the website working and how do I add menus correctly?
    I used this link but I'm guessing I followed the directions wrong.

  2. Alexander Agnarson
    Theme Author

    Posted 8 months ago #

    You would first copy the entire alx_setup function over to your child theme's functions.php (sample child theme download available in theme options, help dropdown top right)

    Then, where you see:


    Just add your menu there to the 3 other ones. And then add the template functionality, that too via a child theme overwrite.


  3. gator4231
    Posted 8 months ago #

    Hi Alexander! Thank you for providing information & support. I have the child theme downloaded and my website back up. I registered new menus but I'm not sure how to add the template functionality on the child theme. The header.php, footer.php, etc. under the Template column doesn't seem to exist in the child theme editor. Is this where I apply the code..... <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>

    Thanks again!


You must log in to post.

About this Theme

About this Topic