Doubt About ShortCode in Functions.php – OverWritten if i Atualize theme!?

Posted in: Newspaper
Post count: 51

I’m back to use Speed Boster, its plugin, because of the CSS block render, and for better performance.

Ok, so I stopped using some plugins for this.

Now, I started to create ShortCodes, create my own scripts, and insert them into posts.

The question is:

The functions.php, located at:
/wp-content/themes/newspaper/functions.php

If I update WordPress, or Theme, will it be overwritten?

  • This topic was modified 8 years by alecaus.
Post count: 75

@alecaus yes for sure if you edit theme files and after you update theme you can lose all your edits(features)

Just create a simple plugin
use this example https://gist.github.com/reatlat/cd19243846a60ce531bb325d46013af1

Just create a folder simple-plugin in wp-plugins
and create one php file like you saw in Gist

Place any functions inside, and activate plugin.

Post count: 75

PS: For sure you can rename simple-plugin to your own name

Post count: 22421

Hello,

If you have trouble with plugin compatibility when using speedbooster, please check this topic:
https://forum.tagdiv.com/topic/tinymce-advanced-and-other-various-disabling-speed-boster/

Thank you!

Post count: 51

Thank you! @reatlat and Bogdan

  • This reply was modified 8 years by alecaus.
Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.