• Resolved Wirebird Media

    (@sssv)


    Hello – I have my menu set to center in the theme but I can’t seem to get the image widgets to center and I’m having trouble targeting it with custom CSS. I also want control over the height and width of the images but again, can’t target it properly.

    Could you please advise me on how to get the images to center?

    Thank you! Love Max Mega Menu!!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi Wirebird,

    Please try this custom CSS:

    #mega-menu-wrap-header #mega-menu-header li.mega-menu-item.widget_media_image {
      text-align: center;
    }

    As a tip, set the menu Event to “Click”. Then you can open a sub menu and keep it open whilst you use developer tools to inspect the sub menu contents (and find the correct selectors to use).

    Regards,
    Tom

    Thread Starter Wirebird Media

    (@sssv)

    Perfect! Thank you so so much!!

    Thread Starter Wirebird Media

    (@sssv)

    This really is the best mega menu plugin! Thank you for the support!

    That solution did nothing for me. Possibly an incompatibility with the “Twenty Nineteen” theme? Previously, I tried targeting the ‘.attachment-thumbnail’ class in the custom CSS editor, but the only code the image widget would respond to was directly setting margin-left to a value, which is not ideal for perfect centering.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t center image widget’ is closed to new replies.