I've done a few and sometimes ive noticed that when I try to implement some plugins, widgets, etc, they don't work.

When I add the wp_head() function right before the closing head tag, Then they work. The problem I'm having is that when I try to add it before the head tag, It breaks my menu's styling.

I am using a menu plug in called Multi-level Navigation Plugin that I found in the wordpress.org downloads section.

Is there something I'm missing? When I add wp_head(), the only thing that breaks is the menu's styling. As soon as I remove it, everything is works well again.

  • Do you have the same issue using the default theme and no plugins but the one in question? I have a feeling this is a user-support question which should probably be directed at the plugin developer, but there's not enough information to say definitively.
    – mor7ifer
    May 16 '12 at 17:48

wp_head() and wp_footer() are absolute requirements for any WordPress theme. Without them, themes, plugins, and WordPress core can't enqueue scripts and styles that are crucial for the correct functioning of your site. (So if something has to go, it's the menu plugin and not wp_head()).

Unfortunately, a lot of plugins don't actually implement their styles and scripts correctly and so can conflict with other correctly implemented plugins.

Looking at that specific plugin, I see the following entry in the changelog for the newest version:

Fixed CSS file loading setting bug

Are you running the most recent version of the plugin? It's possible you're seeing that very bug.

As @m0r7if3r says, you should try using Twenty Ten to see if the that resolves the problem (in which case it's a theme issue). Otherwise, try disabling all the other plugins, reenabling them one by one, and watching to see if another plugin is conflicting with the menu plugin (the problem plugin could be the menu or a second plugin).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.