WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Style widget (8 posts)

  1. Nanette Kalisvaart
    Member
    Posted 1 year ago #

    I've spend a good couple of hours now but can't seem to find it. I would like to reduce the (white) space between the title and the list of events in the widget. I'm sure it has to do with padding etc. but where to look??

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    easiest way is to use your theme style.css to do some styling on it; e.g. you can add or remove padding and margin.

    Use Chrome or Firebug to inspect element and get its css class or id name.

  3. Nanette Kalisvaart
    Member
    Posted 1 year ago #

    Thank you! I learned something new today by looking at the sourcecode of the page in Chrome. I'm assuming that is what you meant. :)

    So now I know I need to look for classes 'widget widget_em_widget' and/or 'widget-title' or id 'em_widget-2'. But there doesn't seem to be an css-file with these classes, is that correct?
    And if so, where does it get its style-formats from now?

    (Thanks in advance!)

  4. agelonwl
    Member
    Posted 1 year ago #

    you can try something like

    .widget .widget_em_widget h3.widget-title {
    
    }

    you can add this in your theme style.css or within your theme header.php inside <head> tag

  5. Nanette Kalisvaart
    Member
    Posted 1 year ago #

    Gotcha. Thanks.
    But how does it know now to leave room between the title and the list? Where is that code located? (Just for my curiosity and learning process)

  6. agelonwl
    Member
    Posted 1 year ago #

    you can used chrome or firebug to inspect the elements and it will show you the css of that elements.

  7. Nanette Kalisvaart
    Member
    Posted 1 year ago #

    Thanks. I found it.

    For others, it's in style.css.
    I changed the margin-bottom.

    .widget-area .widget h3 {
    margin-bottom: 2px;
    }

  8. agelonwl
    Member
    Posted 1 year ago #

    glad it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags