New Landing How can we help? Themeforest Theme Support Dante Remove item from shortcode list

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #127631
    wildfox
    Member
    Post count: 58

    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

    #127916
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this code at functions.php of child theme.
    <?php remove_shortcode( 'pt_price' ); ?>

    Thanks
    Mohammad

    #128125
    wildfox
    Member
    Post count: 58

    I 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.

    #128383
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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
    Mohammad

    #128392
    wildfox
    Member
    Post count: 58

    Strange 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

    #128393
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    First time, i got you wrong so replied that. Now i have got and gave correct reply.
    Thanks
    Mohammad

    #128442
    wildfox
    Member
    Post count: 58

    ok so there is no way to do it properly. It’s a shame.
    thanks anyway

    #128445
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Properly?

    Removing shortcodes is not something that is often required so to do so you have to edit the file

    – Kyle

    #128447
    wildfox
    Member
    Post count: 58

    It would be better if it could be done via function.php… anyway I got it 😉

    #128448
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register