WordPress.org

Forums

Custom Sidebars
[resolved] Author can't set custom sidebar?? (9 posts)

  1. singout
    Member
    Posted 1 year ago #

    My testing with the plugin seemed to work great ... but I need to be able to have authors creating new posts select and save their sidebar selection. If *I* do it with admin privileges it works fine. If a blogger with "Author" privileges tries it, it reverts back to the standard sidebar as soon as they save their draft *or* publish a post.

    Is there a way to set the privileges for who can make the sidebar selection?

    Here's an example page with the *standard* sidebar:
    http://singout.org/news/

    Here's an example page with the *custom* sidebar:
    http://singout.org/ronolesko/

    Not sure how to show you the edit screen ... but the dropdown is *there* it just won't let you save.

    https://wordpress.org/plugins/custom-sidebars/

  2. David
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hi @singout,

    I hope you're doing great today! Thanks for posting on this. Could I ask if you've tried other user roles? Perhaps an Editor role?

    I'll take a look at the code to see if there are restrictions with other roles, but I don't recall so.

    Thanks,
    David

  3. singout
    Member
    Posted 1 year ago #

    It works fine as an ADMINISTRATOR, the only level above AUTHOR. CONTRIBUTOR doesn't even have many of the rights an AUTHOR has.

  4. Ashok WPMU
    WPMU DEV Support Staff
    Posted 1 year ago #

    Hi @singout

    Please go to /wp-content/plugins/custom-sidebars/customsidebars.php line no 33:
    Change
    var $cap_required = 'switch_themes';
    to
    var $cap_required = 'publish_posts';

    Now all user who can publish a post, can set the sidebar.

    Please check and let us know.

    Cheers
    Ash

  5. Hey there.

    We haven't heard from you in awhile, so I just wanted to check in to make sure all was good.

    This thread was marked resolved, but please, if you still need help then just respond and open it back up. We can then take it from there. :)

    Hope you have a fantastic day!

  6. singout
    Member
    Posted 1 year ago #

    THANKS ... that worked.

    Sorry for the delay in responding ... I didn't get any notice about the reply.

    One additional question: Will this change be permanent? Or will it reset every time I update the plugin? Should I add something to my child theme so it doesn't reset?

  7. Ashok WPMU
    WPMU DEV Support Staff
    Posted 1 year ago #

    Please note that, this changes will be lost in next update. So it's worth to note down this changes somewhere and apply again after your updates.

  8. David
    WPMU DEV Support Staff
    Posted 1 year ago #

    Just noting here too, we've mentioned this to the developer to have a look at possibly altering the current capability setting, so hopefully an adjustment wouldn't be needed in that case. :)

  9. singout
    Member
    Posted 1 year ago #

    Awesome! Thanks to you both for the help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Sidebars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic