Re: Media Queries
Posted by
Harvey on
Nov 13, 2016; 4:30pm
URL: https://support.nabble.com/Media-Queries-tp7597404p7597513.html
This is the code that is in the macro override that Hugo wrote for me:
<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">
<script type="text/javascript">
data_ad_client = "ca-pub-XXXXXX";
/* Mobile Ad */
data_ad_slot = "9267013347";
google_ad_width = 320;
google_ad_height = 100;
google_page_url = "<n.current_url/>";
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</then>
</n.if.regex_matches>
</override_macro>
HTTPS Please!