Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello wbfz, thank you for using Yasr!

    Can you please try this?

    In the plugin directory, open file /lib/yasr-functions.php and from line 698 to line 704 you should have this

    function yasr_shortcode_button_media() {
    
    		add_thickbox();
    
    		echo '<a href="#TB_inline?width=530&height=600&inlineId=yasr-tinypopup-form" id="yasr-shortcode-creator" class="button thickbox"><span class="dashicons dashicons-star-half" style="vertical-align: text-top;"></span> Yasr Shortcode</a>';
    
    	}

    can you please replace to this?

    function yasr_shortcode_button_media() {
    
    		if (is_admin()) {
    
    			add_thickbox();
    
    			echo '<a href="#TB_inline?width=530&height=600&inlineId=yasr-tinypopup-form" id="yasr-shortcode-creator" class="button thickbox"><span class="dashicons dashicons-star-half" style="vertical-align: text-top;"></span> Yasr Shortcode</a>';
    
    		}
    
    	}

    Best,
    Dario

    Thread Starter wbfz

    (@wbfz)

    Thanks Dario…It works 👍

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide shortcode button on front-end post’ is closed to new replies.