• Resolved Swissprice

    (@swissprice)


    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://www.ads-software.com/plugins/calculated-fields-form/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I’ve some recommendations:

    First variant: Create a child theme (https://codex.www.ads-software.com/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

    (@swissprice)

    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

    (@codepeople)

    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

    (@swissprice)

    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.