• Resolved nbw0313

    (@nbw0313)


    Hello,
    I tried to apply some padding to pictures, making use of [Custom Formatting]. I tried manually adding style=”padding: 10px 10px 10px 10px;” to the opening image <div>, cleared cache and updated, but nothing happened at all. It didn’t even showed my new added style on source page after refresh, so of course it didn’t even function. So now I wonder is it possible to do that? Have I done it the right way?

    Thank you in advance for your time.

    https://www.ads-software.com/extend/plugins/syndicate-press/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SP developer

    (@hranchfundi)

    Hi nbw0313,
    We will take a look and try to reproduce the issue.

    Best regards,
    SP Developer

    Plugin Author SP developer

    (@hranchfundi)

    Hi nbw0313,
    I believe that your issue is that the images in the feed you are trying to show are embedded in the HTML of the article content and not specifically defined in the feed as the articles image tag.

    Here are two examples that illustrate Syndicate Press handling of the custom image formatting:

    For both of these examples, I have set the SP ‘Custom Formatting’ Image div to <div style=”padding: 10px 10px 10px 10px;background-color:#b0c4de;”>

    In this example feed, you can see the light-blue background color and the padding on the div surrounding the image. The feed that SP is displaying on this page contains a specifically defined image for each article in the feed.
    https://syndicatepress.henryranch.net/feed-tests/namespace-tests/

    In this second example feed, you can see that there is no light-blue background or 10px padding around the image. This is because the images are embedded in the HTML content of the article.
    https://syndicatepress.henryranch.net/feed-tests/sustainable-future-feed-test/

    Syndicate Press Custom Formatting does not apply styling to the content within the article HTML, unless you specifically override a css class that is used within the article HTML.

    If you post the feed URL we can check for sure, but given the results of this experiment this appears to be the explanation for the behavior you observed.

    Best regards,
    SP Developer

    Plugin Author SP developer

    (@hranchfundi)

    Resolving this topic as testing showed that it works as expected and no response from the user. If the issue occurs again, please re-open this topic.

    Best regards,
    SP Developer

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘padding around the pictures’ is closed to new replies.