WELCOME TO EHOST.COM.NP

Tuesday, December 6, 2016

Mega Menu with Images or Thumbnails for Blogger

ads space

Visual content holds a certain appeal that websites integrate images to every page, or even operate solely through photos. Now, with the new AJAX navigation menu widget, images can be added to the drop-down menu as well.

The AJAX navigation menu for blogger is a widget designed specifically for the Blogger platform. It is inspired from the Mashable website long before it was given a makeover. Despite the plain and simple inspiration, the drop down menu with images is a huge hit.


It works based on the jQuery library and Blogger JSON Feed API. Function-wise, it works just like a normal drop-down menu when JavaScript is disabled. For it to work online, a blog must be for public visitors, so the Blogger JSON Feed API will function as designed.




Features



Multi-Level Menu Support


The AJAX menu is a multi-level drop-down menu that is based on the standard unordered list of HTML. When a menu contains a sub-menu, it loads on the fly when a user rolls over the main menu. What is great about this is that it saves outgoing traffic, especially on a website that uses a large navigation.


Cross-browser Compatibility


Most AJAX applications will work across different browsers even with other plugins or proprietary technology already installed.  The menu with images works in the same premise, instead of being designed for a specific browser. Because there is no telling which browser you or your blog readers would use, the new AJAX drop-down mega menu with images is the ideal option.

Some of the Windows browser supported includes IE5+, Firefox, Google Chrome, Safari Netscape 7+ and Opera 8+. When you’re using a Mac, the AJAX menu is supported on Firefox, IE and Safari. If JavaScript is disabled, however, the menu is still accessible, but only as pure CSS menu.



Automatic Sub-Menu Display


With the new AJAX menu, you only need to roll over a menu item and sub-menus will automatically load. No need to click on a menu to get the sub-menu to drop down. This not only saves users’ valuable navigation time, but also outgoing traffic.


Menu Styling


AJAX menus can be styled by simply changing the megamenu.js and the CSS style. The former is used when javaScript is turned on, while the latter is when it is turned off. You can adjust the menu parameters manually or you can use ready-to-use templates.

There are plenty of other features, but you would not be able to use or experience them if you do not install the new mega menu with images. What do you need to do then to implement it in your blog or website?





Adding Mega Menu with Images/Thumbnails in Blogger


Step 1. Log in to your Blogger account, then go to the Dashboard. Select the blog where you want to install the new mega menu.


CSS

Step 2. Click on Template, then press the Edit HTML button. Press anywhere inside the code area and use the CTRL + F function to make your search quicker and easier. Type the following tag and hit Enter to find it:


]]>

Once you find the tag, add the code below just above/before it:


