Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Remove item from shortcode list
New Landing › How can we help? › Themeforest Theme Support › Dante › Remove item from shortcode list
- This topic has 9 replies, 3 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Dante
-
November 12, 2014 at 1:40 pm #127631
Hi,
I’d like to properly remove some shortcode items within the WYSIWYG editor (price table for ex.).
Can I do that via function.php in a child theme?regards
November 13, 2014 at 9:16 am #127916Hi,
Please use this code at functions.php of child theme.
<?php remove_shortcode( 'pt_price' ); ?>
Thanks
MohammadNovember 13, 2014 at 5:01 pm #128125I placed the code in the dante_child/function.php but it doesn’t work at all.
I still have “Pricing Table” shortcode in the list.November 14, 2014 at 1:15 pm #128383Hi,
First you cant do it through functions.php of child theme. You need to edit interface.php at /dante/swift-framework/sf-shortcodes/.Find this code and remove shortcode as you want:-
<div class="option"> <label for="shortcode-select"><?php _e('Shortcode', 'swift-framework-admin'); ?></label> <select id="shortcode-select" name="shortcode-select"> <option value="0"></option> <option value="shortcode-buttons"><?php _e('Button', 'swift-framework-admin'); ?></option> <option value="shortcode-chart"><?php _e('Chart', 'swift-framework-admin'); ?></option> <option value="shortcode-columns"><?php _e('Columns', 'swift-framework-admin'); ?></option> <option value="shortcode-counters"><?php _e('Counters', 'swift-framework-admin'); ?></option> <option value="shortcode-countdown"><?php _e('Countdown', 'swift-framework-admin'); ?></option> <option value="shortcode-icons"><?php _e('Icons', 'swift-framework-admin'); ?></option> <option value="shortcode-iconbox"><?php _e('Icon Box', 'swift-framework-admin'); ?></option> <option value="shortcode-imagebanner"><?php _e('Image Banner', 'swift-framework-admin'); ?></option> <option value="shortcode-labelledpricingtables"><?php _e('Labelled Pricing Table', 'swift-framework-admin'); ?></option> <option value="shortcode-lists"><?php _e('Lists', 'swift-framework-admin'); ?></option> <option value="shortcode-modal"><?php _e('Modal', 'swift-framework-admin'); ?></option> <option value="shortcode-pricingtables"><?php _e('Pricing Table', 'swift-framework-admin'); ?></option> <option value="shortcode-progressbar"><?php _e('Progress Bar', 'swift-framework-admin'); ?></option> <option value="shortcode-fwvideo"><?php _e('Fullscreen Video', 'swift-framework-admin'); ?></option> <option value="shortcode-responsivevis"><?php _e('Responsive Visiblity', 'swift-framework-admin'); ?></option> <option value="shortcode-social"><?php _e('Social', 'swift-framework-admin'); ?></option> <option value="shortcode-social-share"><?php _e('Social share', 'swift-framework-admin'); ?></option> <option value="shortcode-tables"><?php _e('Table', 'swift-framework-admin'); ?></option> <option value="shortcode-tooltip"><?php _e('Tooltip', 'swift-framework-admin'); ?></option> <option value="shortcode-typography"><?php _e('Typography', 'swift-framework-admin'); ?></option> </select> </div>
Thanks
MohammadNovember 14, 2014 at 1:22 pm #128392Strange support… you gave me one solution via child theme (not working) then you say it’s not possible via child theme.
Are you sure really about that?regards
November 14, 2014 at 1:24 pm #128393Hi,
First time, i got you wrong so replied that. Now i have got and gave correct reply.
Thanks
MohammadNovember 14, 2014 at 2:55 pm #128442ok so there is no way to do it properly. It’s a shame.
thanks anywayNovember 14, 2014 at 2:57 pm #128445Properly?
Removing shortcodes is not something that is often required so to do so you have to edit the file
– Kyle
November 14, 2014 at 3:04 pm #128447It would be better if it could be done via function.php… anyway I got it 😉
November 14, 2014 at 3:04 pm #128448No problem
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.