[Support request] Polaroid images on the left

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Polaroid images on the left

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #13103
    Bernhard
    Participant

    No, the others are not using the metabox and the number of words of the list is configured in WPSP.

    • This reply was modified 1 year, 7 months ago by Bernhard.
    #13136
    Tom
    Keymaster

    So all three posts are exactly the same? I’m not seeing the posts in your screenshot anymore – are they on a different page?

    #13152
    Bernhard
    Participant

    My excuses, I changed the post type from page to post and forgot to update the list of the test page.

    Referring to the missing “read more” arrows in the card with the manual excerpt, I looked at your answer here https://wpshowposts.com/support/topic/read-more-link-instead-of-button/#post-10578 but I don’t understand how the problem was solved.

    By the way, the “odd” card (Fiumicino) has still a padding on the left.

    #13171
    Tom
    Keymaster

    Try adding this for the padding:

    .wpsp-row article:nth-child(even) .wp-show-posts-image {
        padding-left: 0;
        padding-right: 1.5em;
    }

    I’m afraid I’m out of ideas for the arrows.. If all three posts are identical in the way they’re set up (auto excerpts, manual excerpts, more tag etc..), then it’s a mystery.. There should be a difference between the one that doesn’t have arrows and the ones that do. If you’re able to find that difference, we can fix it.

    #13202
    Bernhard
    Participant

    The post without arrows has manual excerpt, the posts with arrows auto excerpt.

    The padding is ok now.

    On the same test page, below, is a sample of the overlay style. In this case, the text exceeds the image. How I manage that the text with it’s background does not exceed the image size?

    #13237
    Tom
    Keymaster

    Ah, to add the arrows to manual excerpts, try this: https://wordpress.stackexchange.com/a/157688

    Where can I see the overlay issue?

    #13269
    Bernhard
    Participant

    Hi Tom,
    with this code the page broke at the first WPSP list and displayed

    Error thrown
    Call to undefined function new_excerpt_more()

    The overlay cards are under the polaroid cards.

    #13274
    Tom
    Keymaster

    Hi there,

    That code is just an example of what you’d need to do.

    Try this:

    add_filter( 'get_the_excerpt', function( $excerpt ) {
        if ( has_excerpt( get_the_ID() ) ) {
            $excerpt .= sprintf( 
                '...<a href="%1$s">&ensp;►►►</a>',
                get_permalink()
            );
        }
    
        return $excerpt;
    } );
    #13309
    Bernhard
    Participant

    Hi Tom,
    this works now.

    Can you please have a look at the text of the overlay style on the test page.

    Thank you.

    #13348
    Tom
    Keymaster

    You would need to use an image large enough to fill the space. The content isn’t aware of the background image size, so it can’t resize itself.

    Otherwise, you’d need to reduce the width of the post container itself to match the width of the image.

Viewing 10 posts - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.