Hello,
I have found two posts on this topic, but they are very old:
The solution “You can copy the whole avia_adminpages class to your child functions.php” doesn’t work for me.
What exactly do I have to write in the functions.php, to change
Line 219: and line 233:
'manage_options', // capability
`
in:
'edit_theme_options', // capability
`
Best regards,
Neverlands
Hey Neverlands,
Thank you for the inquiry.
The suggestion is to use the plugin https://wordpress.org/plugins/members/, edit the “Editor” role, and add more capabilities to it until the Theme Options panel shows up. Did you try this?
Best regards,
Ismael
Hi Ismael,
I’ve seen this suggestion before, but by giving the “Editor” role ‘manage_options’ they also get access to the general settings, and I want to avoid that. For me, the more elegant solution would be to lower the rights request in the Enfold Child theme via functions.php to ‘edit_theme_options’.
Best regards,
Marion
Hi,
Thank you for the update
Unfortunately, you cannot modify or override the class avia_adminpages in the child theme. You may need to manually override the capability value in the parent file. Also, please note that edit_theme_options is not included in the capabilities of Editor roles by default. You can find a list of capabilities in the following link: https://wordpress.org/documentation/article/roles-and-capabilities/#editor
Best regards,
Ismael