• Resolved bopol

    (@bopol)


    Hello.

    For a clients website I want editors to have access to the ‘OceanWP Settings’ panel to select the right header from the template section.

    How can I do that?

    I don’t want to change the editors into administrators.

    Kind regards,
    Bob van der Pol.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, you can use this filter to change capabilities: “ocean_main_metaboxes_capabilities”

    Thread Starter bopol

    (@bopol)

    Hello OceanWP.

    Thanks for your answer.

    Sorry, I am not a technical guy.
    how do I use the filter “ocean_main_metaboxes_capabilities”.
    Is there a link to the info to use this filter?

    Kind regards,
    Bob van der Pol.

    • This reply was modified 6 years, 6 months ago by bopol.
    Theme Author oceanwp

    (@oceanwp)

    Hello, try this code in the functions.php file of your child theme:

    function metaboxes_capabilities() {
    	return 'publish_posts';
    }
    add_filter( 'ocean_main_metaboxes_capabilities', 'metaboxes_capabilities' );
    Thread Starter bopol

    (@bopol)

    WOW, this is great!
    It’s working. Of course ??

    Thanks a lot for the help and the great theme.
    I use your theme standard for all my clients.

    Keep up the good work.

    And again. Thank you so much!

    Kind regards,
    Bob van der Pol.

    • This reply was modified 6 years, 6 months ago by bopol.
    Theme Author oceanwp

    (@oceanwp)

    You’re welcome ??

    hello, sorry would you give me more detail. that code for all user capabilities or just for admin and editors only?

    Thank you

    Theme Author oceanwp

    (@oceanwp)

    Hello, for all users roles who have “publish_posts” capabilities.

    I applied this code in functions.php.

    function metaboxes_capabilities() {
    return ‘publish_posts’;
    }
    add_filter( ‘ocean_main_metaboxes_capabilities’, ‘metaboxes_capabilities’ );

    it worked and enabled oceanwp layout settings as required. But when press the update button system does not allow save the changes. gives an error “access denied”. Please help me to allow permission users to update elementor editings.

    Theme Author oceanwp

    (@oceanwp)

    Hello @bimalachira, I don’t recommend to add code via the WP editor for this particular issue, add this code via your text editor and to upload it to your child theme via FTP. Or you can also use a code snippet plugin for this kind of codes.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Making OceanWP settings available for editors’ is closed to new replies.