1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Will my style changes I've made change when I update theme?

Discussion in 'Web Design' started by rancidricky, May 20, 2017.

  1. rancidricky

    rancidricky Registered Member

    Joined:
    Feb 1, 2016
    Messages:
    76
    Likes Received:
    37
    Hey guys. I am currently using wordpress, and I'm a newb to it.
    I've made some style changes by adding custom css to my theme, to make images, buttons etc appear how I want them to.
    My questions is will this be overwritten when I update the theme?
    - is there a way to update features of theme like security, functionality etc without touching the style?

    Cheers guys
     
  2. lilmasta

    lilmasta Elite Member

    Joined:
    May 21, 2009
    Messages:
    2,468
    Likes Received:
    1,137
    Gender:
    Male
    Location:
    192.168.0.1
    just copy and paste your classes that you have created in your style.css (new theme)
     
  3. rancidricky

    rancidricky Registered Member

    Joined:
    Feb 1, 2016
    Messages:
    76
    Likes Received:
    37
    Thanks for the reply. Yeah, will do that, but the thing is I made the changes using some "add custom css" feature in my theme (tempera), so when I thought about this problem I looked to see if my changes were in style.css.. and for some reason only some classes are and others I'm not sure where they are
     
  4. lilmasta

    lilmasta Elite Member

    Joined:
    May 21, 2009
    Messages:
    2,468
    Likes Received:
    1,137
    Gender:
    Male
    Location:
    192.168.0.1
    if they are hard coded on separate templates like header.php footer.php single post.php then you have to do them again.
     
    • Thanks Thanks x 1
  5. Tomothy Jackson

    Tomothy Jackson Registered Member

    Joined:
    Jun 6, 2017
    Messages:
    63
    Likes Received:
    8
    Gender:
    Male
    If you use tempera plugin, i think your style still remain the same. But if i'm not sure if there is any conflict between your theme and tempera plugin or not. So be careful before update your theme!
     
  6. Naveen Onlive

    Naveen Onlive BANNED BANNED

    Joined:
    Jun 10, 2017
    Messages:
    25
    Likes Received:
    0
    Gender:
    Male
    hi.

    you should do update in Inspent element (Right Click on webpage or press F12) than should be modify online file.
     
  7. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,228
    Likes Received:
    2,413
    Occupation:
    blog creator
    Location:
    UK
    All changes to a theme, css or php should be done in a child theme, then you only have to do it once. Modify the actual code and it will be gone next update.
    For more info visit the official WordPress site
    https://codex.wordpress.org/Child_Themes
     
  8. persysweb

    persysweb Newbie

    Joined:
    Aug 1, 2017
    Messages:
    22
    Likes Received:
    2
    Occupation:
    Web designing and hosting
    Location:
    India
    Home Page:
    As previous advice, copy the current style sheet (CSS) and copy that after updating the theme. It will not affect the layout of your website though you will update the theme. All your customization will remain unchanged.