haluhe
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Post-list ad not compatible?Hi limo,
the best way to access the theme files would be locally on your own PC, the relative path to the file would be oria/js/masonry-init.js, but you won’t need to edit something in that script, sorry if I made it seem this way.
All you need to do is adding “hentry” as a container class in your ad settings, this will be enough for your theme to treat the ad like any other post on the homepage.
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] Post-list ad not compatible?Hi limo,
thank you for pointing out that issue here, the issue you are experiencing occurs because the masonry script that your theme uses to reposition each article isn’t targeting the ad . To resolve this issue, you would need to tell your theme to target the ad too and treat it like an article.
Having a look at the masonry.js file of your theme, I found out that it is targeting elements with the class “hentry” inside of your post container, so you just have to ad the css class “hentry” to your ad container and it should appear properly between your other posts.
Best regards,
haluhe
Forum: Plugins
In reply to: [Advanced Ads – Ad Manager & AdSense] HTML5Hi Vitor,
It is currently possible to display HTML5 ads using Advanced Ads, but it is slightly complicated. We are currently working on a way to make it easier, until then please use the solution below.
First, you need 2 different placements/ads, one for the code in the header, and one for the container in the content. You can get the code for each of those ads by copying it over from the .html file of your ad. All the code inside the <head> tag should go into a header code placement, all the code inside the <body> tag, should go into your content placement. The source files of your Ad should be placed in a suited directory inside your WordPress installation e.g. wp-content/uploads/my_ad. The last step for displaying your ad would be setting all the source links inside your header and body ads to the correct direction of your files, please keep in mind, that this path is relative to the root of your WordPress installation, so “wp-content/uploads/my_ad/assets/my_ad.css” would be the correct path to replace “assets/my_ad.css” (path relative to the root folder of your ad).
I hope this will be helpful to you.