• Resolved Anonymous User 17625028

    (@anonymized-17625028)


    Greetings!
    First of all: thank you for this amazing plugin. Scriptless, css can be disabled, buttons can be disabled on the html, and even the block can be turned off – simply amazing.

    I understand that a user may decide not to use the PinInterest button by default or by block, and still be able to insert the PinInterest button via shortcode, so it is necessary for your plug-in to consider this scenario, which is reflected in always presenting the Scriptless Social Sharing column on the Document tab of new posts, in order to provide the correct operation of the PinInterest button.

    But for users like me, who definitely are not going to use the PinInterest button, I want to remove the “Custom Pinterest Image” and “Custom Pinterest Description” because they are not needed. In fact, not even “Don’t show sharing buttons for this post” is needed for me. Considering you deal so well with conditional code, is it possible to disable entirely the Scriptless Social Sharing section on new posts via a new option on Settings-WP-Admin? This is going to avoid confusion on authors.

    • This topic was modified 4 years, 8 months ago by Anonymous User 17625028. Reason: Typo
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    The easiest way to remove that is to click on the “More tools & options” button (three dots in the block editor), then Options, and disable the Scriptless metabox in the Advanced section (Screen Options in the upper right of the classic editor).

    If you want code for it, however, WordPress offers a function to remove metaboxes, so you can use that:

    add_action( 'add_meta_boxes', 'prefix_remove_scriptless_postmeta', 50 );
    /**
     * Remove the Scriptless post meta box.
     */
    function prefix_remove_scriptless_postmeta() {
    	if ( ! function_exists( 'scriptlesssocialsharing_post_types' )  ) {
    		return;
    	}
    	remove_meta_box( 'scriptless_social_sharing', scriptlesssocialsharing_post_types(), 'side' );
    }
    

    Hope that helps you get started.

    Thread Starter Anonymous User 17625028

    (@anonymized-17625028)

    Hi!
    I am super scared of adding functions on this website, because it cannot be broken ever by PHP or Javascript. I use no functions at the moment. For me personally, disabling the Scriptless metabox in the Advanced section is more than enough. However, in order to avoid confusion for external authors, that ask me what is that metabox, I may consider adding this function. You may mark as resolved this issue if you wish. Thank you for the attention. But I would be glad if you can add it as an option in the future, Ms. Cornett.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request: Disable Scriptless Social Sharing section on Document tab’ is closed to new replies.