Viewing 2 posts - 1 through 2 (of 2 total)
  • #169028
    elcamilo
    Member
    Post count: 14

    How do I update the theme and not lose the settings that I ran on my site, for example when an update of the theme and I update, I lose all the translation into Portuguese that I did. I changed the sf-header to a message appears at the top, and when I update I lose that too.

    #169033
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    That change should be done inside a child theme so we don’t have this problem when a new update comes.

    Regarding the translation you should add the code below to your functions.php of the child theme, and copy the translation files to the the folder “languages” inside the child theme files. That director doesn’t exist by default, you need to create it.

    
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    

    -Rui

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register