HTML Blocks are a custom post type that allows you to build reusable templates and place them anywhere on your website using shortcodes, widgets, or theme options.
With HTML Blocks, you can create:
- Individual elements
- Full templates
- Landing pages
- Popups, banners, and dynamic sections
These blocks can then be inserted anywhere a shortcode or widget is supported.
HTML Blocks are fully compatible with WPBakery Page Builder and Elementor.
Creating an HTML Block #
HTML Blocks are created like regular posts:
Dashboard → HTML Blocks → Add New
Where You Can Use HTML Blocks #
Below are common use cases and locations where HTML Blocks can be applied in the Omniverse Theme.
Header Builder #
HTML Blocks can be inserted inside the Header Builder using the HTML Block element.
This allows you to add elements that are not available by default in the Header Builder, such as:
- Popups
- Custom icons
- Countdown timers
- Custom buttons or banners
Mega Menu #
Mega Menus extend the default WordPress dropdown menu by allowing rich content such as:
- Promotional products
- Images and banners
- Styled menu items
How to set it up: #
Appearance → Menus → Select Menu → Choose Menu Item → Assign HTML Block from dropdown
Age Verification Popup #
HTML Blocks can replace the default text-based age verification message and include:
- Images
- Banners
- Buttons
- Custom layouts built with WPBakery or Elementor
⚠️ When inserting an HTML Block via shortcode, consider the Text Color Scheme option, as it affects the block’s content colors.
Main Footer #
Depending on the footer layout selected in:
Theme Options → Footer
You may have one or multiple footer columns, each capable of displaying different HTML Blocks such as:
- Newsletter forms
- Contact information
- Google Maps
- Bestsellers or featured products
HTML Blocks can be assigned via:
Appearance → Widgets → Omniverse HTML Block Widget
They can also be placed in any sidebar.
Responsive Footer Layouts #
HTML Blocks allow different footer layouts for desktop and mobile using:
- WPBakery responsive column visibility
- Separate blocks for different devices
Pre-Footer Area #
Theme Options → Footer → Pre-Footer Area
- HTML Before Footer – Used for brand carousels, promotional blocks, or service highlights (delivery, payment, support, etc.)
Text Next to Copyright #
Theme Options → Footer → Text Next to Copyrights
This option is commonly used to insert:
- Language switchers
- Currency switchers
- Shortcodes
- Popup triggers
Empty Cart Content #
Theme Options → Shop → Empty Cart Text
Add extra elements to the empty cart page such as:
- Helpful links
- Buttons
- Promotional messages
- Custom layouts
Promo Popup #
Configured in:
Theme Options → General → Promo Popup
Promo popups can include:
- Sale or hot product promotions
- Subscription forms
- Contact forms
- Any custom HTML Block content
Header Banner #
Enabled and configured in:
Theme Options → Shop → Header Banner
Ideal for:
- Notifications
- Icons and buttons
- Popups
- Countdown timers
- Promotional messages
Thank You Page (WooCommerce) #
Theme Options → Shop → Thank You Page
- HTML Block content appears before the default WooCommerce Thank You content
- Option available to disable default order details and display only custom content
Before & After “Add to Cart” Button #
Theme Options → Single Product → Add to Cart Options
- Before Add to Cart Button
- After Add to Cart Button
Perfect for adding:
- Trust badges
- Extra product information
- Buttons or popups
- Promotional notices
Legacy Tabs (Global Product Tabs) #
Theme Options → Single Product → Tabs → Legacy Tabs
Create global product tabs (e.g. Shipping & Delivery) that:
- Have a custom title
- Contain any HTML Block content
- Appear on all products
Custom Product Tabs (Per Product) #
Each product has its own option to add a custom tab, displayed alongside:
- Description
- Additional Information
- Reviews
Useful for:
- Special conditions
- Technical specifications
- Warranty or care instructions
Extra Content Options (Product Pages) #
Available in Product Settings (Theme Metabox):
- Extra Content Block – Select an HTML Block
- Extra Content Position:
- Before Content
- After Content
- Pre-Footer
Landing Pages & Promotional Pages #
HTML Blocks allow you to create:
- Promotional pages
- Landing pages
- Campaign layouts
Thanks to flexible placement and unlimited content volume, entire page structures can be built using HTML Blocks.
Pages, Posts & Products #
HTML Blocks can be inserted into:
- Pages
- Posts
- Products
- Other HTML Blocks
Using:
- WPBakery Raw HTML element
- Elementor Shortcode widget
Best Practice #
The recommended approach is to save HTML Blocks as templates and insert them from the template library.
Saving & Reusing Templates #
You can save:
- Entire HTML Blocks
- Individual sections
- Rows
Then insert them anywhere using the Template Library.
Categories, Attributes & Tags #
HTML Blocks can be added to:
- Product categories
- Attributes
- Tags
By inserting the HTML Block shortcode into the Description field.
This is commonly used to create:
- Eye-catching banners
- Promotional content
- Category-specific layouts
Widgets & Sidebars #
WooCommerce filter widgets are usually limited to shop pages. Omniverse allows filters to be displayed anywhere using Custom Filter Forms.
One common setup: #
- Add filters to an HTML Block
- Insert that block into any sidebar using:
Appearance → Widgets → Omniverse HTML Block Widget
Light Mobile Page Template #
To display different content on mobile devices:
- Create a mobile-optimized page using an HTML Block
- Assign it from:
Page Settings → Mobile Version HTML Block
This allows you to show a lightweight or simplified page layout on mobile only.