-
Anonymous
Hallo!
Wir verwenden für einige Websites eine Erweiterung, die uns den Bereich im Login anpassen lassen. Nach einem der letzten Updates ist nun im Bereich von Beiträgen und Seiten die Funktion von GenerateBlocks hinzugekommen. Das möchte ich optional zwingend deaktivieren können. Bitte um Info, wie das zum Beispiel über die Rechte der Nutzer möglich ist.
Viele Grüße
-
Hi there,
Sorry but I don’t understand the question based on your description.
Is this something viewable on the front end? If so, can you link me to the page in question using the private URL field?
-
Anonymous
Hi,
no, it is not visible in the frontend. Only for logged in people. But an editor should not have the opportunity to influence these design elements. The backend is white label and cleaned to the essential functions.
-
Sorry I’m still not sure what the issue is here.
Can you explain it a bit more and maybe provide some screenshots?
There haven’t been any changes in the editor in recent updates but you can take a look here:
https://generateblocks.com/generateblocks-1-9-0/
https://generateblocks.com/generateblocks-pro-1-7-0/Let me know if you see the change you are referring to 🙂
-
Anonymous
Hi,
i made a screenshot and paste the link in the private field.
The question is, if it´s possible to hide the button in the backend. -
Alvind
Hi there,
Unfortunately, there is no way to hide that button. Using CSS might be feasible, but it’s still challenging to figure out the right CSS selector because there are no IDs or classes on the option elements.
-
Anonymous
Hello Alvin, if you can make the effort I will be grateful. It would mean a lot to us and be a big improvement! Thanks for the renewed information.
-
Hi there,
Try this PHP snippet:
wp_add_inline_style( 'wp-block-library', '.edit-post-header__settings .interface-pinned-items button.components-button.is-compact.has-icon { display:none; }' );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Let me know if this helps! -
Anonymous
Hi. The problem is that the code hides all elements except “Preview”, “View Post” and “Update”. I put the screenshots in the sharepoint. Unfortunately that doesn’t solve my problem. I will probably have to speak to a developer about a custom solution. Please understand that this is how we proceed and try to show as few technical details as possible in the backend. Do you want to work on another solution or is this beyond support?
-
I see, you have other items in the area, in that case, it’s not possible to target the GB icon unless use
:nth-child(2)
, but if any other plugins add icons to that area in the future, the CSS might wrongly hide other items instead the GB one, so it’s not a great solution. -
Anonymous
What would the code snippet look like for testing? I need to document it well, but it would be a temporary possibility. I’ll experiment with a personalized dashboard when I get the chance.
-
Try this:
wp_add_inline_style( 'wp-block-library', '.edit-post-header__settings .interface-pinned-items button.components-button.is-compact.has-icon:nth-child(2) { display:none; }' );
If it does not work, then I will need to see the editor in the backend to determine the CSS.
-
Anonymous
Hi. It works, but finally the function is not hidden in the sidebar menu. I made another screenshot and saved it in the sharepoint. Thanks and let´s close the ticket for now. Love the support like always ❤️
-
You are welcome 🙂
-
Anonymous
Hi,
i wanna come back to this ticket.
Could you please take a look at a website, where it would be very helpful!
Login data in the private field.Thanks for feedback!
-
Alvind
Hi there again,
Could you refresh our memory on what you’re trying to accomplish? I’ve gone through this topic but can’t identify the actual issue, and I don’t see any screenshots provided either.
- You must be logged in to reply to this topic.