-
AuthorPosts
-
April 5, 2017 at 4:57 pm #772668
Hi,
It is possible to put behind each menu item in the header a png file as background image ?
April 5, 2017 at 10:39 pm #772865Hey BPC,
It is possible, but visually may not look good as it could distort the text and make it unreadable.
Best regards,
Jordan ShannonApril 5, 2017 at 10:39 pm #772867I know, but client really needs to see it, can we give it a try ?
April 5, 2017 at 10:45 pm #772871Hi,
You need to load the image to the media library, and using css add it as a background image to the specific menu item.
#avia-menu #menu-item-***{ background-image url(); }
Best regards,
Jordan ShannonApril 5, 2017 at 10:48 pm #772872thanks, wil give it try immediately.
April 5, 2017 at 10:54 pm #772876not working.
what do i have to put after #menu-item-*** ?
April 5, 2017 at 10:57 pm #772877i mean that after every top level menu item needs to be the image, not the lower level
April 6, 2017 at 5:59 pm #773368Hi,
Try this:#top #header_meta{ background-image url(); }
Best regards,
Jordan ShannonApril 7, 2017 at 2:30 pm #773992still no diference
April 7, 2017 at 3:41 pm #774039Hi,
What is login info. I will log-in and add a color and from there is should be simple for you to put an image.
Best regards,
Jordan ShannonApril 7, 2017 at 3:50 pm #774042in private
thanks
April 7, 2017 at 4:04 pm #774053Hi,
Please send a screenshot of the exact section you need fixed.
Best regards,
Jordan ShannonApril 7, 2017 at 4:10 pm #774055see private
April 7, 2017 at 6:32 pm #774121Hi,
Okay thanks. I have gotten the image to appear, you just need to adjust the image, padding, etc to what you need so it fits properly.
Best regards,
Jordan ShannonApril 7, 2017 at 7:11 pm #774142thanks, almost ready ;)
The folding menu must not have the image, only the top level link.
You understand ?April 8, 2017 at 4:09 pm #774553Hi,
Best regards,
VictoriaApril 11, 2017 at 1:25 pm #775996i know, but the customer is king, he really want it, but only top menu, not submenu items
April 11, 2017 at 3:02 pm #776081Hi BPC,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
li.menu-item a { background: url(https://megapoint.nl/wp-content/uploads/2017/04/button_home.png) top left no-repeat; background-size: cover; }
If you need further assistance please let us know.
Best regards,
VictoriaApril 11, 2017 at 3:29 pm #776111thanks,
see screenshot, the top menu in the topheader now also have the images
And what about with for the images ?
is it possible to make a css code specially for every menu item ?
so i can photoshop the different images with the correct width.April 11, 2017 at 9:28 pm #776317Hi,
As you have menu items with different sizes, you could use the CSS to make the background style instead the images because the image haven`t the correct width for some items.
Try adding this custom CSS code at Enfold Theme Options > General Styling > Quick CSS
li.menu-item a { border-radius: 60px 60px 60px 60px; -moz-border-radius: 60px 60px 60px 60px; -webkit-border-radius: 60px 60px 60px 60px; background: rgba(183,222,237,1); background: -moz-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 50%, rgba(33,180,226,1) 51%, rgba(183,222,237,1) 100%); background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(183,222,237,1)), color-stop(50%, rgba(113,206,239,1)), color-stop(51%, rgba(33,180,226,1)), color-stop(100%, rgba(183,222,237,1))); background: -webkit-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 50%, rgba(33,180,226,1) 51%, rgba(183,222,237,1) 100%); background: -o-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 50%, rgba(33,180,226,1) 51%, rgba(183,222,237,1) 100%); background: -ms-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 50%, rgba(33,180,226,1) 51%, rgba(183,222,237,1) 100%); background: linear-gradient(to bottom, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 50%, rgba(33,180,226,1) 51%, rgba(183,222,237,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b7deed', endColorstr='#b7deed', GradientType=0 ); }
You can change the gradient settings using this Gradient generator: http://www.cssmatic.com/gradient-generator#’\-moz\-linear\-gradient
Best regards,
John TorvikApril 11, 2017 at 9:31 pm #776321thanks,
but still 1 problem
now also the topmenu in upperbar have this background
and the normal menu is ok, but not the sub items, they don’t need the background, you understand ?- This reply was modified 7 years, 8 months ago by BPC.
April 12, 2017 at 12:47 am #776377Hi,
I updated John’s code above in quick css and it seems to be working fine:
I replaced this:
li.menu-item a
With this:
.menu.av-main-nav .menu-item-top-level
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.