2019-12-02, 04:04 PM
Add a new stylesheet with the name callout_guest.css:-
Now go to your current template=> Header template=> Header_welcomeblock_guest template.
and paste the mentioned code below at the end of the template.
<style>
body {font-family: Arial, Helvetica, sans-serif;}
.callout {
position: fixed;
bottom: 35px;
right: 20px;
margin-left: 20px;
max-width: 300px;
}
.callout-header {
padding: 25px 15px;
background: DARKSLATEGRAY;
font-size: 30px;
color: white;
}
.callout-container {
padding: 15px;
background-color: wheat;
color: black
}
.closebtn {
position: absolute;
top: 5px;
right: 15px;
color: white;
font-size: 30px;
cursor: pointer;
}
.closebtn:hover {
color: orangered;
}
</style>
Now go to your current template=> Header template=> Header_welcomeblock_guest template.
and paste the mentioned code below at the end of the template.
<div class="callout">
<div class="callout-header" align="center">Welcome</div>
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<div class="callout-container">
<p>You are here as guest, you must <a href="member.php?action=register">register</a> / <a href="member.php?action=login">login</a> to see full content of the website.</p>
</div>
</div>