• Resolved jcdichant

    (@spikeweb)


    Using the latest release of the plugin, 5.0.7, I cannot see anymore the “Frame” shortcode I was using previously. The code by itself still works if I insert it manually [su_frame] but I cannot see it in the editor list.

    Any help to get it back appreciated,

    JC

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Vova

    (@gn_themes)

    Hi JC,

    the frame shortcode is deprecated. It will continue to work but it’s now hidden in the list.

    You can enable the shortcode by adding the following snippet to the end of the functions.php file of your active theme:

    add_filter( 'su/data/shortcodes', function( $shortcodes ) {
    
    	if ( isset( $shortcodes['frame']['deprecated'] ) ) {
    		unset( $shortcodes['frame']['deprecated'] );
    	}
    
    	return $shortcodes;
    
    } );

    Please note, I do not recommend doing this.

    Thread Starter jcdichant

    (@spikeweb)

    Thanks a lot Vladimir.
    What is now your recommendation to include an Amazon iframe affiliate code as I have dozens of posts with this short code included ?
    Another short code ?

    Plugin Author Vova

    (@gn_themes)

    There is no direct alternative yet, but you can give a try to [su_note] or a custom div.

    Plugin Author Vova

    (@gn_themes)

    Just to clarify:

    Please note, I do not recommend doing this.

    I do not recommend restoring the shortcode in the Insert shortcode window. But, you are still able to use it. It won’t be removed from the plugin completely.

    • This reply was modified 6 years, 4 months ago by Vova.
    Thread Starter jcdichant

    (@spikeweb)

    Thanks for this info. Removing the shortcode would mean all my posts in error.
    This is not a nice situation.
    Is there any reason why the frame code is deprecated ?
    Technical issue ?

    Plugin Author Vova

    (@gn_themes)

    In a nutshell: it was “bad-coded”. I’ll make it much better, someday.

    Removing the shortcode would mean all my posts in error. This is not a nice situation.

    I totally agree ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Frame shortcode disappeared ?’ is closed to new replies.