{"id":35840,"date":"2015-06-22T05:08:12","date_gmt":"2015-06-22T09:08:12","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=35840"},"modified":"2017-12-13T09:53:49","modified_gmt":"2017-12-13T14:53:49","slug":"wordpress-cherry-framework-keeps-reverting-my-css-changes","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-cherry-framework-keeps-reverting-my-css-changes.html","title":{"rendered":"WordPress. Cherry Framework 3.x keeps reverting my CSS changes"},"content":{"rendered":"<p><\/p>\r\n<p>Below you can see the list of reasons that cause issues with CSS changes (like reverting changes performed to template styles).<\/p>\r\n<ol>\r\n<li>\r\n<p>Changes were performed in CherryFramework files instead of themeXXXXX child theme files.\r\n  <\/p>\r\n<\/li>\r\n<li>\r\n<p>Changes were performed in <strong>main-style.css<\/strong> file.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Changes performed in <strong>themeXXXXX\/style.css<\/strong> file without declaration of !important property.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Changes performed in <strong>Custom CSS<\/strong> section were not saved before updating CherryFramework  and were not put back and saved after update.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p class=\"warning\">IMPORTANT: All CSS changes should be performed in child theme. Usually it is called like themeXXXXX. Please DO NOT perform changes in CherryFramework folder as all changes will be lost after CherryFramework update.<\/p>\r\n<p>This tutorial shows how to perform changes to CSS properly.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=y7N1G7P69lQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. Cherry Framework keeps reverting my CSS changes<\/a><\/p>\r\n<p>Let\u2019s check <strong>structure of CSS files<\/strong> in child theme (themeXXXXX).\r\n<\/p>\r\n<ol>\r\n<li>\r\n<p><strong>style.css<\/strong> \u2013 the main CSS file. It is required for the correct  theme functionality, you can also add custom CSS styles here.\r\n  <\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>style.less<\/strong> \u2013 the .less file with the theme CSS styles.\r\n  <\/p>\r\n<\/li>\r\n<li>\r\n<p><strong>main-style.css <\/strong>\u2013 the CSS file with the theme styles. <strong>It is generated automatically<\/strong> from style.less file, that is why you<br \/>\r\n      <strong>SHOULD NOT<\/strong> perform changes in <strong>main-style.css<\/strong> file. <\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-1-300x186.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-1\" width=\"300\" height=\"186\" class=\"aligncenter size-medium wp-image-35842\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-1-300x186.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-1-150x93.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-1.jpg 894w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Below you will see how implement changes to CSS properly. <\/p>\r\n<h3 class=\"custom\">How to define custom styles in <strong>style.css<\/strong> file?<\/h3>\r\n<ol>\r\n<li>\r\n<p>Let&#8217;s change color of the button. Inspect element using <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\">Firebug software<\/a>. We can see that styles for our button are defined in main-styles.css file. <strong>DO NOT perform changes<\/strong> in <strong>main-styles.css<\/strong> file as it is generated automatically from style.less and all changes performed to this file will be lost. Copy CSS style declaration.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2-300x167.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-2\" width=\"300\" height=\"167\" class=\"aligncenter size-medium wp-image-35843\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2-300x167.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2-150x83.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2-1024x572.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-2.jpg 1272w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>style.css<\/strong> file (which is located in your <strong>themeXXXXX <\/strong>folder). Paste CSS style declaration. Leave modified part of code (in our case it&#8217;s background property) and add <strong>!important<\/strong> directive (in this case our style will have highest priority). Save changes.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-3-300x146.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-3\" width=\"300\" height=\"146\" class=\"aligncenter size-medium wp-image-35844\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-3-300x146.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-3-150x73.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-3.jpg 1017w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Refresh page and check your site. We can see that color was changed due to override specified in <strong>style.css<\/strong> file.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4-300x168.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-4\" width=\"300\" height=\"168\" class=\"aligncenter size-medium wp-image-35845\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4-300x168.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4-1024x575.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-4.jpg 1256w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\">How to define custom styles in<strong> style.less <\/strong>file?<\/h3>\r\n<ol>\r\n<li>\r\n<p>You may define your custom styles in <strong>style.less<\/strong> file (in some cases styles defined in <strong>style.css<\/strong> file can be overridden by styles defined in <strong>style.less<\/strong> file).  Inspect element using <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\">Firebug software<\/a>. <strong>DO NOT perform changes<\/strong> in <strong>main-styles.css<\/strong> file as it is generated automatically from style.less and all changes performed to this file will be lost. Copy CSS styles declaration.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>style.less<\/strong> file (which is located in your <strong>themeXXXXX <\/strong>folder). Paste CSS style declaration. Leave modified part of code (in our case it&#8217;s background property) and add !important code (in this case our style will have highest priority). Save changes.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5-300x164.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-5\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-35846\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5-1024x560.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-5.jpg 1054w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Refresh page and check your site. Now we can see that<strong> the style we have specified in style.less<\/strong> file <strong>was compiled to main-style.css file<\/strong>. It means that previous file was removed and new one was generated instead. That is why <strong>you SHOULD NOT<\/strong> perform changes in <strong>main-style.css file.<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6-300x164.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-6\" width=\"300\" height=\"164\" class=\"aligncenter size-medium wp-image-35847\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6-300x164.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6-150x82.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6-1024x562.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-6.jpg 1248w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<h3 class=\"custom\">How to define custom styles in<strong> Cherry Options<\/strong>?<\/h3>\r\n<p class=\"attention\">IMPORTANT: <em>Be sure to back up  custom code (save on storage device or in cloud) as this custom code may not be saved after CherryFramework update. You will need to put this code when CherryFramework will be updated. You may save code as .txt file and store it on storage device or cloud.<\/em>\r\n<\/p>\r\n<ol>\r\n<li>\r\n<p>You may define your custom styles under <strong> Cherry Options->General tab.<\/strong><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7-300x169.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-7\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-35848\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7-1024x580.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-7.jpg 1264w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p> Scroll to <strong>Custom CSS<\/strong> section (you can find Custom CSS section at the bottom of <strong>General <\/strong>tab page). Inspect element using <a target=\"_blank\" href=\"\/help\/firebug-mozilla-firefox-plugin.html\">Firebug software<\/a>. Copy CSS style declaration. In most cases !important should not be specified as custom styles defined in Custom CSS tab have the highest priority. Save changes.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8-300x159.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-8\" width=\"300\" height=\"159\" class=\"aligncenter size-medium wp-image-35849\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8-300x159.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8-150x79.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8-1024x543.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-8.jpg 1236w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Refresh the page and check your site. We can see that original styles were overridden<strong>.<\/strong> Once again,<strong> be sure to back up CSS styles you have specified in Custom CSS section of Cherry options.<\/strong> You may save them as .txt file and store in storage device or cloud.<\/p>\r\n<p class=\"attention\">Be sure to open General tab in Cherry options and click Save when CherryFramework update was performed (such action is required after update).<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9-300x169.jpg\" alt=\"WordPress. Cherry Framework keeps reverting my CSS changes-9\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-35850\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9-1024x577.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2014\/08\/WordPress.-Cherry-Framework-keeps-reverting-my-CSS-changes-9.jpg 1256w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=y7N1G7P69lQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. Cherry Framework keeps reverting my CSS changes<\/a><\/p>\r\n<p><\/p>\r\n<p>In the event you might need more templates to choose from, go ahead and see <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\">stylish wordpress themes<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Below you can see the list of reasons that cause issues with CSS changes (like reverting changes performed to template styles).<\/p>\n","protected":false},"author":39,"featured_media":35858,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1711,1419,514,1048,1129,1362,1200,1712],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/35840"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=35840"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/35840\/revisions"}],"predecessor-version":[{"id":83509,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/35840\/revisions\/83509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/35858"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=35840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=35840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=35840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}