Answer the question
In order to leave comments, you need to log in
How to line up menu items in wordpress?
On this site , you need the menu to go along the top blue line, I couldn’t change it to via my css, I couldn’t find the css file in which the style is located .
help :*( display: inline-block;
.menu-navmenu-container
Answer the question
In order to leave comments, you need to log in
file
/wp-content/themes/wilo/main.css
line 2314 do this
ul li {
padding-left: 0.5em;
display: inline-block;
}
Try to change the width of the parent block, most likely the menu items are in a line, but do not fit into the parent block => are transferred. As a temporary crutch, use white-space: nowrap; this will cancel the block wrapping to a new line
You do not need to look for anything in your theme css file, write down
#menu-navmenu ul li {
display: inline-block;
}
add_action('wp_head',function(){
?>
<style>
#menu-navmenu ul li {
display: inline-block;
}
</style>
<?php
});
.menu-navmenu-container
is in the root of your theme in the filemain.css
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question