Main menu wrap

Posted in: Newspaper
Post count: 117

Hi

how can I get my menu items to look like this (wrap) ?

my: https://i.postimg.cc/05hV3mCp/menu1.jpg

what I want: https://i.postimg.cc/FscTQRPw/menu2.jpg

tnx 🙂

Post count: 20685

Hi,

A link to the website would be helpful, so I can try to create a code and test it.

Basically you want to set a border between each element from what I can see. It would be best to stretch the menu first, to have them in one line
https://www.screencast.com/t/3arqYWPf3EJz

Let me know.
Thanks

Post count: 117

It is already streched to 1600px

I want each of the items to go to two rows just like on that other website

Post count: 117

I cant give you the link because the site is not live yet

Post count: 20685

If I understand correctly you want to break the menu items name into two rows. What header style are you using?
It will require to set a width, then break the words, maybe like this
https://www.screencast.com/t/7Ql9xhxE5N5

More design modification may be required for the header, also depending on what header style you use. I tried with header style 1, this is the code used in the example
https://pastebin.com/UzuTvHKR

Post count: 117

I’m using style3 header

This is what I get now… https://i.postimg.cc/cCfP3Ldz/easgfswfwfw.jpg

Post count: 20685

In my case with header style 3 and some modifications to the code, the results are like this
https://www.screencast.com/t/5FXJuAZHiDkl
But they may be different for you. Try to change the values in the code and experiment with it
https://pastebin.com/2wUj0qJB
Use the theme live CSS for example to test the results live, while you modify the code
https://www.screencast.com/t/DSSzgYLUtgCL

Post count: 117

yes now it works

but I need it to be verticaly center aligned… and I noticed that the submenu is also now breaked into two rows, but that I need to be as it was, not like this…

https://i.postimg.cc/N0KvTq93/hsergsfsfs.jpg

AND I need those arrows for submenu removed…

Post count: 20685

Made some more modifications, try it again – https://www.screencast.com/t/cK8jfVwf
https://pastebin.com/53eHPmgc

Post count: 117

excelent 🙂

tnx

Post count: 117

Hi again

https://postimg.cc/BP37cj2g

I need the whole menu centered on page…how?

Post count: 35449

Hi Matija,

In order to center align the main menu please add this custom css to above css
.td-header-style-3 #td-header-menu {
margin: 0px auto;
display: table;
}

See results: https://www.screencast.com/t/R7xYO4GKmzA

Thanks.

  • This reply was modified 7 years by Calin.
Post count: 117

I now have this: https://postimg.cc/3yr73zdV

this is all my custom css:

.td-header-style-4 #td-header-menu ul.sf-menu > .td-menu-item > a {
word-break: break-word;
max-width: 142px;
min-height: 78px;
line-height: 20px;
/* Internet Explorer 10 */
display:-ms-flexbox;
-ms-flex-pack:center;
-ms-flex-align:center;
/* Firefox */
display:-moz-box;
-moz-box-pack:center;
-moz-box-align:center;
/* Safari, Opera, and Chrome */
display:-webkit-box;
-webkit-box-pack:center;
-webkit-box-align:center;
}
.td-header-style-4 #td-header-menu .td-icon-menu-down {
display: none;
}

.td-header-style-4 #td-header-menu {
margin: 0px auto;
display: table;
}

header style is 4…

Post count: 35449

Hi,

If you are using header style 4 please replace the above custom css with this one
.td-header-style-4 #td-header-menu ul.sf-menu > .td-menu-item > a {
word-break: break-word;
max-width: 142px;
min-height: 78px;
line-height: 20px;
/* Internet Explorer 10 */
display:-ms-flexbox;
-ms-flex-pack:center;
-ms-flex-align:center;
/* Firefox */
display:-moz-box;
-moz-box-pack:center;
-moz-box-align:center;
/* Safari, Opera, and Chrome */
display:-webkit-box;
-webkit-box-pack:center;
-webkit-box-align:center;
}
.td-header-style-4 #td-header-menu .td-icon-menu-down {
display: none;
}
.td-header-style-4 #td-header-menu ul{
margin: 0px auto;
display: table;
}
.td-header-style-4 #td-header-menu img,
.td-header-style-4 .header-search-wrap .td-search-btns-wrap{
margin-top: 15px;
}

Hope this will help you.

Thanks.

Post count: 117

tnx I think it works now

but the logo (little house – home) is still on the left hmm

https://postimg.cc/684fXfXy

Post count: 35449

Hi,

Please replace the above css with this one:
.td-header-style-4 #td-header-menu ul.sf-menu > .td-menu-item > a {
word-break: break-word;
max-width: 142px;
min-height: 78px;
line-height: 20px;
/* Internet Explorer 10 */
display:-ms-flexbox;
-ms-flex-pack:center;
-ms-flex-align:center;
/* Firefox */
display:-moz-box;
-moz-box-pack:center;
-moz-box-align:center;
/* Safari, Opera, and Chrome */
display:-webkit-box;
-webkit-box-pack:center;
-webkit-box-align:center;
}
.td-header-style-4 #td-header-menu .td-icon-menu-down {
display: none;
}
.td-header-style-4 #td-header-menu {
width: 1024px;
margin: 0px auto;
display: table;
}

Thanks.

Post count: 117

now its okey 🙂

I just put the 1400px instead of 1024px

tnx

Post count: 117

One more quesstion 🙂

How can I put the search widget in the header right of the header AD which is my logo above the menu?

Hope you understood me 🙂

Post count: 35449

Hi,

If this is what you like https://www.screencast.com/t/h4CYmscDfpu , all you have to do is to have the search in menu enable and paste the below custom css
.header-search-wrap{
position: absolute;
top: -100px;
}
.td-header-style-4 .header-search-wrap .td-icon-search {
color: black;
}

Thanks.

Post count: 117

I want the whole widget, not just the icon…

can that be made?

Post count: 35449

Hi,

You want something like this?
https://www.screencast.com/t/O8bZMt3s
.header-search-wrap .td-drop-down-search{
position: absolute;
top: -110px;
opacity: 1;
visibility: visible;
}

Thank you.

Post count: 117

I want it like this: https://postimg.cc/qtCXC7yN

the logo above is actually the header ad code: Općina Pitomača

I resized it so that we can put that widget there on the right

Post count: 117

I want it always visible without that search icon that has to activate by mouseclick

Post count: 117

I also need this header ad more to the left…

Post count: 35449

Hi,

Please try this custom css
.header-search-wrap .td-drop-down-search{
position: absolute;
top: -110px;
visibility: visible;
visibility: visible;
opacity: 1;
pointer-events: auto;
}
.header-search-wrap .td-search-btns-wrap{
display: none;
}
.td-header-wrap .td-drop-down-search:after,
.td-header-wrap .td-drop-down-search:before{
display: none;
}

This is all I can do without a link to your website.

Thank you for your understanding.

Viewing 25 posts - 1 through 25 (of 34 total)
You must be logged in to reply to this topic.