OhhMuaOhhMua
  • Home
  • Hosting
    • Best Web Hosting
    • Free Web Hosting
    • VPS Hosting
  • WordPress
    • Solutions & Troubleshooting
    • Installation & Setup
    • Themes & Plugins
    • Security
  • Computer Tips
    • Gaming Errors & Solutions
    • PC Troubleshooting
    • Computer Hardware
  • Coupons & Deals
  • Contact Us
Reading: How to Create a Stunning Notification Box for Your Website
Share
Notification Show More
Font ResizerAa
OhhMuaOhhMua
Font ResizerAa
  • Computer Tips
  • Hosting
  • WordPress
Search
  • Home
  • WordPress
    • Installation & Setup
    • Security
    • Solutions & Troubleshooting
    • Themes & Plugins
    • Troubleshooting
  • Hosting
    • Free Web Hosting
    • VPS Hosting
    • Best Web Hosting
  • Computer Tips
    • Computer Hardware
  • Coupons & Deals
Have an existing account? Sign In
Follow US
Copyright © 2024 ohhmua. All rights reserved.
OhhMua > Blog > WordPress > Solutions & Troubleshooting > How to Create a Stunning Notification Box for Your Website
Solutions & Troubleshooting

How to Create a Stunning Notification Box for Your Website

ohhmua
Last updated: September 20, 2024 1:44 pm
ohhmua
Share
3 Min Read
Guide to Creating a Beautiful Promotion Notification Box for Your Website
Guide to Creating a Beautiful Promotion Notification Box for Your Website
SHARE
Contents
Step 1: Add HTML code to the desired positionStep 2: Add CSS code for stylingStep 3: Save and enjoy your results

Hello everyone, today I’ll guide you on how to create a beautiful promotion notification box for your website, as shown in the image below:

Guide to Creating a Beautiful Promotion Notification Box for Your Website
Guide to Creating a Beautiful Promotion Notification Box for Your Website

This tutorial is demonstrated on the Flatsome theme, using WooCommerce.

Step 1: Add HTML code to the desired position

Decide where you want to place the promotion box, then find that spot and get ready to copy the HTML code into it.

As shown in the image, the promotion notification box is positioned between the short description and the Add to Cart button. Therefore, the quickest way to add the HTML is:

In the Flatsome theme, go to Appearance – Customize – WooCommerce (shop) – Product Page – HTML before Add to Cart. Then, copy and paste the entire HTML code below into that section:

<div class="promotion-hb"> 
<span class="title"><i class="icon-gift"></i> Special Promotion</span> 
   <ul>
 	<li>30% off when registering for 3 years of hosting</li>
 	<li>10% off service fees when you like and share the website</li>
 	<li>Free online SEO writing course</li>
   </ul>
</div>
Guide to Creating a Beautiful Promotion Notification Box for Your Website 1

You can edit the content by changing the text within the <li> tags above!

Step 2: Add CSS code for styling

Go to Appearance – Customize – Style – Custom CSS and then add the CSS code below:

.promotion-hb {
	margin-bottom:2px;
	margin-top:2px;
	background:white;
	padding:10px;
	border-radius:5px;
	border:1px solid #ef0b0b;
	font-size:15px;
	width:100%;
}
.promotion-hb .title {
	background:#e31616;
	padding:2px 20px;
	margin-top:-24px;
	font-size:15px;
	font-weight:500;
	color:#ffffff;
	display:block;
	max-width:207px;
	border-radius:99px;
}
 
.promotion-hb ul {
   margin-bottom:4px;
   list-style-image:url(tick.png);	
}

Step 3: Save and enjoy your results

Good luck! If you encounter any difficulties, please feel free to comment, and I’ll assist you as soon as possible!

You Might Also Like

How to Add a “Read More” and “Show Less” Button to Product Descriptions in WooCommerce

Blog, E-Commerce, or Forum? WordPress Covers Every Website Type!

How I Optimized Pagination and Skyrocketed Traffic

How to Pick the Ideal Blogging Platform for Your Needs

Protecting Your WordPress Site from File Upload Vulnerabilities

TAGGED:notification box
Share This Article
Facebook Twitter Email Print
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending Stories

Fixing hasMerchantReturnPolicy and shippingDetails error for WooCommerce
Solutions & Troubleshooting

Fixing hasMerchantReturnPolicy and shippingDetails error for WooCommerce

September 14, 2024
Unboxing the seagate Ultra ssd
Computer Hardware

2TB in Your Pocket: Discover Seagate’s Ultra-Compact SSD

April 19, 2025
Guide to Choosing the Best Gaming CPU
Computer Hardware

Guide to Choosing the Best Gaming CPU

July 28, 2020
GPU Fan Not Spinning
Computer Hardware

GPU Fan Not Spinning: Causes and Solutions

July 22, 2023
Change 0 Price or Empty Price to 'Call for Price' in WooCommerce
Solutions & Troubleshooting

Change 0 Price or Empty Price to ‘Call for Price’ in WooCommerce

September 7, 2024
Contact button
Solutions & Troubleshooting

Contact button in the footer with added call button shake effect

September 21, 2024

You Might Also Like

Title and Meta Description Mismatch on Google
Solutions & Troubleshooting

Title and Meta Description Mismatch on Google[How to fix]

September 25, 2024
Create a Simple Incrementing Number Effect with HTML and JavaScript 2
Solutions & Troubleshooting

Create a Simple Incrementing Number Effect with HTML and JavaScript

September 17, 2024
Guide to Using Multiple Domains for One WordPress Website
Solutions & Troubleshooting

Guide to Using Multiple Domains for One WordPress Website

September 16, 2024
Customizing Canonical Tags in WordPress
Solutions & Troubleshooting

Step-by-Step Tutorial: Customizing Canonical Tags in WordPress

September 15, 2024
Previous Next
newsletter featured

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!

Follow US on Social Media

Facebook Youtube Steam Twitch Unity

Copyright © 2024 ohhmua. All rights reserved.

OhhMua

Information

  • About
  • Terms & Conditions
  • Privacy Policy
Welcome Back!

Sign in to your account

Lost your password?