[Support request] One live and one disabled hook?

Home Forums Support One live and one disabled hook?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #368993
    Michele

    I have 2 hooks that I want to put in Before Header (in the Premium plugin.) There an mother organization banner that I want to always display, and some alert text that I want to keep disabled, unless there is a problem I need to alert users about. Basically one is always on and the other usually disabled. What’s the best way to do this?

    GeneratePress 1.4
    GP Premium 1.4.3
    #369008
    Leo
    Staff
    Customer Support

    Hi there,

    You can wrap the alert text in a div like this:

    <div class="alert-text">
        alert text here
    </div>

    Then use CSS to hide it when you need to:

    .alert-text {
        display: none;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.