Hi Herman.
I’m not as adventurous as to delete everything in my site, I just want to reset Astra settings in the database to force it think I’m not the existing but a new user, so that not to need adding pieces of code to my child theme’s functions.php file to get new default Astra behaviors. Maybe you could take it as an idea for a new plugin? ?? Similarly to your Astra Customizer Reset plugin?
Anyway, I’m OK adding pieces of code to my child theme’s functions.php file. I just need to know
(1) Where to start? i.e., how to find out what was the Astra theme version that I originally installed?
(2) What’s exactly the complete list of Astra version changes where an existing user must add that pieces of code to the child theme’s functions.php file to get the new behavior?
I’ve googled Astra documentation and compiled the following list. Please let me know if I missed anything. Maybe this list could be an idea for a new support article on Astra?
2.6.0 ( https://wpastra.com/docs/gb-design-compatibility/ ) Gutenberg Design Compatibility. For Existing users: Users who are using Astra theme from previous version 2.6.0 and update to version 2.6.0 and above. To get this compatibility you will need to add the following filter –
add_filter( 'astra_gutenberg_core_blocks_design_compatibility', '__return_true' );
2.5.0 ( https://wpastra.com/docs/global-button-support-for-woocommerce-buttons/ ) For Existing Users: You can use the following filter in the child theme’s functions.php to provide Global Button’s Support for the WooCommerce buttons.
add_filter( 'astra_global_btn_woo_comp' , '__return_true' );
2.5.0 ( https://wpastra.com/docs/support-for-gutenberg-cover-and-group-blocks/ ) For Existing Users: You can use the following filter in the child theme’s functions.php to provide Support for the Cover and Group blocks –
add_filter( 'astra_gtn_group_cover_css_comp', '__return_true' );
2.4.0 ( https://wpastra.com/docs/set-update-breakpoints-tablet-mobile-in-astra/ ) Responsive Breakpoints for Tablet+Mobile. If the existing users want to update their default breakpoints with some different breakpoints, they can use the following filter –
To change the Mobile Breakpoint:
// Update your custom mobile breakpoint below - like return 544;
add_filter( 'astra_mobile_breakpoint', function() {
return 544;
});
To change the Tablet Breakpoint:
// Update your custom tablet breakpoint below - like return 921;
add_filter( 'astra_tablet_breakpoint', function() {
return 921;
});
2.2 ( https://wpastra.com/docs/astra-2-2-for-existing-users/ ) New customizer options for headings and buttons. How existing users can avail Astra 2.2 features? For Theme, use –
add_filter( 'astra_page_builder_button_style_css', '__return_true' );
For Addon, use –
add_filter( 'astra_addon_page_builder_button_style_css', '__return_true' );
1.8.0 ( https://wpastra.com/docs/filter-to-switch-bread-from-old-to-new/ ) If you want to switch from the existing breadcrumb to the new trail, you can use the following filter.
add_filter( 'astra_addon_advanced_headers_use_astra_breadcrumb_trail', '__return_true' );
1.5.0 ( https://wpastra.com/docs/display-sub-menu-below-the-header/ ) Display SubMenu Just Below the Header. For the existing sites, those will update to this version (1.5.0) the above change will be disabled by default. You can enable this by adding the filter.
add_action( 'wp', 'astra_open_submenu_below_header' );
function astra_open_submenu_below_header() {
if ( false === astra_get_option( 'submenu-below-header', true ) ) {
add_filter( 'astra_submenu_below_header_fix', '__return_true' );
}
add_filter( 'astra_submenu_open_below_header_fix', '__return_true' );
}
1.4.9 ( https://wpastra.com/docs/anchor-tag-inside-heading-tag/ ) Color for Anchor Tag Inside Heading Tag. For Existing Installs – If you wish to set theme link color to link text inside the heading tag use following filter. Filter to manually enable/disable the different link and heading color –
add_filter('astra_include_achors_in_headings_typography','__return_false');
-
This reply was modified 4 years ago by ymf.
-
This reply was modified 4 years ago by ymf.