WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
Image width in display widgets (7 posts)

  1. dandic2342
    Member
    Posted 7 months ago #

    Is there any way to change both the width and height on the thumbnail images used with each calender event listed under the My Calendar Widgets?

    Example:
    http://thewestendmuseum.org/whats_on/upcoming-exhibitions-events/

    http://wordpress.org/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 7 months ago #

    I'm not sure what you mean; can you be more specific? I'm not seeing any images that are being produced by My Calendar, so I'm not sure what you're referencing, exactly.

  3. dandic2342
    Member
    Posted 7 months ago #

    Do you see the little pictures on the page next to each event?

    http://thewestendmuseum.org/whats_on/upcoming-exhibitions-events/

    Are these being generated by My Calendar Widgets? If so, how can I change the size so they're a little bigger?

  4. dandic2342
    Member
    Posted 7 months ago #

    Here's the code used in the My Calendar: Upcoming Events widgets in the template field:

    <div style="clear: both; margin-bottom: 10px;">{image}<div style="float: left; line-height: 140%; width: 74%;">{link_title}
    <span>{time} - {endtime}</span><p>{shortdesc}</p></div></div>

  5. Joe Dolson
    Member
    Plugin Author

    Posted 7 months ago #

    Got it - yes, those images are coming from My Calendar. You can't change their size except by changing the image size attached to the calendar in the current version of My Calendar -- done by editing the event to change the image. You can probably modify them using CSS, however.

    Something like this could be like what you're looking for:

    .mc-image { width: 200px; height: auto; }

    You'd also need to change the inline styles for your event info, of course.

  6. dandic2342
    Member
    Posted 7 months ago #

    So where can I go to be able to do all this?

    Sorry, kinda new to this!

  7. Joe Dolson
    Member
    Plugin Author

    Posted 7 months ago #

    You can add custom styles either to your My Calendar stylesheet or to your theme styles; I don't know enough about your site to say what might be wiser. Edits to the upcoming events template presumably need to be done in Appearance > Widgets, unless you're using that from a shortcode, in which case it's in the shortcode's template attribute.

Reply

You must log in to post.

About this Plugin

About this Topic