Hello. I want to remove the header ads showing on a 404 page. I can’t find any settings on the panel and wondering if I can do it backend. Also, I would like to change the articles showing on the 404 page. Instead of the latest articles, I want to show the articles from a certain category.
Hi,
Unfortunately, the theme does not have any such an option that allows you to do this from theme panel but you can do this if you will add such a condition in PHP. As a hint, please edit the ads.php core file and add the following checker from here -> https://www.screencast.com/t/DKrZPkGtWRLT Using this, you will check if your page is_404 and if it is, the ad will be removed, otherwise the ads will be displayed.
Thank you!
Hello,
Apologies for the late reply. Unfortunately, there’s still an ad code showing on a mobile device. I can’t post the URL here so if it’s possible, can you please send me a private message?
The ad code showing in the 404 page came from the ads that I added on theme panel > mobile > header ad.
Thank you.
-
This reply was modified 7 years by
limez.
So upon doing the edits myself, I found out that in order to hide the header ads on mobile, you need to go to wp-content > plugins > td-composer > mobile > header.php and from there do the following code edits -> https://i.imgur.com/IIpSCnb.jpg
Save the changes and it will hide the mobile header ads on 404 pages.
