Hide Ads

Posted in: Newspaper
Post count: 71

Hello,

I have some posts and articles where I want to hide the ads. How can I do this?

I don’t see such an option under the Single Post Template – Ads section or in the Ad box. How can I exclude certain post IDs from displaying ads?

Thanks

Post count: 21065

Hello!

Each element has the option to hide it in the CSS tab: https://prnt.sc/1FJiMub9ke4s
In your case, you can have two single cloud templates. Assign the template with ads for the specific posts, and for those you do not want to show ads for, apply the single template without ads. Unfortunately, we do not have a manager for ads, so you can specify the posts you do not want ads or reverse.

Another workaround that came to my mind is to use a custom field shortcode with an acf type wysiwyg. There, you can add HTML code. For example:
1. Create the ACF: https://app.screencast.com/YIkaxyXzY75su
2. Edit the article with Gutenberg to add the ad code: https://app.screencast.com/Cj3p6j4nM5ywF
3. Add the custom field shortcode into your single cloud template, select the custom field created: https://app.screencast.com/aKO5Q5kXVROT7 Save and view the results.
If a post has no code added in Gutenberg in that field, it won’t appear on your front end.

Thank you!

Post count: 71

Dear Bettina,

Does TagDiv plan to expand the customization options for Ads elements in the future? The Ad Inserter plugin is much better in this regard, but I believe many users would appreciate having this functionality built directly into Newspaper, rather than relying on an external plugin.

Thank you.

Post count: 21065

Hello!

Unfortunately, no. At least not in the near time.

Thank you for understanding!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.