LATEST STORIES

Showing posts with label Shortcode. Show all posts
Showing posts with label Shortcode. Show all posts

Font Awesome Shortcodes — Add Icons Easily!

Font Awesome ShortcodesIntroduction of Shortcodes Plugin for Blogger blogs was our biggest contribution to Blogspot community last year and to make sure we continue providing free support and development to the plugin, we are releasing some new shortcodes to make your content writing hobby even more worthwhile in 2016. Today we are releasing Font Awesome Icons Shortcodes, that will help you add FontAwesome Icons anywhere on your blog with a simple one liner textual code. You can now add FontAwesome vector icons inside Blog posts, sidebar content, sidebar headlines, header description and exclusively inside blogger comments box! The plugin includes the latest dynamically updated github source link to fontawesome library to make sure your blog keeps supporting all new icons and aliases added in the official icons directory. Lets first see its demo in action!

Note: The premium version of this shortcode plugin works with any CMS platform like WordPress, joomla, drupal or any HTML site. Contact us for a quotation.

1. Install Blogger Shortcode Plugin

In order to use FontAwesome shortcode you must first install the shortcode plugin for your blogger blog by following 7 easy steps shared inside the link below:

Skip installing this plugin if you have already added it in your blogspot template

2. How To Add Font Awesome Shortcode?

With this shortcode, you will be able to customize your icons in 8 different ways.

STYLE DEMO SHORTCODE
Flip it:
[icon name="youtube" flip="vertical"/]
Pulse it:
[icon name="spinner" animation="pulse"/]
Rotate it:
[icon name="thumbs-up" rotate="90"/]
Resize it:
[icon name="tag" size="3x"/]
Spin it:
[icon name="cog" animation="spin"/] 
Link it:
<a href="#">[icon name="home"/]</a>
Color it:
[icon name="shopping-cart" color="#65C002"/]
Give Fix Width:
[icon name="users" fix="fw"/]

The third column above shows the syntax on how to write down your Icon Shortcode. You can add it easily in both compose mode or Source/HTML mode of your blogger editor. Lets discuss the attributes in detail:

  1. Type Icon name inside name attribute. Full list of icon names can be found here.
  2. Use size attribute to increase icon sizes relative to their container. Size values supported are lg (33% increase), 2x, 3x, 4x, and 5x.
  3. Use fix to set icons at a fixed width. Useful when different icon widths go off alignment. Especially useful in things like nav lists & list groups. Set value as fw
  4. Use the animation attribute to get any icon to spin, or to have the icon rotate with 8 steps by setting it to pulse.
  5. To arbitrarily rotate icons, use the rotate attribute. Set value to following degree directions 90, 180, 270.
  6. To flip icons vertically or horizontally use flip. Set value to either horizontal or vertical.
  7. To change color of icon use color attribute. You can use web standard color names by simply typing orange, red, blue etc or you can use hexadecimal color codes.
  8. To hyperlink an icon simply enclose the shortcode inside href a tags.

You can also use the icons inside the other shortcodes list that we shared. For example to create a button with facebook, twitter, google-plus icon inside it, we will simply use button shortcode followed by Fontawesome shortcode.

INPUT:

[button size="medium" color="fb"] [icon name="facebook"/] Like [/button]
[button size="medium" color="blue"] [icon name="twitter"/] Follow [/button]
[button size="medium" color="red"] [icon name="google-plus"/] Follow [/button]

OUTPUT:

buttons created using fontawesome shortcode

Wasn't that easy? =)

Need Help?

I hope you find this most demanded FontAwesome shortcode useful for your content writing and blogging hobby. Let me know if you needed any help in understanding any part of the above tutorial. Feel free to leave your precious feedback. Peace and blessings buddies! =)

More

Horizontal Divider Line With Back-To-Top Button - [Shortcode]

Horizontal Divider ShortcodeYou are quite aware with HTML hr tag that defines a thematic break in a HTML page that can be a shift of topic or a section division.  The hr element is used to separate content in an HTML page. While writing blog posts, it makes a lot of sense to format your content well and present long lengthy content in sections rather in a single plain text, in such case CSS3 Dividers help a lot and to make it even more effective, we have included a smooth scrolling back-to-top link in the horizontal divider that takes a user back to the top of the page content. The BacktoTop button will display only when the content is long enough else it will auto hide itself. It will appear when a user scrolls down but would disappear as a user scrolls up. We have created around 5 Color Skins in two different themes, one with Solid color and one with Fading effect. The Hr Tag is created using Blogger Shortcode Plugin, the complete Toolkit For blogspot blogs.

