- This topic has 15 replies, 2 voices, and was last updated 8 years, 5 months ago by
Tom.
-
AuthorPosts
-
April 16, 2015 at 11:46 pm #99374
Krzysztof
I have problem with submenu arrows after update Generatepress from version 1.2.9.2 to 1.2.9.3.
Old look:
New look:
I have custom walkter. How now change arrows position? π
April 16, 2015 at 11:52 pm #99378Tom
Lead DeveloperLead DeveloperHmm, the arrows shouldn’t have changed position, they’re just being added using CSS instead of javascript to avoid the jump on load.
Try clearing your browser cache and any caching plugins you may have.
April 16, 2015 at 11:52 pm #99379Krzysztof
And the difference in code:
April 16, 2015 at 11:53 pm #99381Krzysztof
It’s no cache problem.
April 16, 2015 at 11:59 pm #99382Tom
Lead DeveloperLead DeveloperHmm, what’s the reason for the custom walker? I would need to see the website and inspect the code/compare it to what it should be to see what’s going on.
It’s about 1AM here right now and about to get to bed, so I’m not as helpful as I could be, but if you’d like to email me your URL I’ll take a look first thing in the morning and will find a fix for you.
For now, perhaps try removing the arrow with CSS to avoid the overlapping.
Sorry for the inconvenience!
April 17, 2015 at 12:15 am #99384Krzysztof
I sent the mail to You π Goodnight.
April 17, 2015 at 10:02 am #99504Tom
Lead DeveloperLead DeveloperHmm, how did you make it so the sub menu only opens when you hover over the arrow?
Try this:
.sf-menu .menu-item-has-children > a:first-child, .sf-menu .page-item-has-children > a:first-child { padding-right: 2.5em !important; }
April 17, 2015 at 10:13 am #99510Krzysztof
It’s doesn’t work π I back to previous Generatepress version – check my page again, You will now see how I did it.
April 17, 2015 at 10:35 am #99517Tom
Lead DeveloperLead DeveloperHmm, I’m not seeing an easy fix here – I’m actually having a tough time seeing how you accomplished this! I’m on a mini vacation over in Vancouver on a laptop, I’m spoiled at home with multiple monitors and all my development tools! Hard to debug on this thing.
Since you created a custom menu, how about removing the default arrow (hide it using CSS), then add your own arrow inside your custom walker (you can use the Font Awesome caret down icon). Let me know π
April 17, 2015 at 11:09 am #99588Krzysztof
I tried to add custom CSS but is too difficult for me (other errors appeared – I give up and stay with older GP version).
April 17, 2015 at 10:44 pm #99708Tom
Lead DeveloperLead DeveloperOk – I’ll keep this open and we’ll find a fix when I’m back at my own computer.
Sorry for the inconvenience!
April 27, 2015 at 12:03 pm #102903Krzysztof
Could You help me now? π
April 28, 2015 at 8:29 am #103240Tom
Lead DeveloperLead DeveloperYes! π
Can you email me with everything I may need? (link to your website etc..).
Thanks!
April 30, 2015 at 10:25 am #104223Tom
Lead DeveloperLead DeveloperOk here we go – sorry for the delay!
.sf-menu .menu-item-has-children > a:first-child::after, .sf-menu .page-item-has-children > a:first-child::after { border: medium none !important; display: none !important; } .sf-menu .menu-item-submenu > a::after { content: ''; position: absolute; top: 50%; right: -.5em; margin-top: -3px; height: 0; width: 0; border: 5px solid transparent; border-top-color: inherit; margin-top: -5px; border-color: transparent; border-left-color: inherit; }
May need some tweaking, but it’s a start π
April 30, 2015 at 10:35 am #104230Krzysztof
It works amazingly! Thank You very much π Now I know what changes should be made to have a look what I want.
-
AuthorPosts
- You must be logged in to reply to this topic.