Title: Template modification
Last modified: September 1, 2016

---

# Template modification

 *  Resolved [Swissprice](https://wordpress.org/support/users/swissprice/)
 * (@swissprice)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/)
 * Hello,
 * Great plugin, thank you for your work! I will upgrade as soon as I can… 🙂
 * I just have one question: I modified the template 07 (Minimalist) and I would
   like to know, is there a way to avoid losing my modifications at every update?
   Such as make the plugin search the files for this template in another location
   using the functions.php.
 * Thank you in advance for your reply! 🙂
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/#post-7712423)
 * Hi,
 * I’ve some recommendations:
 * First variant: Create a child theme ([https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)),
   and insert in it the new styles definitions, to prevent that CSS rules be replace
   even with the theme update.
 * Second variant: Insert the new styles definitions directly in the form. In this
   case you simply should insert a “HTML Content” field in the form, and enter as
   its content the `<style></style>` tags with the styles definitions.
 * Best regards.
 *  Thread Starter [Swissprice](https://wordpress.org/support/users/swissprice/)
 * (@swissprice)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/#post-7712445)
 * Hello,
 * Thank you very much for your reply.
 * I tried both ways. The first way partially worked. I had to add `!important` 
   at the end of every parameter and still, some things didn’t change at all.
 * The second and easiest way unfortunately did not work. 🙁
 * Any other suggestion?
 * Kind regards.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/#post-7712466)
 * Hi,
 * I’m sorry, if you edit directly the files of the plugin, the modifications are
   overwritten in with the plugin’s updates, however, there are an alternative solution
   to the other two I sent you previously, for example, if you open the “style.css”
   file corresponding to the template, you will see a class name in front of selectors,
   for example for the “Minimalist” template:
 * .cp_cff_minimalist
 * So, if you insert the form’s shortcode with the “Text” tab enabled in the content’s
   editor of the page/post, then, you can insert it into a DIV tag with a class 
   assigned, for example:
 * `<div class="my-template">[CP_CALCULATED_FIELDS id="1"]</div>`
 * and then into the child theme it is possible define the new styles as follow:
 * `.my-template .cp_cff_minimalist #fbuilder .fform h1{ color: #FFFFFF; }`
 * Best regards.
 *  Thread Starter [Swissprice](https://wordpress.org/support/users/swissprice/)
 * (@swissprice)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/#post-7712500)
 * Hello,
 * Thank you for your fast reply.
 * That worked perfectly!
 * Thank you very much for your help! 🙂

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

The topic ‘Template modification’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [modification](https://wordpress.org/support/topic-tag/modification/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 4 replies
 * 2 participants
 * Last reply from: [Swissprice](https://wordpress.org/support/users/swissprice/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/template-modification-4/#post-7712500)
 * Status: resolved