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 Junior Member

    Joined:
    Feb 1, 2016
    Messages:
    154
    Likes Received:
    71
    Occupation:
    NEET
    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 Jr. VIP Jr. VIP

    Joined:
    May 21, 2009
    Messages:
    2,551
    Likes Received:
    1,197
    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 Junior Member

    Joined:
    Feb 1, 2016
    Messages:
    154
    Likes Received:
    71
    Occupation:
    NEET
    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 Jr. VIP Jr. VIP

    Joined:
    May 21, 2009
    Messages:
    2,551
    Likes Received:
    1,197
    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 Junior Member

    Joined:
    Jun 6, 2017
    Messages:
    102
    Likes Received:
    11
    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:
    6,422
    Likes Received:
    2,999
    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 Junior Member

    Joined:
    Aug 1, 2017
    Messages:
    163
    Likes Received:
    17
    Occupation:
    Web designing and hosting
    Location:
    India
    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.
     
  9. trafficsaurus1

    trafficsaurus1 Jr. VIP Jr. VIP

    Joined:
    Jan 22, 2017
    Messages:
    108
    Likes Received:
    4
    You need to use a child theme. This is just a theme with the stylesheet linked to your main theme because whenever the theme updates you will lose your styles other wise. The child theme does not need to update which is why all the original theme changes should go inside of there