INLINE AD TITLES

Posted in: Newsmag
Post count: 9

Hi devs,

Good morning you all. My question is: Can we add a ad title to “inline ads” like as sidebar ads.

Regards.

Post count: 6535

Hi

To add a title for ads from post content you need to edit td_module_single_base.php file and add this code like here: http://screencast.com/t/4k3201856

'<div class="td-ads-title"> Advertissement </div>' .

Also you will need this custom css in theme panel > custom css: http://screencast.com/t/CuPlBVdR6l

.td-ads-title{
margin-left: auto;
margin-right: auto;
display: table;
}

Let me know how it goes.
Thanks!

  • This reply was modified 10 years by Andrei L..
  • This reply was modified 10 years by Andrei L..
Post count: 6

Will this solution lost when update the theme?

Post count: 6535

Hi

When the theme it’s updated the old files are replaced by the new theme files are replaced by the new oneness and all customizations will be lost. You will have to re-add your customizations except for the custom css from theme panel.

Thanks!

Post count: 135

Thanks for this.

How do you do this for the Header ad? Not inline.

Thank you.

Post count: 6535
Post count: 30

Hello,

This works except for the inline side ad title text is in the center of the article. Any way to center it above the side ad? See here for more info: http://dev.pacifictribune.com/2016/07/05/extremely-careless-but-fbi-advises-no-charges-for-clintons-emails/

Post count: 6535

HI

I am not very sure what you mean so please provide more specific details about what you’re trying to do so I can inspect it closer and get back to you with a more accurate answer.

Thanks!

Post count: 30

It’s alright. I didn’t realize that Google has relaxed the requirement to label ads so I’ve solved my problem by removing all ad labels.

Thanks for getting back to be though!

Post count: 24

Have google really relaxed this? I just got a notification from them saying they will remove my ads if I don’t comply with something (I’m not sure what). Any idea?

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