• ymf

    (@ymf)


    I want to completely uninstall Astra and then fresh-install it as if it is a completely new install.

    (Why? – because new Astra versions add some features like the one described here that are immediately auto applied to new users who are downloading Astra theme v2.6.0 and above, but the existing users who are using Astra theme from previous versions and update to version 2.6.0 need to add certain filter to the child theme.)

    I know that going in the Admin panel to Appearance -> Theme details -> Delete will delete the theme. Will it delete the theme in such a way that if I reinstall Astra after that, it will install fresh new and, for example, the new 2.6.0 features mentioned in the above paragraph will be auto-applied without the need to add filters to the child theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ymf,

    Deleting and reinstalling the Astra theme will not make you a new user because the Astra settings array is not deleted from the database and you will still be considered as an existing user. Thus, the Gutenberg Design Compatibility we added in Astra v.2.6.1 will not automatically be applied to your core Gutenberg Blocks.

    Furthermore, I don’t think you need to reset and do fresh-install your site just to have this compatibility as you can still have it just by adding a piece of code on your child theme’s functions.php file. All you do is just a simple copy and paste.

    However, if you still want to fresh-install your site, you can use a plugin to do that, e.g. Advanced WordPress Reset and WP Reset. You can also refer to this doc that contains a video that will show you how to reset your site.

    Please note that resetting your site will delete everything you have on your site and will bring your site back to the very first stage just like after you install WordPress on your site. So, please do it when you think you really need to do it. Unless you have backups of your site, there’s no way to bring back your site after you reset it. Do it wisely and at your own risk.

    I hope it will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman ??

    Thread Starter ymf

    (@ymf)

    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.

    Hi @ymf,

    It is not possible to keep the Astra settings as it is while you want Astra to recognize you as a new user. The only way for Astra to recognize you as a new user is by resetting your site or installing Astra on a fresh new WordPress installation.

    And also, there’s no such way we can detect what the Astra theme version originally installed was. So, I guess adding the filters to your site is the only option left for you. You can actually add those filters on your site if you like.

    Kind regards,
    Herman ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Completely uninstall Astra’ is closed to new replies.