Notifications
Clear all

Displaying ads only once after first topic post

4 Posts
2 Users
0 Reactions
1,478 Views
Posts: 6
 Liam
Customer
Topic starter
(@liamoc11)
Member
Joined: 7 years ago

Hi 

I want to display an ad one time on the page, directly underneath the first topic post on the page. My pages are set to display 10 posts. If i set the frequency to 1, the ad appears under every post. If I set it to 2, it displays under every second post, and so on. Is there a way to target just between first and second post?

thanks!

Topic Tags
3 Replies
Astghik
Posts: 6149
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi @liamoc11,

Use the CSS code below:

.wpfp-first ~ .wpforo-ad ~ .wpforo-ad{
display: none !important;
}

The CSS codes should be added in the "Custom CSS code" textarea, located in the Dashboard > Forums > Settings > Styles Tab.  

Please don't forget to delete all caches and press Ctrl+F5 (twice) on the frontend before checking to reload the updated CSS file.    

Reply
Posts: 6
 Liam
Customer
Topic starter
(@liamoc11)
Member
Joined: 7 years ago

Thank @astghik

I did try this, but unfortunately it did not work. Maybe because I have other CSS already in that styles tab?

Reply
1 Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6149

@liamoc11,

Please leave some example URL to allow us to check the issue. 

Make sure the value if the  "Post List - Banner displaying frequency" option is set 1. We've just checked the code it works fine. 

 

Reply
Share:
Scroll to top