More

Create Shortcode For Responsive HTML Tables!

HTML Table ShortcodeAn HTML Table is the most important part of a webpage design that helps you organize content in rows and columns. If you have large HTML Tables then they can barely fit in small Mobile screens and if you try to squeeze it up, the tables either crash or becomes unreadable. Today we will help you create dynamic and Fancy Mobile Responsive HTML Tables using Shortcodes that are naturally fluid and responsive by nature. Instead of squeezing the Table we will let your mobile readers to horizontally scroll Table data using their Thumbs. Responsive Tables are touch sensitive and they can be scrolled to left or right, thus making your content both viewable and readable. All these thanks to Blogger Shortcode Plugin that helps you create amazing design tools with a simple one line code!
More

Create Shortcode For CSS3 Tooltip in Blogger!

shortcode for CSS3 TooltipCSS3 Tooltips are Fancy balloons or boxes that are used to show your blog readers some extra information on mouse hover. They can be used in different ways for example, to provide captions for images, or longer descriptions for hyperlinks, or any useful info by simply hovering over the element containing the tooltip class. Thanks to Blogger Shortcode Plugin now you can create colorful animated Tooltips to enhance your blogspot user interface. This new Shortcode for Tooltip will help you display balloons at top or bottom of your hyperlinks on mouse hover. You can add them inside your blog posts, widgets and even inside your blog comments! You will also be able to display Images inside the tooltip box and display a custom message using HTML. See the demo first!

More

Image Shortcode - Embed Images in Blogger Comments!

Image Shortcode for bloggerImage Shortcode lets you insert images anywhere on your blogger blog with a simple one line textual code. You can now embed images with links or without links inside blogger comments form, posts, pages, HTML/JavaScript widgets almost anywhere! You can customize the width and height of your image, link the image to a URL, add nofollow attribute to the URL or simply insert the image in its actual resolution with a simple code. You may use the images to link any page or post inside your website, or use it to link an external page. Blogger Shortcode plugin has revolutionized BlogSpot blogs and it is the biggest development so far Alhamdulillah after the JSON API.  Just like you insert images in bulletin boards or forum threads, you can now embed images in blogger comments box and the shortcode will render it perfectly. Lets see it in action!

More

Buttons Shortcode - Create CSS3 Buttons in Blogger!

Buttons Shortcode for bloggerButtons shortcode is another exciting element of Blogger Shortcode Plugin which is a one line textual code that you can insert anywhere on your blogger blog to display colorful buttons with links and icons. You can add fontAwesome icons and links to your buttons and choose any gradient background color you want! You can also create clickable social media sharing buttons or follow buttons. The buttons come in three sizes, small, medium and large. You can also decide when to nofollow a link in the button. The buttons can be added inside blog posts, comments and sidebar widgets, almost anywhere. The buttons are design Compatible with all major browsers and of course responsive. Lets see them in action!

More

Syntax Highlighter Shortcode For Blogger Blogs!

SyntaxHighlighter Shortcode for Blogger

SyntaxHighlighter as you know is a fully functional self-contained code syntax highlighter developed in JavaScript. Which helps you prettify your Code format and display it in an organized numbered list style. Most Blogspot users often share HTML, CSS or JavaScript codes with their audience using Blockquotes but with this new shortcode you can better display scripts on your sites in a presentable way. This plugin neatly displays web technologies such as HTML, CSS, JavaScript, Php, Python, Sql, xml etc. The codes are displayed line by line number wise. It also provides the user with options to Print the code, copy it to clip board or to see the code Source. With SyntaxHighlighter Shortcode you can add codes not only inside your posts or sidebar widgets but you can also insert it inside Blogger comments!

More

YouTube Shortcode For Blogger Blogs!

youtube shortcode plugin

