WordPress.org

Forums

Events Manager
[resolved] #_EVENTIMAGE{x,y} - Require a width but use an auto height? Possible?! (5 posts)

  1. Jassi Bacha
    Member
    Posted 1 year ago #

    As the title reads I've got a question about the #_EVENTIMAGE{x,y} placeholder..

    I want to resize my event posters but I don't want them being cropped due to the aspect ratio, etc..

    Is it possible to make them do something like #_EVENTIMAGE{300,auto} ??

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

  2. angelo
    NetWebLogic Support
    Posted 1 year ago #

    here's another snippet which may help you with this - http://pastebin.com/h0e8qCwu

    As to where to paste this - http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    just do this:

    #_EVENTIMAGE{300}

    or #_EVENTIMAGE{0,300}

  4. Jassi Bacha
    Member
    Posted 1 year ago #

    Hi Marcus,

    Thank you, #_EVENTIMAGE{0,300} worked wonderfully.. maybe the documentation could be update a small bit to explain this a bit better? Definitely wish I'd known this months ago when I started using this amazing plugin, thanks!

  5. Jassi Bacha
    Member
    Posted 1 year ago #

    Marking as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic