Home Forums WoodMart support forum Hide Xtemos template button from Elementor editor view to other users

Hide Xtemos template button from Elementor editor view to other users

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #494898

    wkmaster1985
    Participant

    I do not want other users of my website to add Xtemos template sections. How can I hide the Xtemos button? Please see the screenshot attached in the private section.

    #494949

    Luke Nielsen
    Keymaster

    Hello,

    Please try to add the below code to the fucntions.php file in your child theme and then recheck it.

    add_action( 'elementor/editor/after_enqueue_scripts', function () {
    		if ( ! current_user_can( 'administrator' ) ) {
    			wp_deregister_script( 'xts-template-library-script');
    			wp_dequeue_script( 'xts-template-library-script');
    		}
    }, 12 );

    Kind Regards

    • This reply was modified 1 year, 10 months ago by Luke Nielsen.
    #494988

    wkmaster1985
    Participant

    Thank you, this has helped.

    #494989

    Luke Nielsen
    Keymaster

    Hello,

    Great! Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

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

The topic ‘Hide Xtemos template button from Elementor editor view to other users’ is closed to new replies.