• 0

How to create a custom shortcode to my DMS-child theme?


Question

Posted · Report post

By trial and error I was able to create a new shortcode by editing the class.shortcodes.php. Basically I added my shortcode first to the 

private function shortcodes_core() {

And then just copy-pasting the function below. 

How do I add it to my child theme? Can I add just the one shortcode or do I have to override them all?

Thank you

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

Hi,

 

Firstly you shouldn't edit the core files, by doing so, you void all support from our staff. As we do not recommend editing of the core files nor support it.

If you want to create your own shortcodes you will want to create a new shortcode and add that code to your child themes functions.php file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now