Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author scribu

    (@scribu)

    You need to give the editor role the edit_theme_options capability.

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

    Thread Starter swingarody

    (@swingarody)

    thanks,
    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?

    Plugin Author scribu

    (@scribu)

    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.

    Thread Starter swingarody

    (@swingarody)

    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:

    text<br>
    more text<br>
    bla bla bla

    becomes this:

    text<br><br>
    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>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Front-end Editor] Editors role cannot edit widgets’ is closed to new replies.