After having developed shortcodes for SoundCloud and Dailymotion, it is now time to start embedding YouTube Video Player and YouTube Playlists anywhere you want. The shortcode for YouTube player lets you insert the player inside your Posts, Widgets and even the threaded comments with a single line of code. The method is extremely easy and lets you add the responsive version YouTube video Player which adjusts automatically to any screen size. You can now easily share MP4 or HD videos with your readers from YouTube with an extremely easy way. Lets see its demo in action!

More

Create CSS3 Notification Boxes in Blogger using "Shortcodes"

Notification Boxes Shortcode

Notification boxes or Alert Boxes or Messages boxes are a great way to inform the user of a variety of messages, such as: alert, update, announcement, error, success, warning etc. and general info notification. You can use. The good news is that we have developed Shortcodes for Blogger Notification Boxes which helps you insert a Responsive Message box anywhere on your blog with a single line of code. We have also used the fontawesome icons which gives a more lively touch to the boxes. Just give your box a title and message and you are all set to prompt your users of important announcements! The Boxes are fluid and responsive and auto adjusts to any screen size. Each box has a different color and can be given any title, not necessarily the five default titles we have shown in the demo page below.

More

Facebook Page Plugin Shortcode For Blogger

Facebook page plugin shortcode

Facebook Like Box plugin is deprecated and will stop working on June 23rd 2015. Facebook has suggested to use the new Page Plugin instead. Therefore we are releasing today the Blogger shortcode for Facebook Page Plugin which lets you easily embed and promote any Facebook Page on your website or blog, your visitors can like and share the Page without having to leave your site. You can also show a simple feed of your Page Posts. You can now embed the Page Plugin inside blog posts, sidebar widgets and even inside blogger comments with just a simple one line code.

More

SoundCloud Shortcode For Blogger!

Add SoundCloud Shortcode in Blogger

SoundCloud shortcode lets you embed Soundcloud Music Players in your Blogger blogs. Using Blogger shortcode plugin, you can now embed Audio Tracks and playlists hosted at soundcloud anywhere on your blog, you can insert MP3 tracks inside your Blogspot comments, Posts, Pages and HTML/Javascript Widgets. The shortcode is a code in Textual format which can be pasted on any visual editor or composer. You can now add Top-of-the notch Sound Technology in your blogs with just a simple line of code! Our Shortcode Plugin is much more user friendly when compared to Wordpress SoundCloud Shortcode because it supports attributes instead of parameters to keep the shortcode clean and tidy. It is now time to add a new life to your blog and let your visitors hear music when they browse your site!

More

Dailymotion Shortcode For Blogger!

dailymotion shortcode for bloggerThat day has come when you can embed videos anywhere on your BlogSpot blogs! You can now add or insert dailymotion videos inside blogger comments, posts, static pages and HTML/JavaScript widgets thanks to Blogger Shortcode Plugin that we released few days ago. Add video tracks almost anywhere on your blog with just a simple shortcode. We are creating more video shortcodes in coming days for YouTube, TED Talks, Vimeo etc. Thankfully you no more need to use that long ugly iFrame codes to embed videos inside your content, we have a much cleaner option. Lets see it in action!

More

jQuery "Tabs Shortcode" For Blogger!

Tabs Shortcode for blogger

We have shared several Multi Tabs widget in the past but today we are sharing the shortcode for creating responsive tabs inside blogger posts, sidebars and comments. This new method will help you add shortcodes anywhere on your blog with a single line of code. You can add multiple Tabs widgets on a single Page with as many Tabbed panels as you want. Add anything inside the panels to organize content on your blog layout and make it look more professional. The tabs supports nested shortcodes, so you can also add the jQuery accordion shortcode inside it to provide the best possible user interface to your BlogSpot readers.

More

jQuery Accordion Shortcode For Blogger!

Blogger Accordion ShortcodeEver wondered to create custom jQuery accordions with Toggle effect in blogger using a single line of code? That dream has come true thanks to Blogger Shortcode Plugin that we just published yesterday. You can now add multiple accordions not just on your sidebar widgets but also inside your post body and even inside your blog comments! You can give it any background colors and customize it to your needs. Treat it as a text which can be typed anywhere. Almost anywhere!

Lets first view a live demo of its UI to see how it works:

 

More

Introducing Blogger Shortcode Plugin

