Title: Hide shortcode button on front-end post
Last modified: August 31, 2016

---

# Hide shortcode button on front-end post

 *  Resolved [wbfz](https://wordpress.org/support/users/wbfz/)
 * (@wbfz)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-shortcode-button-on-front-end-post/)
 * Hello [@dudo](https://wordpress.org/support/users/dudo/),
 * I recently noticed the yasr shortcode button started showing up on my front-end
   post form. I tried using the css `yasr-shortcode-creator.button.thickbox {display:
   none !important;}` to hide the button but it didn’t budge.
 * Any idea on how to hide it?
 * Regards
 * [https://wordpress.org/plugins/yet-another-stars-rating/](https://wordpress.org/plugins/yet-another-stars-rating/)

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

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-shortcode-button-on-front-end-post/#post-7364625)
 * 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](https://wordpress.org/support/users/wbfz/)
 * (@wbfz)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/hide-shortcode-button-on-front-end-post/#post-7364725)
 * 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.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wbfz](https://wordpress.org/support/users/wbfz/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/hide-shortcode-button-on-front-end-post/#post-7364725)
 * Status: resolved