Skip to main content

Hide Create Post section

Hello,

I've configured a space so that only admins and moderators can create posts.

However, the "Create post" section is still visible to regular users when they enter the space.

Is there a way to hide this from them?

Thanks!

Thomas Oates

You're talking about the "What's happening.." box at the top, correct? If so, I'm not seeing this happen with my site. Spaces that have the admins/mods can create posts checked do not show the "What's happening..." box at the top.

J V

Thomas is right. No bug here, maybe cache issue.

rolo

Sorry, you are right. If I enter the space, the "Whats happening..." box is hidden.

I need my users to only see that box inside spaces where they are allow to post
I need to hide the box in /portal home (Feed page)

Is it possible?

Thanks!

J V

Not sure you can hide it in feed, however you can set it so global posting is not allowed. So then they always have to select a space to post into. You can find it in the settings.

Thomas Oates

roloΒ I use this CSS to hide it in the main feed.

body[data-route="all_feeds"] div.create_status_holder {
    display: none !important;
}

J V

Thomas OatesΒ This hides all boxes. Everywhere! ;)

Thomas Oates

J VΒ Strange....on my site, it only removes that box on the main feed. That is what the data-route part is for. I also just copied/pasted it into a browser css add-on and it works for this site as well.

J V

Thomas OatesΒ Sorry wrong reply.

rolo

In my settings, the option Enable Global Posts Status Form is not selected
Seems this setting is not working.
I finally used this css.
Thanks anyway!

/*. Hide new post box from Feed*/
.create_status_holder {
    display: none;
}

J V

It is working, but it doesn't hide the box. it just makes people choose a space before they can post.
I believe the code makes the box hidden all over. Better check! Try Thomas' code.