Blogger Shortcode Plugin
Surprise! After having served Blogger for over 5 years we are back again with yet another plugin that will transform blogger templates and especially blogging like never before. Equipping it with a system that will make web designing and creation of widgets a piece of cake! STCnetwork is proud to Introduce Blogger Shortcode Plugin that will let you add Web elements with very little effort without using any long complicated, ugly code. You can now insert videos, audios, photo gallery, tabs, accordions, etc. with just a single line of code inside your posts, widgets, sidebars and guess where else? also inside your Blog Comments! Embedding Objects in Blogger was never that easy before. Today we are taking blogger to the next Level. Lets get started!

What is a Blogger Shortcode?

Blogger shortcode is a macrocode i.e. a single line of code that contains a set of instructions which lets you do nifty things with no effort at all. Shortcodes can help you embed files or create objects in BlogSpot blogs with a single line of code that would normally require a lot of complex, long ugly code.
CSS3 buttons Shortcode
You can now easily insert objects such as Videos, Audios, Files, Slideshows and all important web elements such as accordions, tabs, colorful buttons, boxes etc. inside Header, Sidebar, Footer, Posts, Pages, Titles and amazingly even inside comments! It requires no prior knowledge of HTML, CSS or JavaScript. The plugin is extremely lightweight and its multiple-embed-support will reduce your Page Load time by 50%.

How Different is it From Wordpress Shortcode?

Wordpress has been our biggest source for inspiration and it would have never been possible to develop this plugin for Blogger if the logic was not already present. We simply converted the PHP functions into jQuery functions which are both platform independent and easy to implement.
Unlike Wordpress shortcodes which can only be inserted inside Post content, Blogger shortcode plugins lets you insert content even inside widgets and Comments! WP shortcode API is platform specific but our plugin offers cross-platform embedding support that is not limited to blogger blogs alone. It can surely work on any website be static or dynamic.
insert shortcodes in comments

Most exclusive feature of this plugin is to support nesting of shortcodes. You can insert a shortcode inside another one to offer full dynamic experience.
Shortcodes such as accordion and Tabs can be added a multiple times on a single page without effecting one another. This plugin optimizes and reduces Page Load time extremely well.
nested shortcodes

List of Supported Shortcodes

We have so far developed around 10 Shortcodes and we are planning to develop around 50 shortcodes within a  month inshAllah. Shortcodes will be created based on their importance and usability. We will release each shortcode with a separate tutorial.
A shortcode itself it not a code but a TEXT which is processed as HTML. Don't believe yourself? Believe it! :)
Following are the shortcodes developed so far.
Shortcode Definition
[accordion] Accordion is a vertically stacked list of items where each item can be "expanded" or "stretched" to reveal the content associated with that item. Items can be Toggled on and off easily. An example is the accordion widget
[tab] Tab widget allows multiple documents or panels to be contained within a single window, using tabs as a navigational widget for switching between sets of document. An example is the Multi Tab Widget
[code] Embeds syntax Highlighter which preserves the original formatting of source code
[table] Create responsive and fancy HTML Tables with multiple Rows and Columns
[quote] Inserts a Fancy Blockquote
[button] Inserts colorful CSS3 Buttons
[icon] Insert FontAwesome icons anywhere with custom options support
[soundcloud] Embeds SoundCloud Track
[dailymotion] Embeds Dailymotion Video
[youtube] Embeds YouTube Video
[divider] Inserts a Horizontal Separator to divide a section, also contains a Back To Top button
[num] Inserts a Number enclosed inside a circular background
[warning] Inserts a box with Warning message
[success] Inserts a box with Success message
[alert] Inserts a box with Alert message
[info] Inserts a box with Some Information message
[update] Inserts a box with Update status message
[facebook] Embeds Facebook Page Plugin
[image] Embeds Images anywhere you want in clear cut resolution!
[tooltip] Inserts a Fancy CSS3 Tooltip above or below hyperlink to show extra info
more on its way!..............

Installation Steps

Follow these steps to install the Shortcode Plugin on your blogger blog.
1 Go To Blogger > Template > Backup your template 

2 Click Edit HTML 

3 Search </body> 

4 Download the following dynamically updated JS file and host it somewhere and then paste the following code just above </body> 
<!-- Blogger Shortcode Plugin Dynamic JS File -->
<script src='PASTE-YOUR-LINK-HERE' type='text/javascript'></script>

