Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

GenerateBlocks Button ausblenden

  • 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?

  • 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 🙂

  • 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.

  • 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.

  • 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!

  • 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.

  • 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.

  • 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   🙂

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.