Support » Plugin: Responsive Select Menu » Help with custom situation

  • Resolved alex2k5


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

    Adding Content to Genesis Navigation

    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.

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark


    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. 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Help with custom situation’ is closed to new replies.