-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to combine mobile amp code and non-mobile code #759
Comments
This is definitely up to you. But there's a number of ways AMP can help you and we definitely recommend creating fully-responsive documents in AMP. To start with all AMP elements support Then, we also support Finally, you are free to use |
Ok, thank you very much! |
In Blogger 's template (like the "CMS" that i'm using) i can use sentences to write the HTML for mobiles different than for the standard desktop pc (it's like xhtml or something ). Using sentences like "if cond mobile" all the following code only executes in mobiles and the other code outside of the "}" applies only for desktop pc.
So if i use the "if cond" for mobiles and i write an amp-ad with adsense code, and the "old" adsense code (not "amped" and for desktop pc)... can i have problems with adsense policy or something?.
Is it a "best practice" to separate the amp code for mobiles ftom the standard HTML for desktop PCs?.
Thank you very much.
The text was updated successfully, but these errors were encountered: