Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hello,
    i tested the code and it works. Thanks.
    /**/

    in your theme js:
    
    var elementorEditorCSS = top.document.createElement("link");
    elementorEditorCSS.href = "/wp-content/themes/hello-elementor-child/elementor-editor.css";
    elementorEditorCSS.rel = "stylesheet";
    elementorEditorCSS.type = "text/css";
    top.document.body.appendChild(elementorEditorCSS);
    adjust for your theme folders name
    
    in your theme folder create file elementor-editor.css:
    
    .elementor-template-library-menu-item[data-tab="templates/blocks"],
    .elementor-template-library-menu-item[data-tab="templates/pages"],
    #elementor-template-library-templates[data-template-source="remote"] {
    	display: none;
    }

    /**/

    I have the following question: can this code be bound to a specific role, for example ”custom-author”.
    “Administrator” should be able to see and use the templates, but “custom-author” should be restricted.

Viewing 1 replies (of 1 total)