WordPress.org

Ready to get started?Download WordPress

Forums

Responsive Select Menu
[resolved] Help with custom situation (2 posts)

  1. alex2k5
    Member
    Posted 1 year ago #

    I am adding social icons to the end of my navigation bar manually in the functions.php file using this method:

    http://www.billerickson.net/genesis-wordpress-nav-menu-content/

    When I do this, they are added to the drop down select menu, but are not converted to options, it just re-prints my manual html. Causing errors in the html output.

    If there a way I can exclude them in my function, like

    if (we_are_printing_the_select_options) { return $menu; } else { return $menu.$follow; }

    I know it's an odd situation, just figured I'd ask.

    http://wordpress.org/extend/plugins/responsive-select-menu/

  2. sevenspark
    Member
    Plugin Author

    Posted 11 months ago #

    Assuming you have access to the nav menu $args array in your filter, you could check for

    $args['responsiveMenuSelect'] == true

    Otherwise you could just set a counter and only run the code once, or simply remove the filter after the first execution. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.