Integrate APF with Astra

Our Advanced Product Fields plugin works quite well with the popular Astra theme. Though, there are some minor caveats to be aware of.

Sticky add to cart

“Sticky add to cart” means the “Add to cart” button sticks at the bottom of the screen when you scroll down the product page. That way, it’s always visible and customers can easily click it whenever they are ready to buy.

Astra includes this feature too, but there’s a hiccup due to the way they handle it: it duplicates everything from the “add to cart” form, causing confusion and issues with our plugin’s fields. To fix this, simply switch off the sticky add to cart feature. Go to Appearance → Customize → WooCommerce → Single Product, and at the bottom, turn off the setting.

Sticky Add To Cart setting in the Astra theme

Using Layered Images

If you’re using our Layered Images add-on, you will have to perform 2 small steps to make sure it works with Astra.

Astra includes its own gallery, rather than using the standard gallery that WooCommerce uses. In order to revert back to the standard gallery, you can perform these 2 steps:

  1. Add the following code snippet to your site( read here how to do that):
    add_filter( 'astra_get_option_astra-product-gallery-layout-flag', '__return_false' );
  2. Go to Appearance Customize WooCommerce Single Product and switch “Single Product Gallery” to “Horizontal”:
    The gallery layout setting of Astra

Was this article helpful?

Related Articles