By Supporter on Wednesday, 06 February 2019
Posted in General Issues
Replies 7
Likes 0
Views 421
Votes 0
Hello,

I have set a padding between posts in the timeline but the Ads boxes are sticked to the next item in the stream.

What code should I used to set a custom padding at the bottom the Ads box?
#es .es- ... ?
Hello,

We don't really have unique class for stream ads item. But you can use this class in embed DOM to add padding at the bottom of the stream item. https://take.ms/BX660
·
Thursday, 07 February 2019 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nik,

Your answer is probably 100% correct and understandable for a developer but I am a only a "user"...
Can you be more specific, explain in more details?
Will this change remain after an update? If yes, is there anyplace a way to avoid implementing the change after every update?

Thanks in advance...
·
Saturday, 09 February 2019 16:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Supporter,

If I understand your request correctly, you wish to figure out how to style the ads is that correct? If that is the case, you just need to use the class that my colleague mentioned earlier. In other words,

[gist]
body #es div.es-stream-embed.is-ads {
padding: 100px;
}
[/gist]
·
Saturday, 09 February 2019 16:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Thanks for your help but it is not exactly what I am looking for.
I do not want to style the ads but to add a space after the the Ads box/container in the stream.

In the stream I already have spacings:
[gist type="php"]
#es .es-stream-list > li + li {
margin-top: 14px;
padding-top: 14px;
}
[/gist]
I would like to be able to add a custom spacing before/after to the Ads items
·
Saturday, 09 February 2019 16:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Currently, we don't have unique class for advertisement stream item. However, you could add the class for ads stream in this file: ../components/com_easysocial/themes/wireframe/stream/advertisement/default.php. Hope this helps.
·
Monday, 11 February 2019 13:54
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post