Alan_SP
07-10-2017, 02:20 PM
I have problem with Google AdSense rules. It would be pretty simple to solve, if I could disable ads in tags.
I used this template conditional to block ads from tags system: THIS_SCRIPT != 'tags' mentioned here: https://vborg.vbsupport.ru/showpost.php?p=2588285&postcount=430
It worked just fine with main style, but for some reason doesn't work with default mobile style. To make things worse, default mobile style is something that Google prefers for mobile compatibility. So, I'm stuck with it, unless someone know some working mobile style that Google recognizes as mobile friendly.
When conditional is used with default mobile style, it seems that it triggers something within this style which in the end causes serious problems, i.e. website stops showing pages altogether with 500 error. When I remove tags from templates, everything works.
So I need to try and do this without simple conditional for filtering tags script.
Does anyone knows which exact template in default mobile style shows threads with some tag?
--------------- Added 1499707525 at 1499707525 ---------------
In case someone can use this, to remove ads from default mobile style from tag results, it is search, so you need to edit template search_resultlist.
From there I removed navbar and footer templates, which contain ads for me. For you it may be different, depending where you placed ads.
Also, as I removed offending tag, I needed to recreate it.
There's still problem, in case Google searches for non existing tag which offends their rules, there's error message that tag isn't specified, this message uses some other template (if someone knows which one, would be helpful).
I used this template conditional to block ads from tags system: THIS_SCRIPT != 'tags' mentioned here: https://vborg.vbsupport.ru/showpost.php?p=2588285&postcount=430
It worked just fine with main style, but for some reason doesn't work with default mobile style. To make things worse, default mobile style is something that Google prefers for mobile compatibility. So, I'm stuck with it, unless someone know some working mobile style that Google recognizes as mobile friendly.
When conditional is used with default mobile style, it seems that it triggers something within this style which in the end causes serious problems, i.e. website stops showing pages altogether with 500 error. When I remove tags from templates, everything works.
So I need to try and do this without simple conditional for filtering tags script.
Does anyone knows which exact template in default mobile style shows threads with some tag?
--------------- Added 1499707525 at 1499707525 ---------------
In case someone can use this, to remove ads from default mobile style from tag results, it is search, so you need to edit template search_resultlist.
From there I removed navbar and footer templates, which contain ads for me. For you it may be different, depending where you placed ads.
Also, as I removed offending tag, I needed to recreate it.
There's still problem, in case Google searches for non existing tag which offends their rules, there's error message that tag isn't specified, this message uses some other template (if someone knows which one, would be helpful).