Archived topic
Can't set secondary menu to "align left" anymore
11 replies · Started by Helmut on September 22, 2022
Today (I think after installing this plugin https://de.wordpress.org/plugins/free-images/) I can't set the align of my secondary header menu to "left" anymore - it is always right. Even after disabling and uninstalling the plugin it doesn't work.
Is there anything I can do about this?
So center works, but left and right is always right.
Hi Helmut,
Can you set it to left, and we'll observe what's happening from our end.
done so.
You have a plugin causing the issue. Try adding this CSS:
nav#secondary-navigation .main-nav {
order: -1;
}
thank you so much.
(do you have an idea, which plugin it is, in other words, can the plugin mentioned above still causes this issue even if I deinstalled it?)
What a great support here :-)
I believe it's the Search Plugin you have. How are you adding the Search Icon?
it's a hook <?php echo do_shortcode('[wpdreams_ajaxsearchpro id=2]'); ?> which I put in "generate_inside_secondary_navigation"
but I did so many weeks ago and this didn't affect the align until today...
Try removing the code I provided, and altering the Priority of that hook. Try something like 100, 1000 or something even higher to test.
tried so, doesn't work, if I remove the code, the align is right again.
I see. You can try Custom Hook - generate_after_secondary_menu
seems to work - thank you so much :-)
You're welcome Helmut! :)