By Brandon Scivolette on Wednesday, 24 April 2019
Posted in General Issues
Replies 1
Likes 0
Views 405
Votes 0
Hi There,

I recently looked at one of our blog posts in AMP format and it was rather dull. It seems the AMP output strips a lot of the core look and feel of the site itself. Initially I figured this was something that all AMP pages experienced, but after viewing other AMP pages on different websites I realize that isn't the case. Many retained the look and feel of their site, even on the AMP page.

My question is: Do we have any way of controlling the style output without creating a conflict with the AMP code? I know that the requirements for AMP are very specific, so I don't want to just start making CSS changes only to find out my changes affected the AMP validation.
Hi there,

Currently, we cannot control them as those rules for AMP are very specific and any changes you done will eventually caused them to be invalid AMP pages. But if you insisted, you can do those changes on files listed below. You will need to follow those rules specify by AMP itself as you can see here https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml?referrer=ampproject.org .

[gist type="php"]
Main files
.../components/com_easyblog/themes/wireframe/blogs/entry/amp.php

Css files
.../components/com_easyblog/themes/wireframe/blogs/entry/amp.stylesheets.php
[/gist]
·
Wednesday, 24 April 2019 10:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post