Ads after first post
Page 1 of 1 • Share •
Ads after first post
Hello i would like to add an ad box after the first post of every thread.
I want it to be shown only after the first box. Not after every post. Is it possible?
Thanks.
I want it to be shown only after the first box. Not after every post. Is it possible?
Thanks.
Re: Ads after first post
Hi Marios,
You should be able to insert an element after the first post. Try this :
Modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and submit :
Replace Your content here by your own HTML or words. You can style the element with the id #myContainer, you can also change the id if you wish.
You should be able to insert an element after the first post. Try this :
Modules > javascript codes management > create a new script
Title : what you wish
Placement : in the topics
Paste the code below and submit :
- Code:
$(function() {
$('.post:first').after('<div id="myContainer">Your content here</div>');
});
Replace Your content here by your own HTML or words. You can style the element with the id #myContainer, you can also change the id if you wish.
Re: Ads after first post
Works! Thank you Ange! You are awesome! <3
SOLVED
SOLVED


|
Re: Ads after first post
Topic Solved & Locked

Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public

You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public

Derri- Administrator
-
Posts : 8695
Reputation : 623
Language : English & Basic French
Location : Scotland, United Kingdom
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum