- This topic has 11 replies, 5 voices, and was last updated 4 years, 10 months ago by Leo.
-
AuthorPosts
-
January 1, 2018 at 2:30 am #460820Anil
Hi,
I have added a button on my menu, but I am unable to resize it. It appears too large on the desktop and covers the entire width in the slideout menu on mobile. I tried using Custom CSS to edit the properties but wasn’t able to get the desired result. How do I fix the button?
Thanks,
Anil
January 1, 2018 at 7:58 am #460972LeoStaffCustomer SupportHi there,
Try using the same method of selector here: https://docs.generatepress.com/article/adding-buttons-navigation/
And add this style:
line-height: 20px;
January 1, 2018 at 9:33 pm #461277AnilI tried adding the line height, but it isn’t working. Not sure what I am doing wrong here. Can you help?
Regards,
Anil
January 2, 2018 at 12:09 am #461316TomLead DeveloperLead DeveloperGive this a shot:
.main-navigation .main-nav ul li.quote-button a { line-height: 35px; }
January 2, 2018 at 9:33 pm #462007AnilNope, that didn’t work either
January 2, 2018 at 9:44 pm #462015LeoStaffCustomer SupportLooks working to me: https://s18.postimg.org/r1xk49zc9/2018-01-02_2143.png
January 3, 2018 at 12:40 am #462078AnilHey yeah. Guess I forgot to do a hard refresh of my page. Thanks a lot Leo & Tom
January 3, 2018 at 8:40 am #462415LeoStaffCustomer SupportNo problem!
May 20, 2019 at 12:31 pm #905858NeleHi there,
I’ve placed a button in my main menu. (website http://www.dshomecosult.be)
but I have 4 questions:
1: My logo (left) and my menu(right) aren’t on the same “height”, I’ve tried and change the height trough customization –> lay out –> menu –> main menu –> menu height BUT my button gets all big when I do this.
code i used to make a button in my navigation:
@media (min-width:769px) { .main-navigation .main-nav ul li.nav-button a { -webkit-border-radius: 5; -moz-border-radius: 5; border-radius: 5px; font-family: Montserrat; color: #ffffff; font-size: 15px; background: #cf203b; padding: 0px 5px 5px 5px; text-decoration: none;
I’ve tried and change the header height, header padding and logo padding but I can’t get a solution where my button has a normal size AND my logo and menu are on te same size.
2: I want the size between my menu items to be equal. I’ve found where to change the space inbetween them but with my button there always seems there is less space between the item next to the button and the button itself. Is there anyway to fix this?
3: it seems my word ‘contact’ is a bit off center (horizontally) in the button.
To fix this I tried a code but it only changed my button size again…4: I want to give it a hover effect…to start with I just wanted to change the colour of the button and i have found this code:
.butn:hover { background: #fffff; text-decoration: none; }
But it doesn’t work and i also would like the color of the text to change…
Could you guys please help me out? What am I doing wrong?
kind regards
NeleMay 20, 2019 at 12:33 pm #905861LeoStaffCustomer SupportPlease open a new topic for your questions.
Thanks!
June 14, 2019 at 11:31 am #929875azizHi Team ,
I have used the code, but nothing happened, did I miss something ?
I also added the class : nav-button
@media (min-width:769px) {
.main-navigation .main-nav ul li.nav-button a {
background-color: #ffffff;
border: 2px solid #000000;
color: #000000;
line-height: 35px; /*this number will likely need to be adjusted*/
}
}Thanks very much
AzizJune 14, 2019 at 11:47 am #929888LeoStaffCustomer SupportCan you link us to the site in question?
-
AuthorPosts
- You must be logged in to reply to this topic.