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

  1. alex2k5
    Posted 2 years ago #

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


    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.


  2. sevenspark
    Plugin Author

    Posted 2 years 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

  • Responsive Select Menu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.