OhhMuaOhhMua
  • Home
  • WordPress
    • Solutions & Troubleshooting
    • Installation & Setup
    • Themes & Plugins
    • Security
  • Tools
    • veo3 prompt generator
  • Our Team
  • Hosting
    • Best Web Hosting
    • Free Web Hosting
    • VPS Hosting
Reading: How to Create a Stunning Notification Box for Your Website
Notification Show More
OhhMuaOhhMua
  • WordPress
  • Entry-level Builds
  • High-end Builds
  • Mid-range Builds
  • Hardware Tips
  • Software Tips
Search
  • Home
  • WordPress
    • Installation & Setup
    • Security
    • Solutions & Troubleshooting
    • Themes & Plugins
  • Tools
    • veo3 prompt generator
  • Our Team
    • Hosting
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

Admin (Nghia Vo)
Last updated: September 20, 2024 1:44 pm
Admin (Nghia Vo)
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!

480520387 657957633334779 6814038772835954285 n
Admin (Nghia Vo)

Hi, I’m Nghia Vo: a computer hardware graduate, passionate PC hardware blogger, and entrepreneur with extensive hands-on experience building and upgrading computers for gaming, productivity, and business operations.
As the founder of Vonebuy.com, a verified ecommerce store under Vietnam’s Ministry of Industry and Trade, I combine my technical knowledge with real-world business applications to help users make confident decisions.

I specialize in no-nonsense guides on RAM overclocking, motherboard compatibility, SSD upgrades, and honest product reviews sharing everything I’ve tested and implemented for my customers and readers.

You Might Also Like

Is WordPress Dead or Still Powering the Web in 2026?

WordPress 6.9.2 Disaster: Why You Should Never Auto-Update Immediately

Headless WordPress Explained: Is It Right for Your Site?

WordPress 7.0 Finally Fixes 20 Years of Painful Collaboration Problems

Why Hetzner Might Not Be the Right Choice for Beginners

TAGGED:notification box
Share This Article
Facebook Twitter Email Print
By Admin (Nghia Vo)
Follow:
Hi, I’m Nghia Vo: a computer hardware graduate, passionate PC hardware blogger, and entrepreneur with extensive hands-on experience building and upgrading computers for gaming, productivity, and business operations. As the founder of Vonebuy.com, a verified ecommerce store under Vietnam's Ministry of Industry and Trade, I combine my technical knowledge with real-world business applications to help users make confident decisions. I specialize in no-nonsense guides on RAM overclocking, motherboard compatibility, SSD upgrades, and honest product reviews sharing everything I’ve tested and implemented for my customers and readers.
Leave a comment Leave a comment

Leave a Reply Cancel reply

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

Trending

How to Install and Use Google Analytics 4
Installation & Setup

How to Install and Use Google Analytics 4 (GA4) in 2025: A Step-by-Step Guide

April 21, 2025
HETZNER HOSTING
Solutions & Troubleshooting

Why Hetzner Might Not Be the Right Choice for Beginners

March 7, 2026
How to Make Google Understand and Value Your Content
Solutions & Troubleshooting

SEO in the Age of AI: How to Make Google Understand and Value Your Content

June 5, 2025
How to Pick the Ideal Blogging Platform for Your Needs
Solutions & Troubleshooting

How to Pick the Ideal Blogging Platform for Your Needs

April 1, 2025
How to Change WordPress Login URL Without Plugins
Solutions & Troubleshooting

How to Change WordPress Login URL Without Plugins (100% Success)

September 9, 2024
Internet Connected But Can't Access Some Websites
Software Tips

Internet Connected But Can’t Access Some Websites: Causes and Fixes

September 25, 2020
Previous Next

You Might Also Like

wordpress speed 2026
Solutions & Troubleshooting

WordPress Speed in 2026: The Only Hosting Checklist You Need

Admin (Nghia Vo) Admin (Nghia Vo) March 7, 2026
What Happens When Web Hosting Companies Get Acquired
Solutions & Troubleshooting

What Happens When Web Hosting Companies Get Acquired

Admin (Nghia Vo) Admin (Nghia Vo) March 6, 2026
wordpress shortcode 1
Solutions & Troubleshooting

WordPress Shortcodes: Complete Guide to Dynamic Content

Admin (Nghia Vo) Admin (Nghia Vo) March 4, 2026
Cannot Fetch Sitemap in Google Search Console
Solutions & Troubleshooting

Cannot Fetch Sitemap in Google Search Console

Admin (Nghia Vo) Admin (Nghia Vo) May 27, 2025
Discovered – Currently Not Indexed in Google Search Console
Solutions & Troubleshooting

Discovered – Currently Not Indexed in Google Search Console: What It Means & How to Fix It

Admin (Nghia Vo) Admin (Nghia Vo) May 25, 2025
Why 2 Backlinks per Article Might Be Killing Your SEO
Solutions & Troubleshooting

Why 2 Backlinks per Article Might Be Killing Your SEO

Admin (Nghia Vo) Admin (Nghia Vo) May 23, 2025
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
  • Editorial Standards
Welcome Back!

Sign in to your account

Lost your password?