- This topic has 3 replies, 3 voices, and was last updated 9 years ago by
Theme Horse Support Team.
-
AuthorPosts
-
August 28, 2015 at 6:55 pm #27782
quan3t
ParticipantHello,
I am using the Full Content Display template and looking for a way to insert some ads block after the first post. Anyway to do this?September 2, 2015 at 9:42 am #27882Theme Horse Support Team
KeymasterHi quan3t,
Just paste your ads block code after the post content via post editor. If you are asking to have the Ads block between the first post and the second post then you have to customize the code you have to hire a developer for this.
Thank you!
September 2, 2015 at 2:29 pm #27894quan3t
ParticipantI don’t want too many ads display.. Just one between the first and second post. Can you let me know where in your theme files I can find the code section for what WP refer to as “The Loop”? Thanks
September 3, 2015 at 5:48 am #27918Theme Horse Support Team
KeymasterHi quan3t,
The post is inside the loop. If you add the post inside the loop then your ads will be displayed in every section. If you want to customize the code then first of all create a child theme then only customize the code so that while updating to our new version your customized code will not be lost.
If you like to make direct changes in the code then each and every time while updating to new version you need to make the same customization.
It would be great if you provide your site Url too. Which blog are you using? Please clarify. If you are using the default blog then go to theme folder -> inc -> structure-> content-extension.php on line no 87 to 172. You will find this below code
if ( ! function_exists( 'ultimate_theloop_for_archive' ) ) :
Add your code inside this functions where you need your ads block. But your ads will be displayed in all blog if you add inside this functions because it’s under loop.
Better you simply add your ads in your particular post. So that only related post will display your ads.
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.