• Resolved sitehatchery

    (@sitehatchery)


    I use this plugin every time a client needs to add a site message above the header. It works fine, but it would be nice if there as a way to simply enable, disable the header instead of completely deleting the content or hiding it by commenting out the message or adding a display flag in CSS – both of which mean that the html for the plugin is added to the DOM. So that I can retain the custom styling that I added to the message without completely deleting it when I don’t need to have the global message, What I usually do is disable the plugin completely until I need it again. Unfortunately, this also means that I am not taking advantage of the other features of this plugin. I’m using it for simple temporary global messages and I think that you are intending it to be more of a permanent solution for a website.

    In any case, it would be preferable if I could simply click a checkbox or a button to enable/disable an injection block.

Viewing 1 replies (of 1 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    You can use a piece of PHP conditional code:
    <?php if (true) { ?>
    your code
    <?php } ?>

    You can even reference a variable or an option.

    Stefano.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable and not delete’ is closed to new replies.