We're merging with GenerateBlocks! Learn more here.

[Resolved] AJAX pagination: card background missing

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support AJAX pagination: card background missing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30208
    David R
    Participant

    WPSP 1.1.3
    WPSP Pro 1.0.0

    I have a list setup to display the most recent 5 posts, with AJAX pagination to load more.

    I’m using the Overlay card. The most recent five posts display perfectly on page load. The featured image is the background of each card. However, when I load more posts using the AJAX method, the loaded cards are missing the background image.

    #30221
    elvin
    Moderator

    Hi there,

    Can you link us to the page in question to check? Perhaps there’s something preventing it from loading.

    You can send us a link through our contact page if you wish to keep it private- https://wpshowposts.com/contact/

    Let us know.

    #30225
    David R
    Participant

    It’s on my blog page. The Read More button towards the bottom. No errors appear in the Console.

    #30227
    David R
    Participant

    I’m not using an overlay icon, but it appears the cards loaded via AJAX are looking for one. Here’s the tag of a card loaded by AJAX:

    <img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%20300'%3E%3C/svg%3E" data-src="https://www.wildwolves.net/wp-content/uploads/2021/04/theater-1308794_1920-1200x300.jpg" alt="Critique: The Truman Show using Experience & Education" itemprop="image" class="center lazy">

    The data-src is the correct image. I don’t know where the src="data:image/svg+xml code is coming from.

    #30275
    David R
    Participant

    I upgraded WPSP to version 1.2.0-alpha.3 and the AJAX-loaded cards now display their background images properly.

    #30318
    elvin
    Moderator

    I upgraded WPSP to version 1.2.0-alpha.3 and the AJAX-loaded cards now display their background images properly.

    Were you using the image height and width field? it’s possible that it had something to do with the images breaking.

    Glad you got it sorted. 😀

    #30420
    David R
    Participant

    Yes, the image HxW fields were used. Glad it works in 1.2.0-a.3

    #30424
    elvin
    Moderator

    Thanks for letting us know .:D

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.