Powerful Blogger Shortcodes to Level Up Your Content
TemplateRise offers a rich collection of ready-to-use shortcodes for Blogger, making it easier than ever to add professional features and designs to your blog. Whether you're looking to create a mega menu, call-to-action button, table of contents, contact form, or display code snippets — our shortcode system helps you do it all without writing complex HTML. Simply copy, paste, and customize.
Mega Menu Posts
Create dynamic mega menu with posts from specific categories for enhanced navigation.
📝 Notes for Mega Menu Shortcode
type="mega-menu"– Tells the system to render a mega menu block.label="News"– Loads posts that have the label "News" (this is not the menu tab title).- Label is case-sensitive – For example,
label="news"andlabel="News"are treated as different labels. - Label is optional – If the label is not set, the system will automatically display the most recent posts.
count="4"(optional) – Limits the number of posts displayed. If omitted, the default is 4.
Use [type="mega-menu" label="News"] to display the latest 4 posts with the 'News' label in a mega menu block.
Use [type="mega-menu"] to display the latest 4 recent posts when no label is specified.
Action Buttons
Use the [type="button"] shortcode to create beautiful call-to-action buttons in your Blogger posts or templates.
Basic Syntax
Basic Button
With Background Color
With Icon
Open in New Tab
With All Options
| 🧩 Attribute | Required | Description | Example | Default |
|---|---|---|---|---|
text |
✅ Yes | Button label/text | text="Download" |
"Click" |
url |
✅ Yes | URL the button should link to | url="https://example.com" |
"#" |
bg |
❌ No | Background color in hex format | bg="#22c55e" |
"#7c3aed" |
icon |
❌ No | HTML for an icon (e.g., Bootstrap Icon) | icon="<i class='bi bi-download'></i>" |
none |
target |
❌ No | Open in new tab if true | target="true" |
false |
direction |
❌ No | Text/icon alignment (left/right/center) | direction="right" |
left |
🔔 Note on Using Bootstrap Icons
-
Use the correct icon syntax:
In theiconattribute, include a valid<i>tag using Bootstrap icon classes.
✅ Correct:
icon="<i class='bi bi-download'></i>"
❌ Incorrect:
icon="<i class="bi bi-download"></i>"(Avoid double quote conflict) -
Icon placement:
The icon will appear before the button text, like:
-
Find Bootstrap icons:
Browse and copy icon names from the official library:
https://icons.getbootstrap.com
Alert Messages
Display important messages with different alert styles for various purposes.
Success Alert
Warning Alert
Error Alert
Info Alert
Notes
- The icon="true" option will display a Bootstrap Icon matching the alert type.
- If icon is not set or set to "false", the icon will be hidden.
- You can use multiple alert boxes on the same page.
Blockquote
Create beautiful blockquotes with author attribution for highlighting important quotes.
Code Block
Display code snippets with syntax highlighting for various programming languages.
<div class="example"><h1>Hello World</h1></div>
Table of Contents
Automatically generate a table of contents based on your post headings.
Contact Form
Add a customizable contact form to any page or post.
Drop Caps
Make the first letter of your paragraph large and stylish using the Drop Caps shortcode.
This will render the first letter (L) in a large, decorative style.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae leo.
Table
The [type="table"] shortcode lets you create responsive tables easily using a clean and readable format.
[row] Value 1 | Value 2 | Value 3 [/row]
[row] Value 1 | Value 2 | Value 3 [/row]
...
[/type]
Notes
- Use commas in the columns="..." attribute to define your headers.
- Use [row] ... [/row] for each data row.
- Use | to separate values inside each [row].
| Name | Age | Country |
|---|---|---|
| Alice | 25 | USA |
| Bob | 30 | Canada |
| Charlie | 28 | Australia |
Note: These shortcodes are designed to work only with TemplateRise Blogger themes.