Turn Off Editing
-
Hello!
With the newest update to Yoast SEO I can no longer make the slug field under ‘Edit Snippet’ into a read-only. Does anyone know of a way to circumvent this so that I can return that functionality? I don’t really want our staff to be able to edit URL’s.
I used to be able to do this by altering the wp-seo-post-scraper-753.min.js file like this:
Original: <input type=”text” class=”snippet-editor__input snippet-editor__slug js-snippet-editor-slug” id=”snippet-editor-slug” value=”‘+u(o.snippetCite)+'” placeholder=”‘+u(i.urlPath)+'” />
Updated: <input type=”text” class=”snippet-editor__input snippet-editor__slug js-snippet-editor-slug” id=”snippet-editor-slug” value=”‘+u(o.snippetCite)+'” placeholder=”‘+u(i.urlPath)+'” readonly />
…but the new syntax to that file is not allowing that change.
Any help would be greatly appreciated!
- The topic ‘Turn Off Editing’ is closed to new replies.