Posted - 04/02/2021 : 08:12:05
I use a Content Region so the message that needs to be displayed is prominent & very easy to edit or delete & that's achieved by placing the content region in the .dwt file, or the page(s) your message needs to be visible on. Setting this up is no more than 10 minutes. Here's the HTML added to the .dwt file directly below the opening <body> tag & the message will appear at the very top on all webpages or the webpages you choose it to be shown on. </head> <body> <div class="mainWrapper"> <?php $regionid=2; ?> <?php include "vsadmin/inc/inccontentregion.php" ?><div class="headerWrapper"> <div class="top_row"> <div class="container"> <div class="row clearfix"> <div class="col-4a text-left topbarNav"> <a href="pay.php" class="paylink">Make a Payment</a> </div> The message to be added in the Content Region via the store admin, thus making editing / deleting a doddle <div class="alert"> Due to Covid 19, delivery timescales on some products is extended. You may contact us on or 00000 000000 to check. </div>Flavour the mix with adding a drop of CSS to the style.css file . alert { text-align: center; padding: 5px; background-color: #FFD51A; color: #000; margin-top: 2px; margin-bottom: 2px; font-weight: 300; } Upload the necessary site & CSS files via FTP & save the message to the Content Region & the end result looks like this. Steve Bolton Lancashire
Edited by - 1818charlie on 04/02/2021 08:12:52
|