
-
AuthorPosts
-
July 7, 2025 at 5:08 pm #1486409
My client hasn’t updated their theme in many years and is using 2.4.1. I purchased a new license for him and need to update the site but there’s no “update theme” option to do so (https://tinyurl.com/ynvpskqn). I’ve made a copy of the site already. How can I update the theme without losing everything? Thank you!
July 7, 2025 at 10:43 pm #1486421Hey jmbernstein,
Assuming that there are no customizations in the functions.php of the parent theme and you are not using a Child Theme, but your WordPress is up to date you can follow these steps:
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue.
then you will see the Theme updated successfully message.
While I don’t expect any issues with updating the theme, I recommend testing on a staging site first to ensure that it works well.Best regards,
MikeJuly 8, 2025 at 5:22 am #1486424This reply has been marked as private.July 8, 2025 at 6:37 am #1486435Hi,
Will the css get overwritten?
If the custom css is added in the Enfold > General Styling > Quick CSS field or in the child theme’s
style.css
file, it will be retained during updates, as long as you don’t import another demo or make direct changes in the database.Make sure to create a site backup or restore point before proceeding.
Let us know if you need more info.
Best regards,
IsmaelJuly 8, 2025 at 6:12 pm #1486467This reply has been marked as private.July 8, 2025 at 10:14 pm #1486478Hi,
I assume that this is a new customization that you want to achieve, and not one that you have in the theme now.
Try this solutionBest regards,
MikeJuly 9, 2025 at 7:05 am #1486496This reply has been marked as private.July 9, 2025 at 9:40 pm #1486544Hi,
Perhaps this will be easier, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor, If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
and ensure that it is activated, then add the below code and save.function custom_menu_by_page_name($args) { // Only modify the main header menu if ($args['theme_location'] != 'avia') { return $args; } // Get current page object if (is_page()) { global $post; $page_slug = $post->post_name; // Map of page slugs to custom menu names $menu_switches = array( 'about-us' => 'rick-sherman', 'faq' => 'rick-sherman', 'contact' => 'sherman-sound', 'help' => 'sherman-sound', // Add more as needed ); // Check if the current page slug is in our list if (array_key_exists($page_slug, $menu_switches)) { $menu_name = $menu_switches[$page_slug]; $menu_obj = wp_get_nav_menu_object($menu_name); if ($menu_obj) { $args['menu'] = $menu_obj->term_id; } } } return $args; } add_filter('wp_nav_menu_args', 'custom_menu_by_page_name');
in the code under
$menu_switches = array(
you see four page names with the menu name, such as:
'about-us' => 'rick-sherman',
change the page “slugs” or names to suit and the menu names, whatever pages or posts that you don’t add to the code will use your default menu.
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.