Hi – My site uses ads in Article (posts) pages. (Theme panel > Ads > Article Inline Ad)
Some of the Articles are contributed by my site’s sponsors. It just so happens that the in-line ad that I’m running is from my sponsor’s competitor.
Here is an example (jpg of a screenshot) – https://i.ibb.co/FYdqsVK/Tagdiv-Making-ad-invisible-on-Article-page.jpg
Is there a way to selectively suppress (disable) the display of the in-line ad, but only on certain posts – without removing the in-line ad from the Theme Panel?
Or, to accomplish this goal, do I need to insert the inline ads on all of my Article pages manually (instead of using the Theme Panel to insert inline ads automatically)?
Thank you!
-
This topic was modified 6 years by
steve@tvstrategies.com. Reason: To correct an error
Hi,
Unfortunately there is no option for this in our theme, but you can achieve it with a custom css that can be apply only one the posts that you want, for example -> https://i.imgur.com/reUyvOg.png
.postid-9059 .td-post-content .td-a-rec-id-content_inline {
display: none;
}
Thank you!
Thanks Calin! That’s great. In the CSS, I see that you used the Post ID for that individual post (postid-9059). In WordPress, where do I find the postid-(number) for any post? I don’t know where to look.
Second question: Does tagDIV have a tool to help migrate Web content from Newsmag to Newspaper? Just reply with the link to an article, if there is one – I’ll come back if I have any questions.
Thank you
Best regards,
– Steve
Hi,
The post id can be find in url when you edit the article -> https://i.imgur.com/rFUOJjr.png or when you hover the title article in WordPress -> https://i.imgur.com/z9Kme7D.png
Unfortunately there is no tool for this, but most content (elements that are in both themes) should be recognized by Newspaper theme.
Thank you!
Hi – You gave me instructions (above) to suppress the display of advertising on Post pages. This worked OK when I only had one ad on a page. But now, I have multiple ads (see screen shot 1).
How can I suppress inline ads and bottom ads? (see screen shot 2)
A second problem:
LiveCSS is no longer saving my custom CSS (are there too many CSS items?) See screen shot 3. When I click the blue “save” button in the lower left corner, an arrow keeps spinning and it does not save). Should I directly edit the WordPress file that LiveCSS edits instead? Where is that file – in the WordPress > WPcontent directory?
-
This reply was modified 5 years by
steve@tvstrategies.com.
-
This reply was modified 5 years by
steve@tvstrategies.com.
Hi steve@tvstrategies.com, you can set the css in theme panel in custom code> custom css -> https://i.imgur.com/bFrkq9S.png you can set there as many css you want, just make sure that there are no plugins or other options from host that block the theme panel to be save.
Try to set the code there and let me know the results!
Thank you – I will try that.
You gave me CSS to hide in-line ads on selected post pages (above):
.postid-(post number) .td-post-content .td-a-rec-id-content_inline {
display: none;
}
What is the CSS to hide the bottom ad on selected Post pages? I tried
.postid-9059 .td-post-content .td-a-rec-id-content_bottom {
display: none;
}
…but that did not work.
What it is now: https://imgbb.com/b2PX7tc
What I want: https://ibb.co/HFfx9MK