Our themes come with a set of custom shortcodes, which you can use to create your website content. However, according to individual needs you may want to replace one of our custom shortcodes or change it’s behaviour. You may also rename it’s name to avoid any name collisions with other plugins.
To remove custom shortcode from the theme, please follow the steps below.
Step by step
- Create a child theme.
- Find your shortcode location in theme > shortcodes > shortcodes-group-name.
- Create identical location theme > shortcodes > … > inside your child theme.
- Copy Shortcode file, that you want to edit – to directory in your child theme
- Find Shortcode name function in shortcode file:
-
12345678/*** Shortcode name* @return string*/public function getShortcodeName(){return 'video';}
12345678/*** Shortcode name* @return string*/public function getShortcodeName(){return 'ct_video';} - Save file in your child theme directory.
- Please note that when shortcode name has changed, you need to update your content to use new name ie. [ct_video].
Learn more:
How to create my own shortcode?