Hello guys,Today inward this article nosotros are going to part how to add together social media part buttons in addition to search buttons amongst exhibit /hide function.One of our precious user asked for this play tricks in addition to today nosotros are sharing..if you lot guys want's whatever other features or whatever widget you lot tin dismiss contact us in addition to nosotros volition crusade our best to prepare them.Display in addition to enshroud search push clit amongst social part profiles is rattling unique to exercise in addition to it's accept rattling less infinite of your webpage.There are lot's of gadget for social part in addition to including search push clit inward it.but this is footling chip dissimilar when you lot click on search push clit social media part buttons volition enshroud in addition to search cast volition active in addition to and then ane time to a greater extent than you lot click on cross push clit search push clit volition hold upwards enshroud in addition to social media part profiles volition move yesteryear active.
Demo:
See the Pen New 2016 Show/Hide Social Share With Search Button For Blogger yesteryear (@bloggersstand) on CodePen.
The best house for display social media part buttons inward correct side of the card or below the header,however you lot tin dismiss install these buttons into your sidebar too.But nosotros recommend add together them inward your navigation card box or inward header.So to install search push clit amongst social media part exhibit in addition to enshroud business office inward blogger template only follow the steps mentioned below.
How to install social part profiles amongst exhibit in addition to enshroud search button
installation steps:
Step 1. Log inward to your Blogger draw of piece of employment organisation human relationship in addition to Go to your Blogger Dashboard.
Step 2. Now Click on -> Template -> Edit HTML.
Step 3. First Search for <head> by Pressing Ctrl+F keys in addition to Copy the below Font Awesome Icons stylesheet in addition to glue it only below the <head> tag.
Step 3. First Search for <head> by Pressing Ctrl+F keys in addition to Copy the below Font Awesome Icons stylesheet in addition to glue it only below the <head> tag.
<link href='//netdna.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css' rel='stylesheet'/>
Step 4. Now Search for ]]></b:skin> or </style> by Pressing Ctrl+F keys.
Step 5. Copy the below CSS code in addition to glue it only earlier the ]]></b:skin> or </style> tag.
Step 8. Now re-create the below HTML code in addition to glue it where always you lot desire to display social part profile buttons inward blogger template,for temporary exercise inward this tutorial nosotros are adding buttons inward sidebar,So to add together inward sidebar only move yesteryear to Layout->Add a gadget->HTML/JAVASCRIPT in addition to glue the below code inward the box,after that relieve it.
Step 9. Save your gadget..Done !
/* Social Media Profile Buttons amongst Show-Hide Function yesteryear www.Bloggersstand.com */Step .6 Now Search for </body> tag in addition to re-create the below javascript in addition to glue it only higher upwards </body> it.
.search-bsdprofile {
position: relative;
width: 249px;
}
#search-box {
width: 100%;
padding-right: 37px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
#search-box cast {
position: absolute;
top: 0;
right: 37px;
display: block;
height: 31px;
padding: 0;
margin: 0px;
border: 1px corporation #80C8FE;
border-radius: 3px;
line-height: 31px;
background: #fff;
}
#search-form,
.search-bsdbutton {
border: none!important;
line-height: 29px
}
#search-form {
color: #80C8FE;
width: 100%;
padding: 0 29px 0 9px;
height: 28px;
font-size: 13px;
margin: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.search-bsdbutton {
padding: 0 9px;
text-align: center;
margin: 0;
top: 1px;
right: 1px;
font-size: 15px;
color: #80C8FE;
position: absolute;
background: none;
cursor: pointer;
}
#search-form:focus,
#search-form:hover,
.search-button:focus,
.search-button:hover {
border: none;
outline: 0;
color: #00477D
}
.bsdprofile {
position: absolute;
top: 2px;
right: 37px;
}
.bsdprofile ul {
padding: 0!important;
margin: 0!important;
}
.bsdprofile li {
display: inline-block;
margin-left: 5px
}
.bsdprofile a {
color: #80C8FE;
font-weight: 500;
font-size: 23px
}
.bsdprofile a:hover {
color: #00477D!important
}
#search-box,
#close-icon {
display: none;
}
.search-icon {
color: #00477D;
float: right;
cursor: pointer;
}
.search-icon .fa-search,
.search-icon .fa-times {
color: #fff;
}
<script type='text/javascript'>Step 7. Now Save your template.."if you lot are adding widget inward sidebar if non in addition to then outset install the below html code inward your template in addition to then solely relieve your template."
//<![CDATA[
function openbsdprofile() {
var e = document.getElementById("bsdprofile");
"none" !== e.style.display ? e.style.display = "none" : e.style.display = "block";
var e = document.getElementById("search-box");
"block" !== e.style.display ? e.style.display = "block" : e.style.display = "none";
var e = document.getElementById("search-icon");
"none" !== e.style.display ? e.style.display = "none" : e.style.display = "block";
var e = document.getElementById("close-icon");
"block" !== e.style.display ? e.style.display = "block" : e.style.display = "none";
};
//]]>
</script>
Step 8. Now re-create the below HTML code in addition to glue it where always you lot desire to display social part profile buttons inward blogger template,for temporary exercise inward this tutorial nosotros are adding buttons inward sidebar,So to add together inward sidebar only move yesteryear to Layout->Add a gadget->HTML/JAVASCRIPT in addition to glue the below code inward the box,after that relieve it.
<div class='search-bsdprofile'>
<div id='search-box'>
<form action='/search' method='get'>
<input id='search-form' itemprop='query-input' name='q' placeholder='Type here.....' required='required' type='text' />
<button class='search-bsdbutton' title='Search' type='submit'><i class='fa fa-search'></i></button>
</form>
</div>
<div class='bsdprofile' id='bsdprofile'>
<ul>
<li><a href='https://www.facebook.com/bloggersstand' target='_blank' title='Facebook'><i class='fa fa-facebook-square fa-lg'></i></a></li>
<li><a href='https://twitter.com/bloggersstand' target='_blank' title='Twitter'><i class='fa fa-twitter-square fa-lg'></i></a></li>
<li><a href='https://plus.google.com/bloggersstand target='_blank' title='Google+'><i class='fa fa-google-plus-square fa-lg'></i></a></li>
<li><a href='id.linkedin.com/in/bloggersstand' target='_blank' title='LinkedIn'><i class='fa fa-linkedin-square fa-lg'></i></a></li>
<li><a href='//www.youtube.com/c/bloggersstand' target='_blank' title='Youtube'><i class='fa fa-youtube-square fa-lg'></i></a></li>
</ul>
</div>
<div class='search-icon' onclick='openbsdprofile()'>
<div class="fa-stack" id="search-icon">
<i class="fa fa-square fa-stack-2x"></i>
<i class="fa fa-search fa-stack-1x"></i>
</div>
<div class="fa-stack" id="close-icon">
<i class="fa fa-square fa-stack-2x"></i>
<i class="fa fa-times fa-stack-1x"></i>
</div>
</div>
</div>
Customization:
- Replace the higher upwards highlighted bloggersstand amongst your username.
No comments:
Post a Comment