Astra 2.2 brings new customizer options for headings and buttons.
What will happen if you update the theme and plugin?
If you are existing Astra user and update Astra theme and Astra Pro to version 2.2, you would be able to see these new options in the customizer, But they will NOT be functional. That means you can see the new options but they will not work and cause any change on the website.
Even after updating both theme and plugin, everything will remain same on the website.
Why this is so?
Astra 2.2 adds new customizer options and these options would impact the current way customizer settings are applied. And so we have restricted inheriting any automatic changes on existing websites, to ensure that there’s no unexpected effect.
We have taken the utmost care that Astra 2.2 won’t disturb your existing website design and structure.
How existing users can avail Astra 2.2 features?
A simple answer is – using a single line of code.
To make Astra 2.2 features work on existing websites, you can use custom filter code.
As mentioned above, even if the Astra theme and Astra Pro are updated to version 2.2, new customizer options will not work unless the custom filter is added to the child theme.
How existing Astra users can work with Astra 2.2 update?
1. Update the Astra theme and Astra Pro to version 2.2 from the WordPress Updates page.
2. As mentioned above, nothing will be changed on the website.
3. Now copy the following code and paste it into the child theme’s functions.php file.
4. For Theme, use –
add_filter( 'astra_page_builder_button_style_css', '__return_true' );
5. For Addon, use –
add_filter( 'astra_addon_page_builder_button_style_css', '__return_true' );
Note: Do NOT remove this code in order to keep using Astra 2.2 features.
After adding custom filters –
Once you add above code to the child theme’s functions.php file, new Astra 2.2 options will be working for you.
With this, you might notice a slight change in buttons.
This is because static default value for buttons line-height is changed in this update. That might change the existing look of buttons.
You can alter it easily from the customizer buttons settings and it will be applied globally to all buttons on the website.