CSS in iframe

Posted in: Newspaper
Post count: 73

Hello, I would like to ask how can I set a custom CSS rule in the auto-loaded articles – i.e. to change it in the iframe loaded. Thank you!

Kind regards,

Post count: 27744

Hello,

Can you please provide more details about what you want to achieve?

Thank you!

Post count: 73

Hello, the CSS rule #td-outer-wrap has a declaration of an overflow:hidden , which we do not want because it interferes with our design. We overwrite it and for the first article we have the result we want. But when the auto-loaded articles load, this is not applied in the iframe. So we would like to know how and from where should we overwrite it in those articles too. Thank you!

Kind regards,

Post count: 27744

Hello,

Please set the code in raw CSS from Composer inside the template https://i.imgur.com/wiVqd4k.png, and then it should apply.

Thank you!

Post count: 73

Hello, thank you for the reply! It really did apply the rule to the iframe and the article that is auto-loaded. The issue now, though, is that the result is not the same within the iframe.

This was added (the attribute in the td-outer-wrap) so that the ads within the article are sticky (you can check for example here https://greekreporter.com/2025/02/06/eruption-thera-destruction-minoans-santorini/ how are the ads displayed on the first article – the sticky behavior – and the difference on the following ones).

My question is: could that be connected to the way the theme loads each next article – i.e. using iframes? If so, could you suggest an alternative way of how can this be achieved? Or if not, could you point out what the problem could be?

I am available should you need any more info. Thank you!

Kind regards,

Post count: 27744

Hello,

Unfortunately, this cannot be done. There was a custom implementation for auto loading
posts.

Thank you!

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