Home › Forums › Pro Support › Polaroid images on the left
- This topic has 24 replies, 2 voices, and was last updated 2 years, 11 months ago by
Tom.
-
AuthorPosts
-
February 1, 2020 at 6:29 pm #13103
Bernhard
ParticipantNo, the others are not using the metabox and the number of words of the list is configured in WPSP.
February 3, 2020 at 6:11 pm #13136Tom
KeymasterSo all three posts are exactly the same? I’m not seeing the posts in your screenshot anymore – are they on a different page?
February 4, 2020 at 3:10 am #13152Bernhard
ParticipantMy 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.
February 4, 2020 at 5:02 pm #13171Tom
KeymasterTry 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.
February 5, 2020 at 8:36 am #13202Bernhard
ParticipantThe 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?
February 6, 2020 at 6:11 pm #13237Tom
KeymasterAh, to add the arrows to manual excerpts, try this: https://wordpress.stackexchange.com/a/157688
Where can I see the overlay issue?
February 7, 2020 at 1:52 pm #13269Bernhard
ParticipantHi Tom,
with this code the page broke at the first WPSP list and displayedError thrown
Call to undefined function new_excerpt_more()The overlay cards are under the polaroid cards.
February 7, 2020 at 6:56 pm #13274Tom
KeymasterHi 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"> ►►►</a>', get_permalink() ); } return $excerpt; } );
February 10, 2020 at 5:51 am #13309Bernhard
ParticipantHi Tom,
this works now.Can you please have a look at the text of the overlay style on the test page.
Thank you.
February 11, 2020 at 5:15 pm #13348Tom
KeymasterYou 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.
-
AuthorPosts
- You must be logged in to reply to this topic.