WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Having problem in Suffusion with Multiple Authors ? (10 posts)

  1. inderjeets
    Member
    Posted 3 years ago #

    Hii, Suffusion theme is excellent, but I'm having trouble when my authors use add new post option in Dashboard. I wanna hide additional options for suffusion for them there. Is there any way so that they can't see the box ?

  2. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Authors are Admins?
    If you give them an actual Author role, they will not see the theme options. However that might not be the case if you have any custom fields in the theme itself, simply because they will appear while the Author writes/publishes new post.

    Author's can:
    Roles and Capabilities

  3. inderjeets
    Member
    Posted 3 years ago #

    Thanks Emil for commenting! But, I've just set an Author's role for them. Still, it's showing-up.

  4. Sayontan Sinha
    Member
    Posted 3 years ago #

    However that might not be the case if you have any custom fields in the theme itself, simply because they will appear while the Author writes/publishes new post.

    That is exactly what it is. The Additional Options section is a "meta box" in the Edit Page / Edit Post screen, which lets users set custom fields like a thumbnail, or an alternative title to display in the navigation menu etc.

    @inderjeets,
    From your description it is not clear as to who on your site should have rights to change the custom fields. The easiest way to do this is to modify the suffusion_add_page_fields function in functions.php to say something like this:

    function suffusion_add_page_fields() {
    	if (current_user_can('edit_theme_options')) {
    		add_meta_box('suffusion-page-box', 'Additional Options for Suffusion', 'suffusion_page_extras', 'page', 'normal', 'high');
    		add_meta_box('suffusion-post-box', 'Additional Options for Suffusion', 'suffusion_post_extras', 'post', 'normal', 'high');
    	}
    }

    Mind you, an author would still be able to replicate the whole functionality in the meta boxes by simply adding the same fields through the "Custom Fields" section lower down in the Edit Page / Edit Post screen, so I don't see the point of the above code.

  5. inderjeets
    Member
    Posted 3 years ago #

    Thanks a lot Sayontan for commenting !

  6. inderjeets
    Member
    Posted 3 years ago #

    Hello Sayontan Sinha ! Hope, you will be fine. If I wanna hide additional options for suffusion for everyone including admin. while adding new posts.

    What should I edit ? Please tell, coz it's really getting messy!

  7. Sayontan Sinha
    Member
    Posted 3 years ago #

    You can comment out the two lines that say add_meta_box, by adding // before them.

    However, as mentioned earlier be warned that you are not really achieving anything by blocking out the box. As a person authorized to edit posts/pages I can still make use of the Custom Fields box below in your Edit Page/Edit Post screen and replicate the same functionality there.

  8. inderjeets
    Member
    Posted 3 years ago #

    Thanks a lot Sayontan ! Still, it's good option for me, because I haven't given authors enough rights to edit their posts.

    Yous support forum is awesome, and certainly praiseworthy !

  9. skyelarhodgkinson
    Member
    Posted 3 years ago #

    I know this is not related to this post but I just wanted to say I LOVE the suffusion and I hope everyone buys you lots of coffees!

  10. inderjeets
    Member
    Posted 3 years ago #

    Yeah! It is amazing theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags