WordPress.org

Forums

Easy Digital Downloads - Related Downloads
[resolved] Image size (5 posts)

  1. Thomas Anderson
    Member
    Posted 2 years ago #

    Where can I change the size of the image, i am looking
    for 161x101..i have tried to change the plugin css but its not working for me.

    Thanks in advance for your help.

    http://wordpress.org/extend/plugins/easy-digital-downloads-related-downloads/

  2. isabel104
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin CSS for the images gives a max-width of 150px. Try overriding that in your theme with this:

    #isa-related-downloads img {
        width: 161px;
        max-width: 100%;
    }

    You should generally leave the height set to auto, see if that looks okay. If you must, you can add to the above:
    height: 101px;

    Hope this helps.

  3. Thomas Anderson
    Member
    Posted 2 years ago #

    No its not working, it always gives 150px, i have tried this before thats why I came here to ask help :(.

    May be its my theme, i am using the new theme from EDD - Shop Front.

  4. isabel104
    Member
    Plugin Author

    Posted 2 years ago #

    If you could please post a link to your site (that's using the plugin), I could take a look at the source. There is, most likely, some other stylesheet overriding your
    max-width: 100%;
    If you post a link here, I'll see what's overriding it.

  5. isabel104
    Member
    Plugin Author

    Posted 2 years ago #

    Apologies! Your theme's CSS loads before the plugin's CSS.
    To override it from your theme, you have to use !important, although it's not a "best practice". You could add !important like this:

    #isa-related-downloads img {
        width: 161px;
        max-width: 100% !important;
    }

    That will make sure your CSS overrides the plugin's CSS.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads - Related Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.