Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #772668

    Hi,

    It is possible to put behind each menu item in the header a png file as background image ?

    #772865

    Hey BPC,

    It is possible, but visually may not look good as it could distort the text and make it unreadable.

    Best regards,
    Jordan Shannon

    #772867

    I know, but client really needs to see it, can we give it a try ?

    #772871

    Hi,

    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 Shannon

    #772872

    thanks, wil give it try immediately.

    #772876

    not working.

    what do i have to put after #menu-item-*** ?

    #772877

    i mean that after every top level menu item needs to be the image, not the lower level

    #773368

    Hi,
    Try this:

    #top #header_meta{
    background-image url();
    }

    Best regards,
    Jordan Shannon

    #773992

    still no diference

    #774039

    Hi,

    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 Shannon

    #774042

    in private

    thanks

    #774053

    Hi,

    Please send a screenshot of the exact section you need fixed.

    Best regards,
    Jordan Shannon

    #774055

    see private

    #774121

    Hi,

    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 Shannon

    #774142

    thanks, almost ready ;)

    The folding menu must not have the image, only the top level link.
    You understand ?

    #774553

    Hi,

    Best regards,
    Victoria

    #775996

    i know, but the customer is king, he really want it, but only top menu, not submenu items

    #776081

    Hi 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,
    Victoria

    #776111

    thanks,

    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.

    #776317

    Hi,

    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 Torvik

    #776321

    thanks,

    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.
    #776377

    Hi,

    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

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.