How to show ad UNDER video player?

Posted in: Newspaper
Post count: 39

Can you show me how to place a google (or other) banner right under the video player. This is for post themes 9, 10, 11. I would like to know how to achieve this. Thanks!

Post count: 23312

Hello gunner05,

If you want to insert ads on these post templates it is necessary to use do_shortcode method with the custom ad to achieve this. You should alter this file -> single_template_9, 10, 11.php. First of all, you should insert your ad code in Custom Ad 1 field from Theme Panel like this: http://screencast.com/t/fFL1w7Ty and then, with this code -> you have to add them in the according file, like this -> http://screencast.com/t/ljmd8SCNllR3 http://screencast.com/t/HWyRljFY
-> http://screencast.com/t/Wd6n3DMBou

The result -> http://screencast.com/t/hgFlJUhoyv -> http://screencast.com/t/nRmcQ3kq7b

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 39

Thanks catalin, you’re the best! always so easy to follow your instructions. But i have a question: if i do make changes to video templates (whichever one) – what happens when there is a theme update? will all my changes be lost?

Post count: 39

How to make the ad stick to the top of the video player for Single_9 like you did on single_11 ?

Post count: 23312

Hello gunner05,

Unfortunately, if you do a theme update, all the custom modifications will be overwritten. In this case, you should do a backup of your file or you will redo the changes.

If you want to have a stick ad on the top for single template 9, you have to alter the single_template_9.php like this -> http://screencast.com/t/7IxB0hcPcjt ->put the code in this area <- The result you should see here -> http://screencast.com/t/IzgPZjuvH

Hope this helps and let us know how it goes!

If is not what you mean, please provide more details about this.

Thank yu for the message!

Post count: 39

Catalin, that’s not what I meant. Here is a screenshot to better help you understand:
https://nimbus.everhelper.me/client/notes/share/367777/orHrLNaR1A0k9ZsCfCnEWncbZeLINFbI/

Cheers!

Post count: 23312

Hello gunner05,

You have to add the code in the same way as I presented you above, like this -> http://screencast.com/t/MaT90u4Qx and then, please use a bit of CSS to decrease the margin-bottom of the container, like this:

.wpb_video_wrapper {
margin-bottom: 0px;
}

The result -> http://screencast.com/t/fs39sIobms

Hope this helps and let us know how it goes!

Thank you for the message!

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.