0

I'm looking for a way to display entries from a channel as a message on the homepage that are able to be hidden once the visitor has read it. Anyone know of a simple way to achieve this or an add-on that would help? Thanks!

1 Answer 1

1

This really is a questions about HTML/CSS/JavaScript.

From the EE side, in the past I've used a global variable to allow the admins to set a message to be displayed.

Then in the template you just have a conditional surrounding the appropriate markup.

{if gv_important_message != ""}
<div class="message">
    <p>{gv_important_message}</p>
</div>
{/if}

Obviously the markup would be dependent on the design of the site and your CSS, but this is the general idea.

1
  • 1
    Indeed, this is a front-end question, not a backend/EE question. Modals / pop-up box libraries abound, google should get you pointed in the right direction. Mar 27, 2014 at 22:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.