For the past couple of months, we have been working on making our platform compatible with Google’s Accelerated Mobile Pages (AMP) format. If you’re not familiar with AMP, I think it’s fair to summarize it thusly: The practice of offering your website in a special format that Google invented, so that your Google SERP’s (search engine result page) have a small gray lightning bolt next to them, which leads the viewer to the AMP-formatted version of your page, which is hosted by google, and is definitely faster and more user-friendly than the default version of your page.
How, Generally?
Several years ago I met with former LexBlog CTO, current LexBlog Fairy GodFather, and google employee Robert McFrazier. I was delighted to pester him with questions as usual, and when I asked him an open-ended question about the best thing we could do for our platform, he told it would be to introduce AMP. Furthermore, he noted that in the WordPress space, developers were handling AMP as a plugin concept, rather than a theme concept, which he felt was a shortcut not always worth taking. Although taking a plugin approach allows for faster adoption, it’s very heavy-handed and leaves the AMP page with very little of the design and branding that appears on the non-AMP version. Given the time and ability, he believed it would be much better to adopt AMP from within a theme, so as to more easily carry the theme concepts (color scheme, layout, logos, fonts, icons) into the AMP version. Robert was right. Even today, years after our talk, the WordPress community is approaching AMP almost entirely via the “official” WordPress AMP plugin, with virtually no theme frameworks doing anything interesting with AMP. I’m very proud to say that at LexBlog we’ve broken that trend! We have developed a one-click solution to enable an AMP version on any site using our modern platform, and that version carries all of the important design and branding concepts included in the non-AMP version. As this project has matured, I’ve often had trouble telling the difference between our normal front-end and our AMP front-end.How, Specifically?
There were three categories of things that we needed to import to our AMP version: Design, layout, and content.Design
Because we approached this from within our theme, rather than taking the shortcut of approaching via a plugin, it was very convenient to grab design elements such as:- Typekit fonts.
- FontAwesome icons.
- Firm logos and blog logos.
- Color schemes.