• Resolved Donald Louch

    (@donaldlouch)


    So I have designed and maintain a site for a magazine and the site is using this theme! However, we have made slight customizations to the theme such as adding a colour to the navigation and incorporating a Facebook widget to the home page! However, after about a week the colour seems to default back to the pink colour…. Furthermore, the Facebook header code seems to get deleted from the header.php file, which in-turns disables the Facebook widget…

    This has been happening for months now and I was wondering if we are doing something wrong or not…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you using a child theme?

    Thread Starter Donald Louch

    (@donaldlouch)

    I am not.

    If you make direct edits to the theme, whenever you update a theme those edits have a strong chance, if not a definite one, of getting reverted to the original. Changes to the database are not affected, but any style and/or code changes most definitely will be.

    By creating a child theme, you are guaranteed that any changes you make will remain after a theme update.

    An alternative, if you are just making minor css changes, is to get a custom css plugin. It will provide you a way to add custom css outside of the theme itself.

    read more about child themes here:
    https://codex.ww.wp.xz.cn/Child_Themes

    here is a plugin (one of many…) for custom css:
    https://ww.wp.xz.cn/plugins/simple-custom-css/

    Mr. Case is spot on. Theme files should never be edited directly, since you will lose all your changes every time the theme is updated to the latest version. A child theme is the way to go in your case, since you’ve edited header.php. A child theme will allow you to make both template-file changes and CSS changes within the child theme, while protecting the tweaks from theme updates. (You won’t need a custom CSS plugin in addition to a child theme.)

    Here are some additional guides in case you haven’t made one before:

    http://op111.net/53/

    Thread Starter Donald Louch

    (@donaldlouch)

    So, I did the Child Theme route and thought I would wait a few weeks to make sure it worked. before I responded!

    And it worked!

    Thanks!!!
    Donald Louch

    Great, glad to hear you’re all set. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Theme Keeps Going Back To Default Settings’ is closed to new replies.