NOTE: Replace with your hosted js file link that you downloaded from here

5 Next Search For <head>
6 Paste the following CSS files just below it
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>
<link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
Note that in the above code I have included latest versions of jQuery and FontAwesome libraries. I suggest that you use these versions instead of any old versions you may already be using.
  
7 Save your template and you are all done!
New functions are dynamically inserted inside the Shortcode JS file and you need to install it only once. I will keep updating this page to introduce any update made to the script and new shortcodes created will be appended to the Table List on this page.

Shortcode Syntax

Shortcodes have a name and attributes. The attributes are options that help you configure an object. Shortcodes are symbolized by Square brackets. The braces are opened and closed just like HTML but with a much simpler format as shown below:
Suppose you need to embed a Dailymotion video inside your blog posts, sidebar or blog comments then you can do it in two ways.
[dailymotion src="x2lhjki"][/dailymotion]
or simply
[dailymotion src="x2lhjki" /]
dailymotion shortcode for blogger
Now if you wish to change the color of the player button, hide player info and edit the player dimension then you can insert attributes as shown below
[dailymotion src="x2lhjki" width="100%" background="0080ff" height="100" info="0"][/dailymotion]
or simply
[dailymotion src="x2lhjki" width="100%" background="0080ff" height="100" info="0" /]
dailymotion shortcode
Note that the above is just an example, full details on how to use a dailymotion shortcode will be shared in its own tutorial

Syntax Errors

Avoid making these mistakes when typing shortcode names and attributes:
  1. Don't use camelCase or UPPER-CASE for attribute names or Shortcode names. Use only lowercase characters
  2. Don't add spaces between Shortcode Names and the Square Braces
  3. Shortcode macros may use single (') or double quotes (") for attribute values, or omit them entirely if the attribute value does not contain spaces.
    [table col='123' row=456]
    is equivalent to
    [table col="123" row="456"]
  4. A space is required between the shortcode name and the shortcode attributes. When more than one attribute is used, each attribute must be separated by at least one space.
  5. The shortcode parser does not accept square brackets within attributes.
    [tag attribute="[Some value]"]

How Does This Shortcode Plugin Works?

Shortcodes are written by providing a handler function "mbt(html)" . Shortcode handlers are broadly similar to WordPress filters: they accept parameters (attributes) and return a output. We used a jQuery function to parse through Square bracket content and attributes and then replace the Square bracket DOM with the HTML version and ignore or escape those Square braces which are enclosed across a name which is not registered through the global variable "var bhf". The Parser function recognizes registered shorctodes through the global variables only. Locations where shortcodes will work include Widgets, Blog Posts, Pages and Blog comments. Shortcodes placed elsewhere will be escaped.

Credits

© 2008-2015 STCnetwork.org.
Version: 1.0 (29-March-2015)
Creative Commons License 
Blogger Shortcode Plugin by STCnetwork is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are most welcomed to share the plugin with your readership as long as you attach attribution link back to this blog post and avoid selling the plugin in a commercial product or service.
We have to thank a lot of people here for helping us in the Plugin development.
  • We would like to thank the helpful community at stackoverflow who helped us in optimizing the scripts as much as possible and writing down simple logics. If these shortcodes are nest-able then it is only because of the kind help I received from this community co-founded by @jeff Atwood
  • We would like to thank Wordpress for sharing their helpful API that helped us better understand some core logics. Indeed they are the pioneers behind this idea.
  • We would like to thank Tien Nguyen for providing an idea of how to traverse through a loop using jQuery and replace the Square brackets with HTML tags.
  • We would like to thank Ahmed Nasir for helping us in debugging the script and making it possible to embed shortcodes within Comment iframe windows.

What is Next?

In coming hours, we will post separate tutorials for each shortcode, new and more demanded shortcodes will be released. Embedding stuff in blogger will be at your finger tips. Get rid of those long, complicated, heavy scripts and add stuff in blogger with just one line of code!
For extra help and details on implementation and development of this plugin, please create a discussion Topic at our Forum where I am always available 24/7 for any help needed.
Do share your precious views on this plugin and let us know how can we improve it further. Do mention services for which you need a custom shortcode and we would love to develop it for you and share it for free on this blog. Peace and blessings buddies! =>
More