Getting shortcode and/or a plugin to work in Menu Bar

Community Forums Forums Design Tips and Tricks Getting shortcode and/or a plugin to work in Menu Bar

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  SoZo 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15709

    EfremJ
    Participant
    Post count: 1

    Hi,

    We’re using the Serenity theme and would like to add the “Search By Category” (http://wordpress.org/extend/plugins/search-by-category/) plugin to our top nav/menu bar but it’s confounding the heck out of me as to how to do it.

    I was directed to this tutorial:¬†http://www.billerickson.net/genesis-wordpress-nav-menu-content/ but honestly, it’s still eluding me.

    Any help would be appreciated.

    Regards,

    -Efrem

    #15759

    SoZo
    Moderator
    Post count: 1573

    What did you try?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #18277

    EfremJ
    Participant
    Post count: 1

    Hi, SoZo.

    I spent about three days trying to get a custom search form to work in the nav bar but with no success.

    I created filters (add_filter) in the functions.php that called the search function. That didn’t work.

    I embedded the search code in the functions.php. That didn’t work.

    I could get the search working above the header but not inside of the nav bar where we wanted it.

    I had to move on to other tasks but am coming back around to this now and am at the point where we’re looking to hire somebody to do this for our company. I’d prefer to have the folks at Studio Press get the job–it should be an easy thing for you–but am seriously out of time and options to try.

    -Efrem

    Efrem R. Jasso
    Director of Electronic Initiatives
    Plan Z by Zola & Sparque, Inc.
    800-255-9853 ext. 301
    efremj@planzdiet.com

    #18279

    SoZo
    Moderator
    Post count: 1573

    The metro theme adds a sidebar to the subnav with this
    [php]// Adds widget area before the .menu on #subnav
    add_filter( ‘genesis_do_subnav’, ‘child_do_subnav_widget’, 10, 2 );
    function child_do_subnav_widget( $subnav_output, $subnav ){
    ob_start();
    genesis_widget_area( ‘subnav-left’, array(
    ‘before’ => ‘<div class="subnav-left widget-area">’,
    ) );
    $widget_area = ob_get_clean();

    return str_replace( $subnav, $widget_area . $subnav, $subnav_output );
    }[/php]

    You should be able to figure it out from there but if you want me to do it you can email me john[at]sozosdesign.com.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.