Closed (won't fix)
Project:
Open Social
Version:
8.x-7.x-dev
Component:
Code (back-end)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2019 at 19:43 UTC
Updated:
30 Sep 2019 at 14:59 UTC
Jump to comment: Most recent
Comments
Comment #2
tepelena commentedI am looking at this file
/profiles/contrib/social/modules/social_features/social_user/src/Plugin/Block/AccountHeaderBlock.php
How do I modify this code to hide the + Add new content button from the main navigation.
Comment #3
tepelena commentedBtw since it may be too much work to modify this menu.
Can you add an option under Navigation Settings to Hide it?
Same thing as My Groups. Administration Configuration Open Social Settings
Display the Create New Content icon in the main navigation
Comment #4
tepelena commentedTemporary solution.
CSS
Edit: //public_html/profiles/contrib/social/themes/socialblue/assets/css/base.css
Add
.navbar-user ul > li:first-child {
display:none !Important;
}
Comment #5
xinyuma commentedHello,
Would you mind to explain why you would like to have the '+' button removed? This button is designed to make it easier for community members to create content.
Thank you!
Comment #6
xinyuma commentedComment #7
tepelena commentedWe have multiple content types that the user can create.
Also we are not using groups.
We have created our own Add menu that excludes groups and has other content types that can be added.
There are menu items in OS that are hard coded. This is not ideal. We can use drupal menu to customize menus as needed.
Comment #8
xinyuma commentedGood point!
Comment #9
jaapjan commentedWe are making some assumptions for this menu, that's right. But if your custom use-case is not suitable there are many ways to adjust as needed.
You can create a custom block based on
AccountHeaderBlockand alter any way you like.The + is not a menu, but a block by design. You can disable/remove the block on the normal block administration page
/admin/structure/block. Hope that helps!