Front-end Editor
[resolved] Editors role cannot edit widgets (5 posts)

  1. swingarody
    Posted 5 years ago #

    Hi there,

    I installed this plugin specifically for clients who aren't tech savvy so they don't have to go to backend, but the editor role doesn't allow them to edit the widgets like an admin. the "edit" option doesn't even show up.

    Page edits work fine.
    Can you please show me how to resolve this?


  2. scribu
    Plugin Author

    Posted 5 years ago #

    You need to give the editor role the edit_theme_options capability.

    This can be done with a plugin, such as Capability Manager.

  3. swingarody
    Posted 5 years ago #

    You're a legend.
    I have another question though. When I go to edit the HTML widgets, it keeps adding extra <br> tags on the lines.. is there a way to disable that?

  4. scribu
    Plugin Author

    Posted 5 years ago #

    Hm... create a HTML widget from WP Admin with some content (A).

    Open the same widget for editing on the front-end and click Save, without changing anything.

    Go back to WP Admin and see what the content looks like now (B).

    Paste both states of the content (A) and (B) here.

  5. swingarody
    Posted 5 years ago #

    Ah, I just figured it out.

    When you type in the edit box from front-end, the output looks like this:
    text<br>more text<br>bla bla bla

    But if you type code in html, every new line gets translated into br lines. so this:

    more text<br>
    bla bla bla

    becomes this:

    more text<br><br>
    bla bla bla

    So if I want to edit from Admin > Widgets page, I need to wrap the text in <p> tags and make sure it's on one line, like this:

    <p>text<br>more text<br>bla bla bla</p>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Front-end Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic