• Resolved enorthrop

    (@enorthrop)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support devnihil

    (@devnihil)

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Plugin Support amboutwe

    (@amboutwe)

    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to re-open this topic. Please read this post before open a new request.

    Thanks for understanding!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Turn Off Editing’ is closed to new replies.