• Resolved danniee001

    (@danniee001)


    Hello,

    Using the widget and the thumbnails in the list of posts are displayed as small squares 75x75px. All my post thumbnails are in a widescreen format of 643x371px so the images are cropped in a bad way in the thumbnails. Is there any way to change the size of thumbnails and make them resize like 16:9?

    Also, on my list all entries lie directly on top of each other with no spacing at all. Is there any way to add a few px of space between every entry of the list?

    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @danniee001,

    Using the widget and the thumbnails in the list of posts are displayed as small squares 75x75px. All my post thumbnails are in a widescreen format of 643x371px so the images are cropped in a bad way in the thumbnails. Is there any way to change the size of thumbnails and make them resize like 16:9?

    Another user made a similar question so I’m going to ask you to have a look here.

    Also, on my list all entries lie directly on top of each other with no spacing at all. Is there any way to add a few px of space between every entry of the list?

    Yes, there is. And if you share your site’s URL I can tell you how ??

    Thread Starter danniee001

    (@danniee001)

    Hi and thanks for replying!

    I edited the css to add some space like this:

    /* Thumbnail styles */
    .wpp-thumbnail {
    display: inline;
    float: left;
    margin: 5px 5px 0 0;
    border: none;
    }

    Is that the best way to do it? In regard to the thumbnail size I totally missed that it could be edited in the widget itself, sorry.

    Plugin Author Hector Cabrera

    (@hcabrera)

    If you ask me, I would add the margin to the parent container: the li element.

    .wpp-list li {
        margin: 0 0 5px 0;
    }
    
    .wpp-thumbnail {
        display: inline;
        float: left;
        margin: 0 5px 0 0;
        border: none;
    }

    Also, if you’re adding these changes to the wpp.css stylesheet that comes bundled with the plugin you’ll want to move into your theme’s folder. That way, future upgrades of the plugin won’t overwrite these modifications.

    In regard to the thumbnail size I totally missed that it could be edited in the widget itself, sorry.

    Don’t worry about it, happens more often than you think ??

    Thread Starter danniee001

    (@danniee001)

    Thank you!

    I only played with child themes a little bit. Do I add this is /theme-child/style.css?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yes, that works as well ??

    Thread Starter danniee001

    (@danniee001)

    Unfortunately its not working for me :/

    /themes/mh-magazine-child/style.css and add the code there but nothing happens

    Thank you

    Plugin Author Hector Cabrera

    (@hcabrera)

    Did you refresh your browser’s cache? (ctrl+F5 if on Windows, cmd+F5 if on MacOs). If you did and nothing changed, then try adding the !important declaration to your custom CSS rules and check again.

    Thread Starter danniee001

    (@danniee001)

    Yes, I tried deleting cache and !important but nothing happens. If I make a change in the wpp.css the changes work ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    How odd.

    Alright, try this:

    1. Move the wpp.css file into the root of your child theme’s folder (eg. /themes/mh-magazine-child/wpp.css.
    2. Go to Settings > WordPress Popular Posts > Tools.
    3. Under Miscellaneous, set Use plugin’s stylesheet to disabled, then click on Apply to save changes.

    … and check again ??

    Thread Starter danniee001

    (@danniee001)

    That kind of breaks the css so seems my child folder is not working as it should? I have added code however to the functions.php in the child that works hmm..

    Thread Starter danniee001

    (@danniee001)

    Fudge! Im so sorry. I forgot I had played around with new themes and accidentaly activated the standard time and not the child version.

    So sorry brother for wasting your time :,(

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hahahah it’s OK. We all have days like that ??

    Thread Starter danniee001

    (@danniee001)

    Haha Im glad you understand. Thank you so much for all the great work you do for us and have a superb weekend <3

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Thumbnail size/cropping and spacing’ is closed to new replies.