How to add custom php functions to Newspaper theme?

Posted in: Newspaper
Post count: 234

Hi there!
I really like your theme and I enjoy creating my website with it, so thank you for that.

I have a simple question for you: where is the safest place to add php functions into the theme?
There are some php functions that I need to grab from there: https://wpgridbuilder.com/add-ons/map-facet/ the developer told me to modify functions.php from the child theme but I wanted to ask you first if there is a better way with Newspaper.

I would like this script to not be deleted every time I update the theme.

Thanks in advance for your help.
Adrien

Post count: 21065

Hello Adrien!

I recommend you also to build a child theme and add them there, because any changes you make in the theme files after update will be overwritten and you have to make the changes again.

Thanks for your kind words!

Post count: 234

Thank you Bettina!
I have never used child theme before, if I modify the function.php there, what will happen every time I will update the theme?

Thank you!

Post count: 21065

Hello!

How I said above if you modify the theme files after update the changes will be overwritten and you have to make the changes again. Better save the code somewhere and then apply it again after update.

Thank you!

Post count: 234

Sounds good thank you!

Post count: 10

Hello, were you ever able to integrate WP Grid Builder?

Post count: 234

Yes! but I don’t remember how I managed to get it working
https://australie.bucket-list.fr/les-activites-immanquables/

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.