Support » Plugin: AMP for WP - Accelerated Mobile Pages » Why .ampforwp_wc_shortcode{} in inline style?

  • The …/templates/features.php has the following excessive add_action for the websites without the WooCommerce at:

    53. Adding the Markup for AMP Woocommerce latest Products

       // Adding the styling for AMP Woocommerce latest Products
       function amp_latest_products_styling() { ?>
    .ampforwp_wc_shortcode{margin-top: 0;padding:0;display:inline-block;width: 100%;}
    .ampforwp_wc_shortcode li{position: relative;width:29%; font-size:12px; line-height: 1; float: left;list-style-type: none;margin:2%;}
    .ampforwp_wc_shortcode .onsale{position: absolute;top: 0;right: 0;background: #ddd;padding: 7px;font-size: 12px;}
    .single-post .ampforwp_wc_shortcode li amp-img{margin:0}
    .ampforwp-wc-title{margin: 8px 0px 10px 0px;font-size: 13px;}
    .wc_widgettitle{text-align:center;margin-bottom: 0px;}
    .ampforwp-wc-price, .ampforwp_wc_star_rating{float:left;margin-right: 10px;}
    <?php }

    Can those type of things be conditionally disabled?

    And why setting this add_action with the PHP_INT_MAX?

    • This topic was modified 5 months, 2 weeks ago by  Ivan Privalov.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.