• Resolved mshetzer

    (@mshetzer)


    Great pluggin. I’ve been using for years with great success.

    I’m having a hard time to get the text to wrap around the image. I was hoping to wrap the text starting at the top right corner of the image.

    Test site
    https://www.shetzers.com/shetzers_v01/

    If you have any suggestions, it would be greatly appreciated.

    Matt

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    Hello @mshetzer
    in the widget admin, there is a section dedicated to Custom Styles inside the Styles panel. Paste these lines there:

    .widget ul li a.pis-thumbnail-link {
        display: inline;
    }

    Let me know, please.

    Thread Starter mshetzer

    (@mshetzer)

    That works perfect for the thumbnails.

    My last task which I can’t figure out is how to force the text to the right (or below) of the Medium images.

    When on a wide screen, the image fills the sidebar, and the text should move underneath. When on a mobile, and the sidebar gets moved below the normal content the sidebar size automatically increases, and I would like it to wrap to the side of the image, and then below.

    Is this possible? I’ve made the changes in my testbed with a Medium image in the sidebar.

    https://www.shetzers.com/shetzers_v01/

    Thanks again for all your help and this great widget !
    Matt

    Plugin Author Aldo Latino

    (@aldolat)

    When you use the medium size of the image, use these settings:

    Then save the widget and test the results.

    Let me know, please.

    Plugin Author Aldo Latino

    (@aldolat)

    @mshetzer,
    your question deserves a more detailed answer, in addition to what I wrote above.

    Let’s say that you have two ways to display your featured images:
    1) thumbnail-sized and left floating;
    2) medium-sized and centered.

    If you want to use a thumbnail size, use these settings:

    If you want to use a medium size, use these settings:

    So, if you use the first way (thumbnail-sized and left floating), add these lines in your CSS stylesheet or in the Custom Styles panel of the widget:

    /* WHEN USING THUMBNAIL-SIZED LEFT-FLOATING IMAGES */
    
    .pis-li {
        overflow: hidden;
    }
    @media screen and (max-width: 400px) {
        .pis-li img {
            display: block;
            float: none;
            width: 100%;
        }
    }

    If you use the second way (medium-sized and centered), add these lines in your CSS stylesheet or in the Custom Styles panel of the widget:

    /* WHEN USING MEDIUM-SIZED CENTERED IMAGES */
    .pis-li {
        overflow: hidden;
    }
    @media screen and (max-width: 420px) {
        .pis-li img {
            display: block;
            float: none;
            width: 100%;
        }
    }
    @media screen and (max-width: 979px) {
    
        .pis-li img.aligncenter {
            display: inline;
            float: left;
        }
    }

    These lines take care of the various mobile devices screen sizes, whether you use a left-floating image or a centered image.

    Let me know, please.

    Thread Starter mshetzer

    (@mshetzer)

    That did it perfectly. Thank you for the help !!!
    Matt

    Thread Starter mshetzer

    (@mshetzer)

    Resolved

    Plugin Author Aldo Latino

    (@aldolat)

    You’re very welcome!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Text not wrapping correctly’ is closed to new replies.