I
I
Igor Plotnikov2017-02-19 21:42:31
css
Igor Plotnikov, 2017-02-19 21:42:31

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

3 answer(s)
V
Vitaly, 2017-02-19
@hunter2014

file
/wp-content/themes/wilo/main.css
line 2314 do this

ul li {
    padding-left: 0.5em;
    display: inline-block;
}

X
xenofobius, 2017-02-19
@ksenofobius

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

I
Igor Mavlikhanov, 2017-02-19
@Gori4ka

You do not need to look for anything in your theme css file, write down

#menu-navmenu ul li {
    display: inline-block;
}

well, or you can write in the function file
add_action('wp_head',function(){
?>
<style>
#menu-navmenu ul li {
    display: inline-block;
}
</style>
<?php
});

and everything will be
=======
style .menu-navmenu-containeris in the root of your theme in the filemain.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question