
-
AuthorPosts
-
March 2, 2025 at 11:48 am #1478376
the menu item Pranayamalehrer Ausbildung is very long. Would be good to have it break over 2 lines. Please send code how this can be done and how I can adjust the spacing and the line height of the individual items.
March 2, 2025 at 5:39 pm #1478394Hey ausgesonnen,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#menu-item-96 a .avia-menu-text { white-space: normal; word-wrap: break-word; display: block; width: 150px; text-align: right; line-height: 15px; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.
adjust to suit
Best regards,
MikeMarch 3, 2025 at 9:18 am #1478447Ok that worked. Thank you
-
This reply was modified 1 month ago by
ausgesonnen.
March 3, 2025 at 5:43 pm #1478481how can I play with the spacing of the menu items in general? please send code
March 3, 2025 at 7:46 pm #1478489Hi,
I’m not sure that I understand your intentions, please try to explain what you are looking to achieve a bit further or post a screenshot highlighting what you would like to achieve.
Best regards,
RikardMarch 4, 2025 at 9:26 am #1478548https://www.imghippo.com/i/Xvvo5048dCQ.png
This is the problem. The spacing between the items is not even anymore. Why is that? How can I adjust them.March 4, 2025 at 1:25 pm #1478574Hi,
This is coming from your child theme:
.main_menu ul:first-child > li a { height: inherit !important; line-height: inherit !important; }
Try setting a fixed value instead.
Best regards,
RikardMarch 4, 2025 at 6:14 pm #1478598Ok, I tried this.
.main_menu ul:first-child > li a {
height: 100px; /* Adjust as needed */
line-height: 100px;
}still the same problem.
March 5, 2025 at 12:30 pm #1478666Hi,
The code that I pasted above is still applying on your site. Please keep the changes you make active on the site, so that we can check why they are not applying.
Best regards,
RikardMarch 8, 2025 at 7:01 pm #1478914I don’T understand what you mean. Shall i delete something? Add something? change something? Please be very specific.
March 8, 2025 at 7:38 pm #1478916Hi,
The menu item “Pranayamalehrer Ausbildung” is very long, to break it into two lines I gave you this css#menu-item-96 a .avia-menu-text { white-space: normal; word-wrap: break-word; display: block; width: 150px; text-align: right; line-height: 18px; }
the line in the cssline-height: 18px;
brings the two lines in the single menu item closer together so your visitor will know it is one item.
If you don’t like this then remove this line from the css:
but it may look like two separate menu items and be confusing, or you can adjust the number to suit.Best regards,
MikeMarch 10, 2025 at 9:10 am #1479007The problem is another. Please look closely at these 2 pictures. Picture 1 is how it is at the moment. Picture 2 is what I want to achieve.
The lines heights to the item above or below differ between the normal lines and the lines where the text breaks over 2 lines. Do you see what I mean? I want the distance between Start and Pranayama to be the same as between Integraler Ansatz und Pranayamalehrer Ausbildung.
Thank you
March 10, 2025 at 11:14 am #1479014Zunächst sieh es dir jetzt nach meinen Veränderungen an den Headerbereich betreffend.
Aber du hebelst ja selbst mittels der “Engführung” des menu-items 96 die Gleichmäßigkeit aus:
#menu-item-96 a .avia-menu-text { line-height: 18px; }
die Äquidistanz ist ja da wenn du die Einstellungen zurücknimmst.
man könnte es erzwingen … indem du die fehlenden 9px / jetzt 5px ( der line-height – jetzt 20px ) oben und unten dazu gibst:
#menu-item-96 a .avia-menu-text { white-space: normal; word-wrap: break-word; display: block; width: 150px; text-align: right; line-height: 20px; padding: 5px 0; }
Also allgemein line-height 30px – hier dann diesem Menüpunkt die 20px + 2x5px open /unten
PS: ich habe es mal reingesetzt. Dann siehst Du wie es sich verhält.
March 11, 2025 at 11:22 am #1479071Ja vielen Dank. Jetzt ist es gut.
March 11, 2025 at 4:28 pm #1479093Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
This reply was modified 1 month ago by
-
AuthorPosts
- The topic ‘Menu item to break over 2 lines’ is closed to new replies.