• Tyler Regas

    (@tylermobodojocom)


    I’m trying to clean up my theme, which is currently Atahualpa. I’ve been trying to get the following code to work the way I want it to in my custom menu:

    <?php get_search_form();?>

    It works. That’s not the problem. I just add the tag as LABEL and enter a hash into the URL field. I’ve used this to add images to the menu strip and it works just peachy.

    My problem comes up with the CSS. The menu code specifies what looks like a 10px margin all the way around the text, which also gets applied to the search form. It makes the menu look bad to be so much larger than the menu items inline with it.

    Is there anyway I can get the 10px margin to be bypassed for just that menu item? I’m not a coder, though I can play one on TV. I’m just decent at hacking about WP.

    Might I be able to insert custom CSS in the Atahualpa configuration and then call the new class in the code that I insert into the LABEL field?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Inserting search form into custom menus’ is closed to new replies.