how to give access only to the "ads section in theme panel"

Posted in: Newspaper
Post count: 12

Hi,
can you let me know how i can give my client access to only the “ads” section in the theme panel?
the only thing he is willing to do is change the different ads on his site.
Or do you have another solution so he can change his ads ?
thx

Post count: 20688

Hi,

The theme panel is accessible only to admin level users. Other user roles cannot access the theme panel. You cannot have parts of the theme panel available to users. So if he is an admin he will have access to all the panel, including the ads section.
There are no options to modify this functionality, admins will always be allowed to the panel as a whole.

Thanks

Post count: 12

Hi,
Thx for your reply.
You don’t have a solution or a workaround so the client can just change the ads ?

Post count: 20688

Hi,

You could try something, but it involves modifying a theme file. This is where the theme panel sections are defined
https://www.screencast.com/t/Xrg9SQgJ0QVk
If you were to comment all the other section and leave only the Ads section, like this
https://www.screencast.com/t/uFlxNFGd
https://www.screencast.com/t/nhkWHG7PC6
The result would be like this – https://www.screencast.com/t/yXjmFho6

Thanks

Post count: 12

Thx Simion for the workaround.
Just one more question is it possible to remain all visible to the admin as it is now and just the Ads section to “editor”?

Post count: 20688

Hi,

Editors will not have access to the theme panel. That workaround is for admin level users. The theme uses the default WordPress user roles and capabilities
https://codex.wordpress.org/Roles_and_Capabilities
This is where the condition is made in the theme regarding the theme panel
https://www.screencast.com/t/JpVVhtUGOox

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.