.megamenu *margin:0;padding:0;font-family:’PT Sans Narrow’ul.megamenulist-style:none;line-height:1;overflow:visible !importantul.megamenu:aftermargin:0;padding:0;content:’ ‘;display:block;height:0px;clear:bothul.megamenu lifloat:left;display:inline;position:relative;text-transform:uppercaseul.megamenu li a.menu-target:aftercontent:””;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:3px solid #fff;font-size:0;line-height:0;bottom:22px;right:5px;position:absoluteul.megamenu li adisplay:block;line-height:50px;padding:0px 20px;text-decoration:none;border-left:1px solid #000;box-shadow:1px 0 0 0 rgba(255, 255, 255, 0.1) inset;color:#d9d9d9;font-size:14px;transition:all 0.3s ease-in-outul.megamenu li a:hoverbackground:#111111;color:#ffful.megamenu ulposition:absolute;display:none;top:100%ul.megamenu li:hover > uldisplay:blockul.megamenu ul liz-index:72;min-width:149px;float:none;background:#000;text-shadow:noneul.megamenu ul li atext-transform:none;font-weight:normalul.megamenu ul li a:hover,ul.megamenuid ul li a.hoverbackground:#E0E0E0;color:#444ul.megamenu ul uldisplay:none;left:100%;top:0ul.megamenuid li div.megasubmenubackground:#F9F9F9;position:absolute;width:830px;z-index:90;left:0;top:100%;overflow:hidden;min-height:150px;-moz-transform:translate(0,30px);-webkit-transform:translate(0,30px);-o-transform:translate(0,30px);transform:translate(0,30px);transform-origin:50% 0;visibility:hidden;opacity:0;color:#888;box-shadow:0 10px 7px -7px rgba(0,0,0,0.1);transition:all 0.3s ease-in-outul.megamenuid li:hover div.megasubmenuvisibility:visible;opacity:1;-moz-transform:translate(0,0);-webkit-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)ul.megamenuid ul,ul.megamenuid ul lidisplay:block !important;border:0 none !important;margin:0 !important;padding:0 !importantul.megamenuid ul libackground:none !important;float:left !importantul.megamenuid ul.leftmenulistposition:absolute;width:18%;left:0;top:0;bottom:0;background:#EEEEEE;border-right:1px dashed #e5e5e5 !importantul.megamenuid ul.leftmenulist aborder-left:none !important;color:#555ul.megamenuid ul.rightmenulistposition:relative;display:block;width:81%;float:right;margin:0px 0px 0px !important;background:noneul.megamenuid ul.rightmenulist lidisplay:block;overflow:hidden;position:relative;min-height:210px;padding:5px 17px 5px 0px !importantul.megamenuid ul.rightmenulist li .thumb-containerleft:0;width:100%;height:100%;position:absolute;overflow:hidden;font-size:0;line-height:0ul.megamenuid ul.rightmenulist li .thumb-container imgposition:relative;top:10px;padding:0;width:100%;height:100%;display:blockul.megamenuid ul.rightmenulist li adisplay:block;border-left:none !important;padding:0px 5px !important;line-height:1.4;color:#777;font-weight:bold;font-size:14pxul.megamenuid ul.rightmenulist li a:hovercolor:#000;background:transparentul.megamenuid .loading-iconbackground:url(‘https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQ1xyWHiw4yb8iC-A7xM4xSMyNFRinIIEwwzp0NxXJwmtzGarGHbnMlKNicy_H6FEbT5sTEqFVlbhCC4TkXKdVbpIafPVc37wCpPgcOlqMP0TJamjSd9eeFWZrEqhoWm47UdcjYXatRc/s1600/wait.gif’) no-repeat scroll 0 0 transparent;width:22px;height:22px;position:absolute;top:50%;margin-top:-11px;right:5pxul.megamenuid .menu-iconborder-bottom:4px solid transparent;border-top:4px solid transparent;border-left:4px solid #777;display:block;height:0;margin-top:-4px;position:absolute;right:11px;top:50%;width:0#megamenuidbackground:rgba(0, 0, 0, 0) -moz-linear-gradient(center top , #3d3d3d, #212121) repeat scroll 0 0;background:-webkit-linear-gradient(top,#3d3d3d,#212121);background-color:#3d3d3d;box-shadow:1px 1px 0 0 rgba(255, 255, 255, 0.1) inset;height:50px;width:100%;position:relative;max-width:1000px;margin:0 auto;padding:0px#megamenuid h5font-size:16px;margin-top:70px;text-align:center#megamenuid h5:beforecontent:””;position:absolute;top:50px;left:50%;width:5px;height:2px;margin-left:-4px;border-left:2px solid black;border-right:2px solid black#megamenuid h5:aftercontent:””;position:absolute;top:55px;left:50%;width:10px;height:5px;margin-left:-7px;border-top:2px solid black;border-left:2px solid black;border-right:2px solid black;border-radius:8px 8px 0px 0pxli.search-boxfloat:right !important;line-height:35px;margin:7px 10px 0 0li.search-box .search-fieldborder:none;padding:3px;background:#3F3F3F;color:#fff;width:135px;font-size:13pxli.search-box .search-field:focusborder:none;outline:none;background:#4C4C4C;color:#fffli.search-box .search-buttonbackground:url(‘https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUwradvTbkn5ynEKnKByRnPgwlZPk79-X60d_QstOcvDtU7ki-hW7HYlogimyocGibC4mMyxduLvudfdOHGpmkzLxiCIe167kBYX9a4h8wQ04g_wPLJz2I9IDonDeuntOMoE4g888Acf0/s1600/search.png’) no-repeat;border:none;cursor:pointer;padding:5px 10px;transition:all 0.3s ease-in-outli.search-box .search-button:hoveropacity:0.9.search-alertbackground:#E84C3D url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghf8PUr8RfrXkia1u0I-c3QO2uZZuQzbnJjju4PwG6_aZETJP_mJNqI996xgI_LnxwVhXSav_3eF0NFJtkHocVCE8c3paO6n6Wlo6MubEq4lssorx8XVRYj_UpOHUJQivY6A_mT92jHnw/s1600/search-info.png) no-repeat;background-position:5px;text-transform:capitalize;color:#fff;margin:-5px;padding:0px 15px 0px 40px;display:none;border-radius:5px


