-
aicher
hello! i’d like to reach out for help with the design of my website at http://xn--substanzuntersttzte-therapie-g7c.de/
i’ve been trying to figure this out my second-level and third-level dropdowns by myself for some time but realized i still can’t get this going correctly. i was wondering if you could help with the following for the desktop version:
1. there’re some issues with how far to the left the second-level and third-level submenus appear . for example, you can see that the third-level submenu under Organisation → Verein → Mitgliedschaft appears too far to the left when hovering. However, once you open Verein or Mitgliedschaft, it stops being so skewed. i would like this variability to stop and things be more predictable. i have become confused in my own css that i’ve been trying to create, and i’d like to understand which parameters control the position of my second-level and third-level submenus on the horizontal axis.
2. i would like the text of the second-level and third-level menu items to be aligned to the left, not to the right.
3. i would like the top border of the second-level and third-level submenus to not run to the very edge on the left but rather start at the same point where the text of the menu items starts and finish where the text of the items of the upper-level submenu starts
4. the second-level submenus appear higher on hover than they are when subitems are opened. i would like them to appear at the same position on hover as they are when subitems are opened.this is what i currently have under additional css code: https://docs.google.com/document/d/1kxR8BgnkYLfEFMG37gP1AeQ5eWDGOHvuzttsqARzzhI/edit?usp=sharing
thank you very much!
-
Hi there,
Your site is under maintainance mode, can you disable that so I can view the site?
-
aicher
Hello, could you double check again? https://substanzunterstützte-therapie.de/
-
You added a lot of CSS, can you remove all the ones that are related to the menu?
-
aicher
yes, ma’am, sure, i have removed all the css that i could think of which is related to the menu. since that removed the menu features i have already managed to achieve, i guess i need to outline them here for you separately, in addition to my original request describing the features i was not being able to achieve by myself. if you could include both the points of my original request and these things below now absent due to removal of menu-related css, that would be most appreciated:
—the text of first-level menu is aligned to the right. it is always visible. second and third-level submenus appear when hovered over and when their nested pages are open
—there should be no toggle arrows or any other indicators for items that have submenus
—the submenus should dropdown when hovering over items, and upon hovering the cursor should change from the “arrow” to the “hand”
—no text in the menus and submenus should ever change color or become highlighted or in any other way amended, there should be no backgrounds or shadows, whether upon hover or opening of an item
—the spacing between items of the menus should be the same as the spacing between the lines of the content
—once we are taken to a page associated with an item of a submenu, that submenu should stay onscreen but should disappear once another item leading to another submenu is hovered over
—a submenu should appear to the left of its parent menu (second-level submenu is to the left of the first-level menu; third-level submenu is to the left of the second-level submenu)
—text of first-level submenu should be aligned to the right, text of second and third-level submenus should be aligned to the left
—second and third-level submenus should have a top border as described in the original request. as noted in that request, the border runs to the right up to the point where it hits just slightly below the name of the parent item.
i understand that with the removal of menu-related css now i had to describe these additional things to you which might complicate the picture, so please don’t hesitate to ask any questions and i’ll be happy to clarify. thank you for your support — couldn’t do it without you!
-
I can still see your CSS; Maybe you didn’t properly clear the cache.
Based on your requests, it looks like most of the listed items have been achieved. What can I help with then?
Here are some suggestions:
1. You’ve set the menu item line-height to 0, it’s not good practice, I would recommend at least setting it to 1em, and you can set their padding-top and padding-bottom to 0 if you want them get closer to each other.
2. Try adding this CSS to address the text alignment and width issue:
.main-navigation .main-nav ul li { width: fit-content !important } .main-navigation .main-nav >ul { align-items: flex-end; } .widget-area .main-navigation .main-nav > ul ul a { text-align: left; line-height: 1.1em; padding-block: 0; min-width: fit-content !important; white-space: nowrap; }
And for the sub menu of Angebote, you can adjust its
left
value to avoid overlap with the parent menu item. -
aicher
Hello Ying! I have deleted all my menu-related CSS, cleared the cache, and added your CSS. however, now most of the things in the menu aren’t working, i.e.:
–prior to deletion, i had second and third-level submenus always onscreen when their nested pages were open—i had submenus appearing to the left of their parent menus (second-level submenu was to the left of the first-level menu; third-level submenu was to the left of the second-level submenu)
—second and third-level submenus had a top border which i was trying to have running from where the text of the menu items starts up to the point where it hits just slightly below the name of the parent item
–i had no toggle arrows or any other indicators for items that have submenus
—i had no highlighting, shadowing or backgrounds or font color changes in the submenus
—the spacing between items of menus of all levels was the same as the spacing between the lines of the content (now first-level menu has different spacing)
Also, you gave some advice in #1 and at the end about Angebote, but I wasn’t sure how to implement because I was afraid to write more silly CSS code.
-
Hello Ying! I have deleted all my menu-related CSS, cleared the cache, and added your CSS. however, now most of the things in the menu aren’t working, i.e.:
My CSS was additional to your existing CSS as when I checked your site, all your CSS were still there. So can you add your CSS back and read my #1 suggestion? Thanks!
-
aicher
Hello Ying! I have brought the original CSS back and added your CSS. the first thing i noticed is that now, when i hover over THERAPIE or SUBSTANZEN and then try to move my mouse into the submenu, the submenu immediately disappears once the mouse enters its area, so it is not possible to click on any of the sub-items. !!Interestingly, this doesn’t happen with ORGANISATION.!!
-
Your site seems to have some cache issue, this is what it looks like right now, can you try clearing cache?
https://app.screencast.com/0F6nTzWTQhq4R -
aicher
Hello Ying! Hmmmm…. I have installed W3 Total Cache plugin into my WordPress and selected CLEAR ALL CACHES. can you check now? is it working OK?
-
aicher
I also requested my hosting provider to clear the cache on their side and they confirmed they did so.
-
No, it’s still like this:https://app.screencast.com/KFRS2lZXcD9kg
-
aicher
Hmmm, I see… i’ve purged all caches with W3 total cache plugin, and my hosting provider confirmed they performed OPCache flushing. how can i get this to work?
-
Check with the cache plugin’s support, or disable the cache plugin for now.
-
aicher
I have disabled the cache plugin and also set endurance cache setting to off in the general wordpress settings
- You must be logged in to reply to this topic.