• Resolved mluce

    (@mluce)


    Hello,
    I edited the content-single.php template page and I also changed a language .mo file. The problem is when I updated the plugin, everything I did got deleted. I have a backup of the changes I made so I can edit the files again but the problem is, I do not want to have to do it everytime the plugin gets updated. Is there a way to extend the Estatik plugin without having my changes overridden?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Easiest way is to use a child theme and put the changed template files in that child theme.

    Just create a folder “estatik” in your child theme and add the files there, in the same folder structure as in the estatik/templates folder.

    so to change the pdf style, in the estatik folder of your child theme, you will have to add the property/pdf folders.

    Plugin Author Estatik

    (@estatik)

    Hello,
    Thank you for your reply. The described solution is perfectly right.
    Estatik templates can be overwritten in child the following way: create a child theme, then copy the template file there and add any code modifications you need.
    As for the language files, please try to store the modified files in website languages folder instead of the plugin one.
    Thanks.

    • This reply was modified 2 years, 11 months ago by Estatik.
    Thread Starter mluce

    (@mluce)

    Hello,
    I already have a child theme (my theme is Divi). So I created an estatik folder in my Divi-child folder. I created a templates folder inside that estatik folder and I moved the content-single.php file I edited to that templates folder.
    Now when I reload one of the property pages, my template edits are not taken into account.
    So it does not work. Did I miss something?
    Thank you very much for your help

    Plugin Author Estatik

    (@estatik)

    The correct path should be like the following:
    child/estatik/content-single.php
    There is no need to add “templates” folder.
    Please try.
    Thanks.

    Thread Starter mluce

    (@mluce)

    Thank you very much, it worked! I was also able to move the language files to the website language folder and it worked too!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Template edits overridden with plugin update’ is closed to new replies.