Please see our updated documentation for Boombox Version 2 and our Migration Guide.

Okay
  Print

How to change Styles or RTL for AMP?

Make sure that the child theme installed and activated.

Then create following file:
for Styles => boombox-child/amp-styles/style.php
for RTL => boombox-child/amp-styles/style-rtl.php

Then add following code in boombox-child/functions.php

add_action( 'boombox/amp/additional_css', 'boombox_child_additional_amp_styles', 10, 2 );
function boombox_child_additional_amp_styles( $mode, $instance ) {
 
 $css = '';
 switch( $mode ) {
  case 'ltr':
   $stylesheet = BOOMBOX_CHILD_THEME_PATH . 'amp-styles/style.php';
   break;
  case 'rtl':
   $stylesheet = BOOMBOX_CHILD_THEME_PATH . 'amp-styles/style-rtl.php';
   break;
  default:
   $stylesheet = false;
 }
 if( $stylesheet ) {
  ob_start();
  include_once $stylesheet;
  $css = ob_get_clean();
 }
 
 echo $css;
}