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 (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Button to hide when empty

  • Hi there,

    Is there a way to hide the button when using a shortcode for the URL and the URL is empty?

    Kind regards,


  • Hi there,

    is it possible to see this button on the site ?

  • I have it disabled at the moment as does not work and don’t want it affecting the live end?

  • try this:

    1. Add this CSS:

    a.hide-on-no-url[href=""] {
        display: none !important;

    2. select the button and give it a CSS Class of: hide-on-no-url

    If the markup of that button is an <a> that has an empty href then that should hide it.

  • Yes that seems to work thank you! (without the ‘a’).

  • Glad to hear that ( i updated my CSS above as it had a mistake 🙂 )

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