Re: Media Queries
Posted by
GregChapman on
Nov 16, 2016; 12:25pm
URL: https://support.nabble.com/Media-Queries-tp7597404p7597530.html
Hi Harvey,
My post on Nov 14, 2016; 3:28pm includes exactly what Hugo was suggesting, only you reported an error on on line 15. (Everything else has just been explaining my thought processes - but clearly sharing them wasn't too helpful!)
Here it is again with the change in the line 15 that I suggested in my last post to cope with the error.
<override_macro name ="show_custom_ads" parameters="location" requires="servlet" >
<n.as_html_comments.location/>
<n.if.regex_matches text="[n.location/]" pattern="classic_special_ad">
<then>
<div class="ad shaded-bg-color rounded" style="padding:.5em 0">
<style type="text/css">
.footer_1 { width: 320px; height: 100px; }
@media (min-width:800px) { .footer_1 { width: 728px; height: 90px; } }
</style>
<ins class="adsbygoogle footer_1"
style="display:inline-block;"
data-ad-client="ca-pub-0XXXXXXXX"
data-ad-slot="7560709341">
</ins>
<script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
</then>
</n.if.regex_matches>
</override_macro>
If this doesn't work then I must hand over to Hugo.
@Hugo The "raw" tags seem to fail when I just post the corrected line alone. As you'll see in my previous post.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.