- This topic has 11 replies, 2 voices, and was last updated 8 years, 10 months ago by
Leo.
-
AuthorPosts
-
May 24, 2017 at 6:37 am #323441
David
StaffCustomer SupportHi
i followed one of the earlier posts regarding the formatting of the main menu.
I have used the prescribed CSS to remove the downward arrow for menus with children:/* format menu main nav bar*/ .menu-item-has-children .dropdown-menu-toggle { display: none; } .main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 20px; }Well the arrow disappears but the padding to make up for its absence doesn’t work?
Any ideas.
May 24, 2017 at 7:59 am #323485Leo
StaffCustomer SupportHi David,
Can you provide a link to your site so we can take a look? Thanks!
May 24, 2017 at 8:02 am #323494David
StaffCustomer SupportHi Leo
ill send link across email
thanks
David
May 24, 2017 at 11:21 am #323586Leo
StaffCustomer SupportI see the code working but it’s only 10px.
Change it to 30px then it should be even on both sides.
Let me know.
May 24, 2017 at 11:35 am #323602David
StaffCustomer SupportHi Leo,
sorry it doesn’t work – even if i put 500px in the padding it still doesn’t change 😉
David
May 24, 2017 at 11:44 am #323609Leo
StaffCustomer SupportAre you using any caching plugin? Try clearing your browser cache?
I can see the 10px padding on the right working.
May 24, 2017 at 11:57 am #323619David
StaffCustomer SupportHi Leo,
no caching plugin just opcache on the server. cleared local cache didn’t change. however tried it on windoze and its all good. i think my mac needs some caffeine – ill give it a reboot and see what the result is. Sorry to waste your time.
Of course while your there, is there an easy way of putting underlines below the menu items on hover and when active?
regards
David
May 24, 2017 at 12:02 pm #323621Leo
StaffCustomer SupportNo worries 🙂
I find this is cool for menu underline: https://generatepress.com/forums/topic/animating-link-underlines-for-main-menu/#post-200801
Let me know if that works for you.
May 24, 2017 at 12:34 pm #323641David
StaffCustomer SupportHi Leo
thank you – thats some pretty funky code from Luiz. I may spend some time getting my head round how it works!
Much appreciated.
Case resolved x2!
David
May 24, 2017 at 12:46 pm #323644Leo
StaffCustomer SupportTo be honest I’m not sure how it works either 😉
Just copy and paste the whole thing then you should see the result 🙂
Glad I could help!
May 24, 2017 at 12:57 pm #323652David
StaffCustomer SupportLol
i think got my head around it a little – and has just helped me simplify some of my own CSS transforms!May 24, 2017 at 3:59 pm #323729Leo
StaffCustomer SupportAwesome!
-
AuthorPosts
- You must be logged in to reply to this topic.