JavaScript

Step 3. Check if your blog has the jQuery plugin already installed. If not, you need to add a few lines of code before the tag (CTRL + F to find it). See the code below:





Note

- If jQuery plugin already exist, remove the line in red.
- To change the number of posts, change the 4 value from:



postsNumber : 4


- To add a different thumbnail when a post has no image, replace the url in blue from:


noThumbnail : 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdulBTm6E9gb6DvmysTcHdxvR7DAxz405vlqvMDFXv9Mka5Mdi-ETZiy7WHnqYH_FIj4zjEG_hvwAkJ-OTdz94qfVqDGn84RoCLPBOs3vhzYpHk5cW8NGdrWkaYrS3S4IcexZHJlcAYtg/s1600/no_image_available.png'


HTML

Step 4. Carefully add the HTML code to ensure that the drop down menu with images will work as designed. There are only three types of URLs that the AJAX Menu accepts and they must be used accordingly.

Label URL: http://yourblogurlblogspot.com/search/label/LABELNAME
Search Query: http://yourblogurl.blogspot.com/search?q=SEARCHQUERY
Label w/ Search Query: http://yourblogurl.blogspot.com/search/label/LABELNAME?q=SEARCHQUERY


Among the three URLs, the Search Query has to be URL encoded using a specific tool.


Step 5. Search the following line using CTRL + F:




Just above this line, add the following HTML code:




Note: replace the text in blue with the label url and the text in red with the name of the label. This is the label that you have added to the Labels settings of your post editor:



Step 6. Click on Save template for all the changes to take effect.

If you can't find the line from step 5, access the Layout tab, click on Add Gadget, and then choose HTML/JavaScript Gadget. Copy the HTML code and paste it inside the box... then press the Save button.


That's it!


Once that is done, your AJAX menu with images will be implemented and ready for you to use. Make sure to choose photos that are relevant to the menu and sub-menus so your website will have cohesive look and appeal. Research shows, however, that text accompanied by any image, even if completely irrelevant, can grab attention. 

ads space
ADS SPACE

0 comments:

Post a Comment

Categories

Article How-to All Posts WordPress Android Web design Blogger Plugins CSS Google JQuery Plugins Programming Reviews Web Hosting Blogger Blogging Blogging Tips Tricks Web Development Facebook Git Internet Make Money Online Social Plugins Tips Tips and Tricks Tools Tutorials Windows WordPress Plugins Blogging Tips and Tricks Freebies GSM Google Analytics HTML How To's JavaScript Plugin Development S.E.O SEO SMS SmartPhone Social Media Tips amp; Tricks Top-Most Updates Webmaster Tools Whatsapp Applications Apps Blogger Basics Documentary Downloads Entertainment Gadgets Games Gmail Google AdSense Guest Post IPhone Make Money Blogging SVN Security Softwares Web Hosting Tips and Tricks Wordpress Tips Wordpress Tips and Tricks hostgator iOS Advertising Networks Advertising Technology Affiliates Antivirus Audience amp; Traffic Biography Blog post Blog post Blogger Blogger Errors Blogger Tips Blogger Tools Blogger Widget Blogosphere Bogger Widgets CSS selectors CSS symbols CSS3 Computer amp; Internet Content Writing Coupon Codes Data amp; Analytics Deleted blog Design DoubleClick for Publishers Email and newsletter marketting Email marketing Excel Tips Excel Tips and Tricks Facebook Tricks Feed Feedburner Feedburner subscribers Font Fun GitHub Giveaways Gmail primary inbox Gmail tabs Google sign-in Guides HTML amp; CSS HTML5 Infographics Inspirational Instagram Internet Marketing Internet Tips amp; Tricks Job Listings Knowledge Life Hacks Lists Make-Money Monetization amp; Conversion Monetize Navigation Online Marketing Other PHP Tutorials Passport Publishing amp; Content Quotes RSS Sidebar Smartphones Social Networking Status Tech Tech Blog Technology Telegram Themes UI / UX User Psychology amp; Research VB.Net Web Tools Web browser Widget Windows Tips Windows-10 ad viewability admin notice blogging tools bluehost cherry-pick clone cors custom scrollbar customizer dismissible notices duplicate post feed title git branch git clone gpg gpg2 hybridauth iPad icon font notice responsive wordpress theme same origin policy scrollbar signed git commit smartsvn theme customizer vcs wordpress theme wordpress themes

Blog Archive