jeudi 23 juillet 2015

Mega Menu with Images or Thumbnails for Blogger

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.megamenu{list-style:none;line-height:1;overflow:visible !important}ul.megamenu:after{margin:0;padding:0;content:' ';display:block;height:0px;clear:both}ul.megamenu li{float:left;display:inline;position:relative;text-transform:uppercase}ul.megamenu li a.menu-target:after{content:"";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:absolute}ul.megamenu li a{display: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-out}ul.megamenu li a:hover{background:#111111;color:#fff}ul.megamenu ul{position:absolute;display:none;top:100%}ul.megamenu li:hover > ul{display:block}ul.megamenu ul li{z-index:72;min-width:149px;float:none;background:#000;text-shadow:none}ul.megamenu ul li a{text-transform:none;font-weight:normal}ul.megamenu ul li a:hover,ul.megamenuid ul li a.hover{background:#E0E0E0;color:#444}ul.megamenu ul ul{display:none;left:100%;top:0}ul.megamenuid li div.megasubmenu{background:#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-out}ul.megamenuid li:hover div.megasubmenu{visibility: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 li{display:block !important;border:0 none !important;margin:0 !important;padding:0 !important}ul.megamenuid ul li{background:none !important;float:left !important}ul.megamenuid ul.leftmenulist{position:absolute;width:18%;left:0;top:0;bottom:0;background:#EEEEEE;border-right:1px dashed #e5e5e5 !important}ul.megamenuid ul.leftmenulist a{border-left:none !important;color:#555}ul.megamenuid ul.rightmenulist{position:relative;display:block;width:81%;float:right;margin:0px 0px 0px !important;background:none}ul.megamenuid ul.rightmenulist li{display:block;overflow:hidden;position:relative;min-height:210px;padding:5px 17px 5px 0px !important}ul.megamenuid ul.rightmenulist li .thumb-container{left:0;width:100%;height:100%;position:absolute;overflow:hidden;font-size:0;line-height:0}ul.megamenuid ul.rightmenulist li .thumb-container img{position:relative;top:10px;padding:0;width:100%;height:100%;display:block}ul.megamenuid ul.rightmenulist li a{display:block;border-left:none !important;padding:0px 5px !important;line-height:1.4;color:#777;font-weight:bold;font-size:14px}ul.megamenuid ul.rightmenulist li a:hover{color:#000;background:transparent}ul.megamenuid .loading-icon{background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAeCOil1w75oy5ZiI5Ttpf6IgdlmwclIE_kAKjGOxNXpzy3RB2dZimCQzqtX4Mok_01dfgzpAHBYz4iALzYM11tCDCtR2tT6B287BnoVa74ppmxYX7wE1l6E6H2dDgBQbRag-juR8l_Rs/s1600/wait.gif') no-repeat scroll 0 0 transparent;width:22px;height:22px;position:absolute;top:50%;margin-top:-11px;right:5px}ul.megamenuid .menu-icon{border-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}#megamenuid{background: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 h5{font-size:16px;margin-top:70px;text-align:center}#megamenuid h5:before{content:"";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:after{content:"";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 0px}li.search-box{float:right !important;line-height:35px;margin:7px 10px 0 0}li.search-box .search-field{border:none;padding:3px;background:#3F3F3F;color:#fff;width:135px;font-size:13px}li.search-box .search-field:focus{border:none;outline:none;background:#4C4C4C;color:#fff}li.search-box .search-button{background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp_HMexpYRP7017fE8Hcgka2nD6_sIvUGT96AXKkHEnGcgwbeB_m6xYJV5UO2js27B9dX4U66n_vuDP2_61-uxkOG5K6wywepySa4yNHInmDIYmINoj_6C1Dt-QNXk8yivMnAiK4N32W8/s1600/search.png') no-repeat;border:none;cursor:pointer;padding:5px 10px;transition:all 0.3s ease-in-out}li.search-box .search-button:hover{opacity:0.9}.search-alert{background:#E84C3D url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_LAvSCxHIYFKFmT0AFcS3a2BpOcLm4twYj-31L0e3APK2ivlhRcy1ksRjlLz4-aqTasrrvmPfBcvVPbBTQdDtU0bm7I7lyjMy7bIX5-HEODYbxMWFVzUlEZ6dIt0UmCW-eG4v4Dwq4Zc/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/AVvXsEh7L0ONcYCcRCTS4fWRWadiNN5r0SnZkx6bfgV2_PAGIfrg0OGAOWmA4gEnTSADiinPjVQXNiol4qhEOYlRGBT-vXFZqr3mQzTQcWIYmDIvBSL2H2Zpz616ZW0fw-OwEP37xteiPermn_Y/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. 

Libellés : , ,

jeudi 27 février 2014

How to Add Neat CSS3 Dropdown Menu in Blogger

Here's another simple yet amazing dropdown menu with pure CSS3 made by Andrew from script-tutorials.com to which I have made some slight modifications so that it could easily adapt in our Blogger template.

In the upper right corner of this menu we have the contact links and the social media icons for Facebook, Twitter, Google Plus and RSS feed. Below these links, we have the drop-down navigation menu and on the left side, the search form.
To achieve better user interface and interaction, the CSS dropdown menu features sub categories that appear with a nice touch of CSS3 box-shadow, text-shadow and a cool transition once the parent link is activated by a hover.

dropdown menu

Please visit this demo page to see it in action.

Adding the CSS dropdown navigation menu in Blogger

Step 1. Access your Blogger Dashboard and go to Template > click on the Edit HTML button


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box. Type the tag below inside the search box and hit Enter to find it.
Step 3. Just below add the HTML structure:
Replace the # symbols with the URLs of your links and replace the texts in blue with the titles that you want to appear. To change the social media icons, add the links of your icons instead of the ones in blue. If you don't know how to upload and get the URL of an image, please read this tutorial.

If you want to remove the sub categories, remove the code within the tags highlighted in yellow, including the ul tags. To remove only a menu element, remove the part that starts with
  • and ends with


  • Step 4. And now let's add the CSS styling for the menu. Search for the following piece of code:
    ]]>
    Just above ]]> add this code:
    #contact-links {
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
        margin: auto;
        position: relative;
        width: 100%;
    }
    #contact-links a {
        color: #4C9FEB;
    }
    #contact-links a:hover {
        color: #3D85C6;
    }
    #my-links {
        float: right;
        font-size: 12px;
        margin: 4px 10px;
        overflow: hidden;
        text-shadow: 0 1px 0 #FFFFFF;
    }
    #my-links a {
        margin-left: 7px;
        padding-left: 8px;
        text-decoration: none;
    }
    #my-links a:first-child {
        border-width: 0;
    }
    #menu-container {
        background: -webkit-linear-gradient(#f6f6f6, #e9eaea) repeat scroll 0 0 transparent;
        background: -moz-linear-gradient(#f6f6f6, #e9eaea) repeat scroll 0 0 transparent;
        background: linear-gradient(#f6f6f6, #e9eaea) repeat scroll 0 0 transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#e9eaea',GradientType=0 );
        border-radius: 0 0 4px 4px;
    border:1px solid rgba(0,0,0,0.1);
        box-shadow: -1px 1px 0 rgba(255, 255, 255, 0.8) inset;
        clear: both;
        height: 46px;
        padding-top: 1px;
    }
    #neat-menu {
        float: left;
    }
    #neat-menu a {
        text-decoration: none;
    }
    #neat-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    #neat-menu > ul > li {
        float: left;
        padding-bottom: 12px;
    }
    #neat-menu ul li a {
        box-shadow: -1px 0 0 rgba(255, 255, 255, 0.8) inset, 1px 0 0 rgba(255, 255, 255, 0.8) inset;
        border-color: #D1D1D1;
        border-image: none;
        border-style: solid;
        border-width: 0 1px 0 0;
        color: #333333;
        display: block;
        font-size: 14px;
        height: 25px;
        line-height: 25px;
        padding: 11px 15px 10px;
        text-shadow: 0 1px 0 #FFFFFF;
    }
    #neat-menu ul li a:hover {
    background: -webkit-linear-gradient(#efefef, #e9eaea) repeat scroll 0 0 transparent;
        background: -moz-linear-gradient(#efefef, #e9eaea) repeat scroll 0 0 transparent;
        background: linear-gradient(#efefef, #e9eaea) repeat scroll 0 0 transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#efefef', endColorstr='#e9eaea',GradientType=0 );
    }
    #neat-menu > ul > li.active > a {
        background: -webkit-linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        background: -moz-linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        background: linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#55A6F1', endColorstr='#3F96E5',GradientType=0 );
        border-bottom: 1px solid #2D81CC;
        border-top: 1px solid #4791D6;
        box-shadow: -1px 0 0 #55A6F1 inset, 1px 0 0 #55A6F1 inset;
        color: #FFFFFF;
        margin: -1px 0 -1px -1px;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    #neat-menu > ul > li.active > a:hover {
        background: -webkit-linear-gradient(#499FEE, #3F96E5) repeat scroll 0 0 transparent;
        background: -moz-linear-gradient(#499FEE, #3F96E5) repeat scroll 0 0 transparent;
        background: linear-gradient(#499FEE, #3F96E5) repeat scroll 0 0 transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499FEE', endColorstr='#3F96E5',GradientType=0 );
    }
    #neat-menu > ul > li:first-child > a {
        border-radius: 0 0 0 5px;
    }
    #neat-menu ul ul {
        background: -webkit-linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
        background: -moz-linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
        background: linear-gradient(#F7F7F7, #F4F4F4) repeat scroll 0 0 padding-box transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F7F7F7', endColorstr='#F4F4F4',GradientType=0 );
        border-radius: 5px 5px 5px 5px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 1px 0 #FFFFFF inset;
        height: 0;
        margin-top: 1px;
        opacity: 0;
        overflow: hidden;
        width: 240px;
        padding: 0;
        position: absolute;
        visibility: hidden;
        z-index: 1;
        -webkit-transition: all .5s;
        -moz-transition: all .5s;
        -ms-transition: all .5s;
        -o-transition: all .5s;
        transition: all .5s;
    }
    #neat-menu ul li:hover ul  {
        margin-top: 0\2;
        height: auto;
        opacity: 1;
        visibility: visible;
    }
    #neat-menu ul ul a {
        border-right-width: 0;
        border-top: 1px solid #D1D1D1;
        box-shadow: 0 1px 0 #FFFFFF inset;
        color: #444444;
        height: 24px;
        line-height: 24px;
        padding: 7px 12px;
        text-shadow: 0 1px 0 #FFFFFF;
    }
    #neat-menu ul ul a:hover {
    background: -webkit-linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        background: -moz-linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        background: linear-gradient(#55A6F1, #3F96E5) repeat scroll 0 0 transparent;
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#55A6F1', endColorstr='#3F96E5',GradientType=0 );
        border-top: 1px solid #4791D6;
        box-shadow: -1px 0 0 #55A6F1 inset, 1px 0 0 #55A6F1 inset;
        color: #FFFFFF;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    #neat-menu ul ul li:first-child a {
        border-top-width: 0;
    }
    #menu-search {
        margin:8px 10px 0 0;
        float: right;
    }
    #menu-search form {
        background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWD9yB_2cARHeEks42_dQwKAnnmRiAVasSbaIZVSOu8zx9QCnt_tZlLtwo2lP6AOrv1P_mr9BMQTsnBrQiu_e3ZwnC79GtjTpeCUJ5XMt9I-bjZIornjlUu6w-QWKv4LSrxXhnAQL41SAH/s1600/menu-search.gif") no-repeat scroll 5% 50% transparent;
        border: 1px solid #CCCCCC;
        border-radius: 3px 3px 3px 3px;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset, 0 1px 0 #FFFFFF;
        height: 26px;
        padding: 0 25px;
        position: relative;
        width: 130px;
    }
    #menu-search form:hover {
        background-color: #F9F9F9;
    }
    #menu-search form input {
        color: #999999;
        font-size: 13px;
        height: 26px;
        text-shadow: 0 1px 0 #FFFFFF;
        background: none repeat scroll 0 0 transparent;
        border: medium none;
        float: left;
        outline: medium none;
        padding: 0;
        width: 100%;
    }
    #menu-search form input.placeholder, #menu-search form input:-moz-placeholder {
        color: #C4C4C4;
    }
    Step 5. Click on the Save template button to save the changes... and you're done! ;)

    I hope you like this CSS3 dropdown menu and if you enjoyed this tutorial, please share and subscribe.

    Libellés : ,

    samedi 15 février 2014

    jQuery Sliding Panel with Expanding/Collapsing Content for Blogger

    Many times when we think about making a blog, we want to put many gadgets, although many are not necessary, or perhaps only a few of them. But to add the gadgets that we want, we need to have enough space. A solution would be using an expanding/collapsing menu that is hidden and expands when the user clicks on it.

    Originally, this plugin called Sliding Login Panel was created so that users could register on the site, but as we know, in Blogger we don't have the option to add a user registration, however, that doesn't mean that we can't take advantage of this plugin and use it to add other elements, such as a menu, search box, social icons, feed subscription etc.
    You can find a demo of this panel in this blog - just click on the Open menu link on the top.

    Adding the jQuery Expand/Collapse Slider Panel to Blogger

    This sliding menu is made with jQuery, so the first thing is to add the script by pasting it just below the tag:

    Step 1. From your Blogger dashboard > go to Template > click on the Edit HTML button:

    blogger template

    Step 2. Click anywhere inside the code area and search by pressin the CTRL + F keys for the tag

    Step 3. Below the tag, add this script:






    Step 4. Now search (CTRL + F) the tag and add the CSS styles just above it:
    Note:
    - in case you need more space for your widgets, the height of the entire container can be changed by modifying the 230px value from height: 230px;
    - To change the background color, change this color value: #272727

    Step 5. And finally, we will place the HTML structure of it - right after the tag, add this code:








    Welcome to my blog!




     


    Meet the Author


    Ut eleifend tortor aliquet, fringilla nunc non, consectetur magna. Suspendisse potenti.





    Looking for something?



     










    Subscribe to this blog!


    Receive the latest posts by email. Just enter your email below if you want to subscribe!























    Note: if you can't find the tag, then try to find this one:
    Here we have added the content in the sliding panel which will be hidden and will show on mouse click. In green are the names of each section so to make it easier to recognize them.

    Note:
    - In the first section, you can change the welcome message, "Meet the author" title and add your description by replacing the text in bold. To add your own picture, replace this URL:
    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7UCIbnVpgYUMOyhBXryW9AYH_zWuHdtTrvSuWG2mgFFqY8hr2GyQxJwP5FuMsMoMk3P0MK4Fd78Ph58Gp_j7fJenDtbUv3hZqTL6UtiYNwSICpIUPQiTl6MaS-xCOOrI5iEjrUxLHRIys/s1600/profile-pic.png
    - In the second section you have the categories - there add the URLs of your links by replacing the addresses in blue and replace Category 1, 2, 3... with the titles that you want to appear for the links.
    - In the third section is the email subscription - you must have enabled this option in your Feedburner account - just replace the text in blue with the name of your blog's feed. As for the social icons below, change the URLs in blue with your Facebook and Twitte and add the URL of your blog's RSS feed address.

    Basically, those are the main sections that can be customized, though, we can take some parts and paste something else instead.

    Step 6. Save the template and that's it! Note that this menu works with jQuery, so if you are already using Scriptaculous, Prototype or Mootools, then it will not work.

    I hope you'll enjoy this elegant menu with sliding effect, which will look way better if we remove the Blogger navbar.

    Libellés : , , ,

    jeudi 16 janvier 2014

    How to Add an Admin Control Panel in Blogger

    A while ago I've posted some tutorials on how you can remove the Blogger Navbar or add a Peek A Boo Effect so that it would show only when we mouse over on top of our page.

    However, customizing or removing the Blogger Navbar also has its downside because the admin links for "New post", "Customize" and "Log Out" will be no longer visible and navigating through the blog functions could be really frustrating sometimes. When the navbar is visible, blog administrators can easily create a new post or customize their template with just one click; however, when the navbar is hidden, many more clicks are required to access the Blogger dashboard panel again.

    In this tutorial, we'll see how to add an "Admin Control Panel" menu with many cool additions such as:

    - access to the Blogger's Homepage
    - create a New Page or Post
    - view all your posts
    - read your comments
    - access the Blog's layout to add or rearrange gadgets
    - edit the HTML of your Template
    - refresh current page or post
    - open a new tab with your blog's homepage
    - access the blog' settings
    - view your stats
    - log out

    We will put all these options on the top of your page as a menu and we will make it visible only to the administrator of the blog, so our blog visitors will not be able to see it.

    The result will be something like this:

    admin control panel for blogger

    Adding Admin Control Panel to Blogger template

    The Admin Control Panel will only be visible when the blog author is logged in and will not display to blog readers, same with the Post Edit or widget pencil icons which are only visible to you while you are logged in.

    To add the admin panel to Blogger, follow the steps below:

    Step 1. Go to Template and click on the Edit HTML button:


    Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box

    Step 3. Paste this line inside the search box then hit Enter to find it:
    Note: if you can't find this line, try to find the tag.

    Step 4. Just below that line or tag, add the following code:



    Step 4. Click on the Save template button to save the changes.

    Now take a look at your blog. While you are logged in to Blogger, you should notice your control panel appear on top of your blog. Enjoy!

    With this admin control panel for Blogger you can easily access the functions of the blog and you will not have to always open your blog page and the Blogger homepage at the same time.

    Libellés : , , , ,

    mardi 17 septembre 2013

    Vertical drop down menu with jQuery

    jGlideMenu is a vertical menu that can be dragged and dropped so that the reader can place it anywhere, and in addition, he can browse through the tabs in a very peculiar manner that comes with a sliding effect giving a sexy touch.

    One of the advantages is that it can store a large number of links and can be removed anytime if we want.

    vertical menu, menu for blogger

    To understand this menu better and to see it in action, visit this demo blog. There we can drag the menu, navigate through its tabs or close.

    To add this vertical menu on your blog, just follow these steps:

    1) From your Blogger dashboard, go to Template > Edit HTML and before the tag, add these scripts:
    2) Now paste before ]]> these styles:
    .jGM_box {
    position: absolute; /* Change absolute with fixed if you want it to float */
    top: 50px; /* Distance from above */
    right: 760px; /* Distance from right */
    width: 227px;
    height: 317px;
    background: #fff; /* Background color */
    margin: 0;
    padding: 0;
    border: 1px solid #ccc; /* Border */
    overflow: hidden;
    }
    .jGM_header {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 227px;
    background: #d1d1d1; /* Background color for the up bar */
    color: #fff;
    text-align: right;
    vertical-align: middle;
    line-height: 18px;
    cursor: move;
    }
    .jGM_header a {
    margin-right: 12px;
    text-decoration: none;
    color: #000 !important;
    cursor: pointer;
    }
    .jGM_wrapper {
    position: absolute;
    top: 19px;
    left: 0;
    width: 2270px;
    height: 288px;
    margin: 0;
    padding: 0;
    border: 0;
    }
    .jGM_tile {
    position: absolute;
    top: 0;
    left: 7px;
    width: 213px;
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
    }
    .jGM_cats {
    width: 100%;
    height: 64px;
    overflow: hidden;
    vertical-align: middle;
    text-align: left;
    }
    .jGM_cats h4 {
    font-family: Verdana,Arial,serif;
    font-size: 1.8em;
    margin: 0;
    padding: 2px 0;
    line-height: 1.8em;
    color: #414141;
    font-weight: normal;
    }
    .jGM_cats p {
    font-family: Verdana,tahoma,arial;
    font-size: 1em; /* Font size of the description */
    margin: 0;
    padding: 0;
    line-height: 1.2em;
    color: #858585; /* Description color */
    font-weight: normal;
    }
    .jGM_pager {
    height: 18px;
    width: 213px;
    line-height: 18px;
    margin: 0;
    border: 0;
    padding: 0;
    background: #f6f6f6;
    text-align: center;
    vertical-align: middle;
    }
    .jGM_pager a {
    text-decoration: none;
    font-weight: bold;
    text-decoration: none;
    display: block;
    }
    .jGM_pager a:hover { background: #d1d1d1; }
    .jGM_pager img { border: 0; margin: 6px 0; }
    .jGM_content {
    width: 213px;
    height: 150px;
    margin: 1px 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    }
    .jGM_content a {
    font-family: Tahoma,arial;
    text-decoration: none;
    color: #333 !important;
    height: 18px;
    width: 100%;
    display: block;
    line-height: 18px;
    padding: 0 0 0 10px;
    background-color: #e6e7e9;
    margin: 1px 0;
    }
    .jGM_content a:hover {
    color: #fff !important;
    background-color: #4D4E67; /* Bar color on mouseover */
    }
    .jGM_more {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB0NkUkLGlIQuv__oqxjm40I0ZYkZn68_uFExxN-Z-ZaT3p8sWaWHLsn_K1u7JMxVgOe1rBvI2ggB9hibQxQ9a40qeNSCpb_kJdJGvNfhYmRNqw80dBYuR_sM0h2xD_HAN4MhUH37HOCw/s1600/arrow.gif);
    background-repeat: no-repeat;
    background-position: 203px 50%;
    }
    .jGM_back {
    position: absolute;
    top: 255px;
    right: 0;
    height: 18px;
    width: 52px;
    background: #d1d1d1;
    line-height: 18px;
    vertical-align: middle;
    text-align: center;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0;
    z-index: 99;
    }
    .jGM_back a {
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #000 !important; /* Color of the "Back" link */
    display: block;
    }
    .jGM_back a:hover {
    color: #fff !important; /* Color of the "Back" link on mouseover */
    background: #4D4E67;
    }
    .jGM_reset {
    position: absolute;
    top: 255px;
    right: 62px;
    height: 18px;
    width: 52px;
    background: #d1d1d1;
    line-height: 18px;
    vertical-align: middle;
    text-align: center;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0;
    z-index: 99;
    }
    .jGM_reset a {
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #000 !important; /* Color of the "Home" link */
    display: block;
    }
    .jGM_reset a:hover {
    color: #fff !important; /* Color of the "Home" link on mouseover */
    background: #4D4E67;
    }
    3) Now go to Layout and paste the structure of the menu inside a HTML/Javascript gadget:
    Add the URLs of the links and the names of the tabs and that's it.
    If you want to add more links to the first level, then add another line like this:
  • URL address">Link 12
  • If you want to add another level to the link, then the line should be like this:
  • rel="tile_0010">Link 5
  • Then in the area of ​​the second or third level, add a piece like this:
    Here you should keep something in mind, if you look closely the link takes the REL attribute which must be the same as the ID we put on the second level, these IDs should not repeat and always be unique.
    Yes, it sounds complicated, but once you understand the concept, you'll see that is actually pretty simple.
    In the area of ​​the styles, there are the parts that can be customized. If you want the menu to be static, let's say you want to add it in the sidebar, then delete the first code of the script that is in italics. And in the CSS styles, remove this part:
    position: absolute; /* Change absolute with fixed if you want it to float */
    top: 50px; /* Distance above */
    right: 760px; /* Distance to the right */
    When there are many links then, there will be showing some arrows, so when you mouseover them, it will show the rest of the links either up or down.

    Throughout the menu structure we can change the Menu name and the descriptions as well.

    As this menu is made with JQuery, it is recommended to verify to have only one version of it.

    Libellés : , ,

    dimanche 2 juin 2013

    Horizontal menu with sub-tabs in two columns for Blogger

    This is a very nice horizontal menu in which its sub-tabs are displayed in two columns and is also made with CSS, without any scripts.
    blogger navigation menu, css menu, drop-down menu
    The "advantage" so to speak, is that the sub-tabs when arranged in two columns are not very long, so it will be neat and less space along. You can see an example here:


    Adding A Horizontal Menu With Sub Tabs in Two Columns To Blogger

    STEP 1: In Blogger, go to your "Layout" and on the "Page Elements" section.
    • Click on the "Add a Gadget" link just under your header image
    • From the Gadget's List, select "HTML/JavaScript" option.
    STEP 2: Simply copy and paste this ENTIRE code into your widget. Note: Leave the "Title" section of this widget blank.
    Customize your main tabs by changing the Tab Titles to whatever you want. Include a URL for each one if you want it to be 'clickable'. If not, you can just put a # sign where it says http://YOUR URL HERE.com

    You can add or delete as many of the main tabs as you need, just make sure to copy the entire code for the main tab for each additional tab you want:
  • Tab 7 Title Here

  • STEP 3: Now let's go a step further and add the CSS style in our Template
    • Go to Template > Edit HTML
    • Click on the sideways arrow next to ... 

    • Then click anywhere inside the code area and search - using CTRL + F keys - for the ]]> tag and just above ]]> add this code:
    /* Horizontal menu with 2 columns
    ----------------------------------------------- */
    #menucol {
    width:940px;
    height:37px;
    background-image: -moz-linear-gradient(top, #666666, #000000);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #666666), color-stop(1.0, #000000));
    filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#666666,endColorStr=#000000);
    border-bottom:1px solid #666666;
    border-top:1px solid #666666;
    margin:0 auto;padding:0 auto;
    overflow:hidden;
    }
    #topwrapper {
    width:940px;
    height:40px;
    margin:0 auto;
    padding:0 auto;
    }
    .clearit {
    clear: both;
    height: 0;
    line-height: 0.0;
    font-size: 0;
    }
    #top {
    width:100%;
    }
    #top, #top ul {
    padding: 0;
    margin: 0;
    list-style: none;
    }
    #top a {
    border-right:1px solid #333333;
    text-align:left;
    display: block;
    text-decoration: none;
    padding:10px 12px 11px;
    font:bold 14px Arial;
    text-transform:none;
    color:#eee;
    }
    #top a:hover {
    background:#000000;
    color:#F6F6F6;
    }
    #top a.submenucol {
    background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtKqVt4zFRQsgaCGdqgy3sducrVULT3nywgwcEPJ38SHHOTI-dCxDQ3FD75LPxnsjEZEfS6expVGZSwAvtINIrwyA_0_q9M1daj-E1Hz7Db5OHiZLaX9B_NX-qUBS4Z8nQOzdVwCeILDU/s1600/arrow_white.gif);
    background-repeat: no-repeat;
    padding: 10px 24px 11px 12px;
    background-position: right center;
    }
    #top li {
    float: left;
    position: relative;
    }
    #top li {
    position: static !important;
    width: auto;
    }
    #top li ul, #top ul li {
    width:300px;
    }
    #top ul li a {
    text-align:left;
    padding: 6px 15px;
    font-size:13px;
    font-weight:normal;
    text-transform:none;
    font-family:Arial, sans-serif;
    border:none;
    }
    #top li ul {
    z-index:100;
    position: absolute;
    display: none;
    background-color:#F1F1F1;
    margin-left:-80px;
    padding:10px 0;
    border-radius: 0px 0px 6px 6px;
    box-shadow:0 2px 2px rgba(0,0,0,0.6);
    filter:alpha(opacity=87);
    opacity:.87;
    }
    #top li ul li {
    width:150px;
    float:left;
    margin:0;
    padding:0;
    }
    #top li:hover ul, #top li.hvr ul {
    display: block;
    }
    #top li:hover ul a, #top li.hvr ul a {
    color:#333;
    background-color:transparent;
    text-decoration:none;
    }
    #top ul a:hover {
    text-decoration:underline!important;
    color:#444444 !important;
    }
    • Now find (CTRL + F) this line:
    /* Tabs
    • It will also have some little lines beneath:
    /* Tabs
    ----------------------------------------------- */
    • And just below these little lines, delete the code below until you reach at:
    /* Columns
    ----------------------------------------------- */
    • Instead of the code that you have removed, add this one:
    #crosscol ul {z-index: 200; padding:0 !important;}
    #crosscol li:hover {position:relative;}
    #crosscol ul li {padding:0 !important;}
    .tabs-outer {z-index:1;}
    .tabs-inner {padding: 0 0px;}
    See this screenshot for more info:
    menu for blogger, blogger gadgets, blogger widgets
    STEP 4: The final step is to Save the Template and you are done!

    Visit your blog to see a beautiful navigation menu just below header.
    If you have any questions or need help, leave a comment below.

    Libellés : , , , ,

    samedi 13 avril 2013

    Create Horizontal Navigation Menu With Drop Down Submenus Using CSS

    The following drop down menu is made only with CSS, is a horizontal menu with sub-tabs and the right side has a rounded search. A menu is handy for those who do not require complex menus or prefer not to use one that requires scripts and/or too many images, also the installation and customization is quite simple, and to top it off is quite functional.
    To see this drop down menu in action, visit this demo blog

    blogger menu, drop down menu, css menu

    Prior to doing anything, if you are using a Template made through Blogger Template Designer, then you should consider doing these changes in the template, otherwise the menu might not be displayed correctly:

    From your Blogger's Dashboard, go to Template (make a backup < see the screenshot) > Edit HTML:


    and search (CTRL + F) for the following line:

    class='tabs' id='crosscol' maxwidgets='1' showaddelement='yes'>

    Screenshot

    Remove the code in red.
    You may have many parts as the one in red, delete all you find.

    ....then find this section in your template:
    /* Tabs
    ----------------------------------------------- */

    ...and remove all that is within it, until you reach to the Headings part.

    /* Tabs
    ----------------------------------------------- */
    .tabs-outer {
    overflow: hidden;
    position: relative;
    background: $(tabs.background.color) $(tabs.background.gradient) repeat scroll 0 0;
    }

    #layout .tabs-outer {
    overflow: visible;
    }

    .tabs-cap-top, .tabs-cap-bottom {
    position: absolute;
    width: 100%;

    border-top: 1px solid $(tabs.border.color);

    }

    .tabs-cap-bottom {
    bottom: 0;
    }

    .tabs-inner .widget li a {
    display: inline-block;

    margin: 0;
    padding: .6em 1.5em;

    font: $(tabs.font);
    color: $(tabs.text.color);

    border-top: 1px solid $(tabs.border.color);
    border-bottom: 1px solid $(tabs.border.color);
    border-$startSide: 1px solid $(tabs.border.color);
    }

    .tabs-inner .widget li:last-child a {
    border-$endSide: 1px solid $(tabs.border.color);
    }

    .tabs-inner .widget li.selected a, .tabs-inner .widget li a:hover {
    background: $(tabs.selected.background.color) $(tabs.background.gradient) repeat-x scroll 0 -100px;
    color: $(tabs.selected.text.color);
    }

    /* Headings
    ----------------------------------------------- */

    Then add this to where the code has been removed (instead of the code in green):
    #crosscol ul {z-index: 200; padding:0 !important;}
    #crosscol li:hover {position:relative;}
    #crosscol ul li {padding:0 !important;}
    .tabs-outer {z-index:1;}
    .tabs .widget ul, .tabs .widget ul {overflow: visible;}
    Having done this, we can finally add our menu.

    How To Add Horizontal Drop Down Menu to Blogger

    To put this horizontal menu with submenus in your blog, then follow the next steps:

    Step 1. From Template, go to Edit HTML and just above ]]> paste these styles:
    /* Horizontal drop down menu
    ----------------------------------------------- */
    #menuWrapper {
    width:100%; /* Menu width */
    height:35px;
    padding-left:14px;
    background:#333; /* Background color */
    border-radius: 10px; 
    }
    .menu {
    padding:0;
    margin:0;
    list-style:none;
    height:35px;
    position:relative;
    z-index:5;
    font-family:arial, verdana, sans-serif;
    }
    .menu li:hover li a {
    background:none;
    }
    .menu li.top {display:block; float:left;}
    .menu li a.top_link {
    display:block;
    float:left;
    height:35px;
    line-height:34px;
    color:#ccc;
    text-decoration:none;
    font-family:"Verdana", sans-serif;
    font-size:12px; /* Font size */
    font-weight:bold;
    padding:0 0 0 12px;
    cursor:pointer;
    }
    .menu li a.top_link span {
    float:left;
    display:block;
    padding:0 24px 0 12px;
    height:35px;
    }
    .menu li a.top_link span.down {
    float:left;
    display:block;
    padding:0 24px 0 12px;
    height:35px;
    }
    .menu li a.top_link:hover, .menu li:hover > a.top_link {color:#fff; }
    .menu li:hover {position:relative; z-index:2;}
    .menu ul,
    .menu li:hover ul ul,
    .menu li:hover ul li:hover ul ul,
    .menu li:hover ul li:hover ul li:hover ul ul,
    .menu li:hover ul li:hover ul li:hover ul li:hover ul ul
    {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}

    .menu li:hover ul.sub {
    left:0;
    top:35px;
    background:#333; /* Submenu background color */
    padding:3px;
    white-space:nowrap;
    width:200px;
    height:auto;
    z-index:3;
    }
    .menu li:hover ul.sub li {
    display:block;
    height:30px;
    position:relative;
    float:left;
    width:200px;
    font-weight:normal;
    }
    .menu li:hover ul.sub li a{
    display:block;
    height:30px;
    width:200px;
    line-height:30px;
    text-indent:5px;
    color:#ccc;
    text-decoration:none;
    }
    .menu li ul.sub li a.fly {
    /* Submenu Background Color */
    background:#333 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRzQl-namkthM42__QJv1h1shPIRwRx3hle0091HHxcPQLUYMunjqyT5jKbfpFvWhnJzpMBcxodz7wPhaPtupPuCQ2bMPcuOrHw6huNIjnIgHKgR9PC2_z-eyy50UmuaY-rdJuCKgyiPs/s1600/arrow_over.gif) 185px 10px no-repeat;}
    .menu li:hover ul.sub li a:hover {
    background:#515151; /* Background Color on mouseover */
    color:#fff;
    }
    .menu li:hover ul.sub li a.fly:hover, .menu li:hover ul li:hover > a.fly {
    /* Background on Mouseover */
    background:#646464 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRzQl-namkthM42__QJv1h1shPIRwRx3hle0091HHxcPQLUYMunjqyT5jKbfpFvWhnJzpMBcxodz7wPhaPtupPuCQ2bMPcuOrHw6huNIjnIgHKgR9PC2_z-eyy50UmuaY-rdJuCKgyiPs/s1600/arrow_over.gif) 185px 10px no-repeat; color:#fff;}

    .menu li:hover ul li:hover ul,
    .menu li:hover ul li:hover ul li:hover ul,
    .menu li:hover ul li:hover ul li:hover ul li:hover ul,
    .menu li:hover ul li:hover ul li:hover ul li:hover ul li:hover ul {
    left:200px;
    top:-4px;
    background: #333; /* Background Color of the Submenu */
    padding:3px;
    white-space:nowrap;
    width:200px;
    z-index:4;
    height:auto;
    }
    #search {
    width: 228px; /* Width of the Search Box */
    height: 50px;
    float: right;
    z-index: 2;
    text-align: center;
    margin-top: 5px;
    margin-right: 6px;
    /* Background of the Search Box */
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF7uI53pFp0pjViMDN3a2vVuvP4B2718wwsP8SlUy2gPIq0mBQoo3__ZywvvpxLh4RN7ZpCGqOziVr7NaoxYauRx4OCVab2auhm2HNslp_YN173QKgZriCF6ZHOdgqXkK7pBJy6SjfiGs/s1600/searchBar1.png) no-repeat;
    }
    #search-box {
    margin-top: 3px;
    border:0px;
    background: transparent;
    text-align:center;
    }


    Screenshot
    Step 2. Save the Template


    Step 3. Go to Layout > click on Add a Gadget link


    Step 4. Choose HTML/Javascript and paste the following inside the empty box:


    Customization:

    - replace the text in blue and red with your links and titles.
    - if you need more tabs, then add a line like this just above

  • Link URL" class="top_link">Title

  • - if you want to add a tab with sub-tabs, then add this code:

  • Link URL" class="top_link">Title


  • - and if you want one of the other sub-tabs have sub-tabs then remove a line like the one in orange and change it to a code like this:

  • Link URL" class="fly">Submenu Title


  • And that's it! Now Save your Widget and enjoy your new drop down menu! ;)

    Libellés : , , , ,