Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #28874

    Is it possible to have background color of the sub menu dropdown, in both ordinary menu and megamenu?

    I know I can use #menu-item-136 { background-color: #bc1d2a; } but I can’t find an id for the menubackground, to style them individually.

    Is there a way to do this?

    Thanks in advance.

    Best regards,

    Thomas

    #138948

    Hi Thomas,

    Can you post the link to your website please?

    Regards,

    Josue

    #138949

    Hi Josue

    I want to change the background color of the submenu for “gadgets” and for “briller” so that the color for “gadgets” is green and the color for “biller” is red on http://ecap.dk

    Also I would like to make a new page template (like the blank and archives that is standard in Enfold) – så I can have different background for different page templates. I assume I need to make ie. template-gadgets.php but then also a new header.php ie. header-gadgets.php to change the background image. But the header is loaded in the pagetemplate file, and not by filename, but some sort of function. Can I load a different headerfiler – and if so: how? And is there a more easy way than using file templates if I want to use different backgrounds for different pages?

    Thanks in advance.

    Best regards,

    Thomas

    #138950

    Hi Thomas,

    To change the color of the menus, you can use menu-item IDs, try adding this code:

    #menu-item-3543 .sub-menu li a {

    background: green;

    color: white;

    }

    #menu-item-77425 .sub-menu li a {

    background: red;

    color: white;

    }

    Change red/green for the desired color (can be hex code).

    Regards,

    Josue

    #138951

    Thanks :-)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Megamenu – different background colors for submenus’ is closed to new replies.