Download the PHP package faithcatholic/faith_genesis_theme_amp without Composer
On this page you can find all versions of the php package faithcatholic/faith_genesis_theme_amp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download faithcatholic/faith_genesis_theme_amp
More information about faithcatholic/faith_genesis_theme_amp
Files in faithcatholic/faith_genesis_theme_amp
Package faith_genesis_theme_amp
Short Description Core amp theme for Faith Genesis platform.
License GPL-2.0+
Homepage https://www.drupal.org/project/faith_genesis_theme_amp
Informations about the package faith_genesis_theme_amp
ExAMPle Subtheme
This ExAMPle Subtheme serves as a demonstration for how you can provide a subtheme that extends the AMP Base theme to provide custom styles.
Please refer to the README at the root of amptheme for full installation instructions to get your site ready for AMP.
To create your own custom subtheme, make sure to do the following additional steps beyond what you would normally do to create a subtheme:
- Create a theme that has the value of
base theme:
set toamptheme
. This lets the AMP Base theme provide markup defaults that carry through to a custom theme. - In your custom theme directory, create a directory named
amp-css
. - Add a file named
amp-custom-styles.html.twig
to youramp-css
directory. - Custom CSS can be placed into the
amp-custom-styles.html.twig
.
Make sure to follow guidelines at https://www.ampproject.org/ on allowed styles and markup in order to have valid HTML. Please note that CSS and JS added in a libraries.yml file will not be loaded on AMP-enabled pages.
Install your custom theme and set it as the theme that will be used on
AMP-enabled pages at /admin/config/content/amp
: the AMP module must be
installed to view this configration page.
Sponsored by
- Google for creating the AMP Project and sponsoring development
- Lullabot for development of the module, theme, and library to work with the specifications