Tagged: menu
-
AuthorPosts
-
August 28, 2018 at 4:21 pm #1002748
Welche Möglichkeiten gibt es das Menü mit eignen Bildern zu gestalten!
Habe das Plugin “Menu Image” versucht aber die hochgeladenen Bilder werden nicht angezeigt!Menü sollte etwa so aussehen wie das beigefügte Bild!
Danke für die Hilfe
August 29, 2018 at 5:39 am #1002976Hallo marsadvice,
You could try to add image markup to custom links in your menu like so:
<img src="https://your.site/image.jpg">Menu text
I’m not sure if that would work but you could give it a try.
Grüß,
RikardAugust 29, 2018 at 5:40 am #1002977Hi again,
It might be possible to set the images as backgrounds to the menu items if my first suggestion doesn’t work out for you.
Best regards,
RikardAugust 29, 2018 at 8:54 am #1003033in your first tip: how can i set the image above the text as shown ? (with this solution the image is straight before the text and if i add <br /> the text disappears)
and how can i try to set the images as backgrounds (like your sec. tip)?
thnx!
- This reply was modified 6 years, 3 months ago by marsadvice.
August 29, 2018 at 2:19 pm #1003156Hi,
Thanks for the feedback. The menu items are not adapted for having images in them so you would likely need custom CSS to fix that, if it’s possible to fix. Where can we see the results you are getting?
Best regards,
RikardAugust 29, 2018 at 2:30 pm #1003165i just can giv you the pic. it runs in a local testsystem (done with your first tip with image markup)
the menue should look like the blue imige and text in the second row
thnx
August 29, 2018 at 2:39 pm #1003167First – you don’t need the custom link – if these Menupoints are real links.
just open the menu-item at that littel arrow on the right. And on Navigation Label you can insert Ricards Code.If you got a link to your page – it is much easier to give any advice.
i gave to those menu-items a custom-class : bildlink
(if you have all menu links like this – get rid of that bildlink in the code)
(if not : you know how to give a custom class to menu-items?)then to quick css:
.bildlink .avia-menu-text { line-height: 20px; vertical-align: top; } .bildlink.menu-item img { display: block; width: auto !important; height: 50%; position: relative; }
we had to find then a solution for the hamburger menu too – but with link it will be easier
August 29, 2018 at 2:59 pm #1003172you even can do a hover on those images like:
.bildlink.menu-item a:hover img { transform: scale(0.95) translateY(-3px); -webkit-filter: hue-rotate(180deg) saturate(400%); filter: hue-rotate(180deg) saturate(400%); }
August 29, 2018 at 3:21 pm #1003177.
- This reply was modified 6 years, 3 months ago by marsadvice.
August 29, 2018 at 3:46 pm #1003194Well if there is a hidden private area – i do not see it because i’m participant as you are
August 29, 2018 at 3:59 pm #1003206WOW THANK YOU… looks much better now! Great Job!
there are just 2 little points more1 the menu text and the image were align is left and should be center (like above image in the second row)
2 is it possible to show the text in two lines?August 29, 2018 at 4:35 pm #1003214i do not see the link in private content. – i’m a participant as you are. Only Mods could see that content.
So if you can not make your link public – then you have to wait til mods are here.Text in two lines – you can try in navigation label to set a line-break between your text parts (
<br> or <br/>
)<img src="https://your.site/image.jpg">Für<br/>Unternehmen
August 30, 2018 at 12:57 pm #1003537Hi marsadvice,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaAugust 31, 2018 at 7:19 am #1003933@Guenni007 The Problem with <br/> is, that there is too much line spacing between and it is not aligned centered!
@victoria as i said the side is at the moment on a local test environment.August 31, 2018 at 7:28 am #1003937without a link i’m out here.
It could be all (including line-height) SorryAnd i think there will be no good way with a shrinking header
last speculation:
.bildlink.menu-item { overflow: visible !important; } .bildlink a { line-height: 10px !important; overflow: visible !important; text-align: center !important; } .bildlink.menu-item img { display: block; width: auto !important; height: 50%; position: relative; margin: 0 auto; } .bildlink .avia-menu-text { line-height: 20px; vertical-align: top; }
-
AuthorPosts
- You must be logged in to reply to this topic.