Hello,
I'd like to hide the theme option from users, but I don't see how! I tried some plugins but additional options are still there!
This is just to avoid non-admins play with theme options.
Any idea?
Thanks
function suffu_scion_theme_setup() {
// If you want to disable the "Additional Options for Suffusion" box:
// remove_theme_support('suffusion-additional-options');suffusionner wrote:I downloaded the child theme and found descriptions of what we can do but it doesn't said how we can do it!
function suffu_scion_theme_setup() {
// If you want to disable the "Additional Options for Suffusion" box:
remove_theme_support('suffusion-additional-options');drake wrote:
By paying someone who knows WordPress?![]()
![]()
![]()
drake wrote:It's simple, just un-comment the filter (delete the backslashes before remove_theme_support). Your new function will look:
- Code: Select all
function suffu_scion_theme_setup() {
// If you want to disable the "Additional Options for Suffusion" box:
remove_theme_support('suffusion-additional-options');
Save
Don't make any other change, don't press space or enter key when you are in the file.
drake wrote:
(tonight I will try to make some time for replying to your question about the pages/categories/menu)
function suffu_scion_theme_setup() {
// If you want to disable the "Additional Options for Suffusion" box:
if( !current_user_can('administrator') ) {
// true if user is not admin
remove_theme_support('suffusion-additional-options');
}
Users browsing this forum: Abargeate, boormebra, Google [Bot] and 9 guests