Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1066431

    Last week (at february 5) I allready posted a request in an existing thread (after I had just payed 40,- for additional support), but nobody responded, except for mentioning to open up a new thread. So here we are.

    It seems I am not able to update enfold, because it was too long since my last theme-update. Could somebody please help me asap to update Enfold-theme succesfully to it’s latest version?
    At this point Enfold and latest WordPress are not working together at all: lay-outeditors do not work, as wel as tekst editors, which makes it impossible to edit content.

    I don’t use any Child-theme. Earlier there were a few specific adjustments made. I checked the newest Enfold php-files, which seem to differ from earlier files, so I cannot alter specific adjustments concerning:
    1. footer.php (Remove credits from footer)
    2. class-breadcrumb.php (Replace “You are here:” with “Je bent hier: before breadcrumb)
    3. contact.php (Replace auto-respond header “Thank you for your message” with “Bedankt voor je bericht”)
    4. Some custom CSS

    Just made fresh back-ups…. detailed info in private

    #1066805

    Hey NieuweDag,

    We would be happy to help you out with updating, but keeping your customisations might be difficult. That is why you should use a child theme, maybe it would be a good idea if you installed a child theme first and moved your customisation in there?

    Best regards,
    Rikard

    #1066960

    Hi Rikard, installing a child theme sounds great, also to avoid future problems with updates. Could you perhaps help me out with that aswell?

    At this point I roughly know how it’s done, and why, but I wouldn’t know the precise details yet to ensure maintaining current content and settings as it is.

    #1067336

    Hi,

    You can start off here: https://kriesi.at/documentation/enfold/child-theme/, then import your theme settings from the parent in the theme options once you have installed and activated the child.

    Best regards,
    Rikard

    #1067683
    This reply has been marked as private.
    #1069282

    Hi,
    Sorry for the late reply, to replace the breadcrumb title, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function replace_breadcrumb_title(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".breadcrumb-title").text("Je bent hier:");
     });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_breadcrumb_title');

    To change the auto-respond header “Thank you for your message” you will need to change line 460 in \enfold\config-templatebuilder\avia-shortcodes\contact\contact.php
    Then add the directory /shortcodes/ to your child theme,
    then copy the /contact/ directory to it with all 3 files in it, contact.js, contact.css, contact.php
    so you will have this path: /enfold-child/shortcodes/contact/
    Then add this code to the end of your functions.php file in Appearance > Editor:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }

    now your child theme contact element will overwrite the theme contact element, you can read more here.

    Best regards,
    Mike

    #1069653
    This reply has been marked as private.
    #1069766

    Hi,
    Please copy the contact folder: \enfold\config-templatebuilder\avia-shortcodes\contact\
    to your new shortcodes folder so it will be like: /enfold-child/shortcodes/contact/ (this assumes that your child theme is /enfold-child/)
    then edit line 460 in contact.php
    search for “Thank you for your Message!”
    2019-02-20-205045
    Then clear your browser cache and check.
    The reason we want to copy the folder to your child theme and then edit the file there so so the next time you update you won’t lose the changes. If you make the changes to the parent theme, it will also work, until you update, then you will lose the changes.
    All of the elements can be modified this way.
    If you would like help with this, Please include a admin login & FTP access in the Private Content area.

    Best regards,
    Mike

    #1071585
    This reply has been marked as private.
    #1072009
    This reply has been marked as private.
    #1072156

    Hi,
    I see that you are using Enfold v4.0.1 for this version there was only one contact.php file and not a folder, so to bring your site up to date, I renamed your current theme to “enfold-old” then I uploaded the new “enfold” and checked that your site is working correctly. Please also check for yourself.
    Once you are happy you, (or I) can delete the “enfold-old” via ftp, (not the WP theme page)
    Should for some reason you wish to roll-back to the old version, it’s easy to do, simply rename the new “enfold” to “enfold-new” via ftp and then rename “enfold-old” to “enfold” then refresh your page.

    I then checked your child theme functions.php and added the function to override the contact form element, you didn’t have this in place, but you did have the other script to replace the breadcrumb title.

    I then activated your child theme, and see the breadcrumb titles are being replaced, and your contact form gave the successful message, but you will have to check that email has the correct text.

    Please check your site and contact form and let us know if we should delete the old theme.

    Best regards,
    Mike

    #1072420
    This reply has been marked as private.
    #1072460

    Hi,
    I’m glad that you are happy with your site now. Now that you are using a child theme, and are applying the customizations to the child theme, you will be able to update the site without losing anything.
    When I look at your site it seems to be in Dutch, but there are two language settings, the first one is for the front end of your site at: WordPress > Settings > General > Site Language, the second is in your user profile at: WordPress > Users > Your Profile > Language which is for the backend when you are logged in.
    Please adjust these to suit.

    Best regards,
    Mike

    #1074831
    This reply has been marked as private.
    #1075329

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Update Enfold theme to newest version via FTP & maintaining earlier adjustments’ is closed to new replies.