[resolved] How to add native support for menus to Prosense theme (7 posts)

  1. lutetia
    Posted 4 years ago #

    Hi All,

    My website uses the Prosense theme, which does not natively support the new menus feature.

    I would like to add native support to my theme as I prefer having a horizontal menu versus a sidebar menu. The drop down menu bar I currently have does not render well in all browsers, and I'd like to find a better solution.

    I've come across a few articles about adding support for menus but they seem aimed at theme developers and I do not understand what I actually need to do and in which files. I have made a number of changes to my theme already, mostly via trial and error, but have very limited coding experience.

    Can anyone offer some guidance?

    I've considered changing themes altogether, to one that does offer this menu support, but I'm concerned about the potential mess my visitors will see until I have customised everything on the new theme.

    Any advice much appreciated.

  2. lutetia
    Posted 4 years ago #

    Hello... Anyone?

  3. esmi
    Forum Moderator
    Posted 4 years ago #

  4. lutetia
    Posted 4 years ago #

    Thanks Esmi - I'll give it a try!

  5. lutetia
    Posted 4 years ago #

    OK, I feel I'm getting closer. The instructions seem clear.... except for where exactly I should place the code.

    Below is what's in my theme functions file.

    Where would I add the edits mentioned in those instructions? Can I just append them to the end? Do they need some opening and closing <?php and ?> ?

    if ( function_exists('register_sidebar') )
    function widget_mytheme_search() {
    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>"><p><input type="text" value="Search this site" name="s" id="s" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /></p></form>
    if ( function_exists('register_sidebar_widget') )
    register_sidebar_widget(__('Search'), 'widget_mytheme_search');


  6. lutetia
    Posted 4 years ago #

    Well I added the edits to the end of the functions file, before the ?> and that went OK.

    But when I added the line
    <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>

    in my header file, replacing the current html menu code that's in there, it made a huge mess of my site...

  7. lutetia
    Posted 4 years ago #

    For anyone who needs help with this, the thread that helped me to finally get this to work is here:


Topic Closed

This topic has been closed to new replies.

About this Topic