Showing posts with label Blog Editing. Show all posts
Show Blogger Image Only In Homepage And Hide It In Post Page
To hide images/pictures from our blogger posts and to make them appear only in homepage, we will have to add just a small piece of CSS code in our template and then use the class "hidepic" each time we want to hide an image.
Just follow the next steps:
Step 1. Go to Dashboard - Template - Edit HTML ( click on Proceed button )
Step 2. Select "Expand Widget Template" (make a backup)
Step 3. Find (CTRL + F) this code in your template:
Note: it should be at the exact location where your image has been added
(if the image is at the middle of the text, then the code should be found at the middle)
Step 6. Replace "separator" with "hidepic" - see the screenshot below:
Just follow the next steps:
Step 1. Go to Dashboard - Template - Edit HTML ( click on Proceed button )
Step 2. Select "Expand Widget Template" (make a backup)
Step 3. Find (CTRL + F) this code in your template:
}]]></b:skin>
Step 4. Copy and paste the following code just below it
<b:if cond='data:blog.pageType != "index"'>
<style>
.hidepic{
display: none;
}
</style>
</b:if>
Step 5. Save the Template.
Now everytime you create a post, firstly add the pic you want to hide and then switch to HTML tab where you'll see the HTML code of the image you have added that will look something like this:
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfewCoZF5bV-KLqHL4OH2JGtpLLdSTuIuf-i38UwCbcIgKRyBPQaSN5UZMyjp4kUZ52ew3uW5-0HGE8jhMWAZ-X00TI9zMcVGt6SQ2ZYdei9wpKeP5UDm6jQDs1H1XNvShCMtDaM64-N4/s1600/fire_bird_by_fhrankee-d32af8v.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfewCoZF5bV-KLqHL4OH2JGtpLLdSTuIuf-i38UwCbcIgKRyBPQaSN5UZMyjp4kUZ52ew3uW5-0HGE8jhMWAZ-X00TI9zMcVGt6SQ2ZYdei9wpKeP5UDm6jQDs1H1XNvShCMtDaM64-N4/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>
Note: it should be at the exact location where your image has been added
(if the image is at the middle of the text, then the code should be found at the middle)
Step 6. Replace "separator" with "hidepic" - see the screenshot below:
If you need more help, please leave a comment below.
How To Remove Showing Posts With Label In Blogger
For any default Blogger layout, the "Showing posts with label" message shows up above the posts whenever you click on a label link. As it's a pretty useless and annoying message, many people like to have it removed. If that is your wish, just follow the tutorial below:
Removing "Showing post with label...show all posts"
Step 1. Go to Dashboard - Template - Edit HTML (if necessary, click on Proceed button)
Step 2. Select "Expand Widget Template" (make a backup)
Step 3. Now find (CTRL+F) this code in the template:
<b:includable id='status-message'><b:if cond='data:navMessage'><div class='status-msg-wrap'><div class='status-msg-body'><data:navMessage/></div><div class='status-msg-border'><div class='status-msg-bg'><div class='status-msg-hidden'><data:navMessage/></div></div></div></div><div style='clear: both;'/></b:if></b:includable>
Step 4. Delete the code from above and replace it with this one:
<b:includable id='status-message'><b:if cond='data:navMessage'><div></div><div style='clear: both;'/></b:if></b:includable>
Step 5. Save the template. Now view your blog and click on some label....there should be no box anymore.
How To Add Or Change Favicon On Blogger Blogspot
Favicon (Favorites Icon) is the small picture (usually 16px x 16px in size) you see beside some some site's name in your browser's address bar. Having your own favicon with a nice graphical reminder of your site beside is a good way to get visitors attention. Blogger users can add a custom favicon for their blogs going to the Layout section and by clicking on the Edit link on the "Favicon" element.
"For many bloggers, having a custom favicon (the tiny image displayed in your browser’s window or tab) is the finishing touch that ties together the design and identity of a great looking blog. Today, we're pleased to announce that Blogger in Draft users can now add a customized favicon to their blog. ~Blogger in Draft"
How To Add a Favicon to Your Blogger Blog
Step 1. Log in to your Blogger's Dashboard, go to the Layout and click on Add a Gadget link
Step 2. Click on the "Edit" link on the "Favicon" setting above the navbar element.
Step 3. A popup window will open where you can search for an image in your hard drive to replace the default favicon image. Click on "Browse" button and search for your favicon (it should have the .ico extension) - then click on "Save".
Step 4. Now you should see your own favicon instead of blogger's default favicon.
It might take some time until your new favicon will appear in your Browser's tab or window.
If you want to add animated favicons to your Blogger blogs, then follow this method below.
How to add an animated favicon in Blogger
Step 1. Log in to your Blogger account > Template > Edit HTML (if needed, click on Proceed button)
Step 2. Select the "Expand widget templates" box
Step 3. Search (CTRL + F) for:
<b:skin>
Step 4. Paste this code just above it:
<link href="your-favicon-links-goes-here" rel="icon" type="image/gif"/>
See the screenshot for more details
Note: replace your-favicon-links-goes-here with your favicon's link location
You can choose from here some cool favicons for your site/blog: http://www.favicon.cc/ (just download the favicon you like - upload it on tinypic or on a blogger's post, then copy the link address/direct link)
Step 5. Save the Template. And you're done!
How To Number Comments In Blogger/BlogSpot
This Blogger hack will show you how to add comment count inside a speech bubble, so that you & your readers can use the numbers to mention or point to a particular comment on any of your posts and besides this, it could as well improve the look and feel of your blog.
Note: This works with the previous blogger commenting system, so if you want to add this hack, you should remove first the Blogger threaded comments. Learn here How to remove Blogger threaded comments
UPDATE! Now you can add comment bubble in your threaded comments too. Read this tutorial:
How to Add Numbered Comments In Threaded Comments
How to add numbered comments on our Blogger/Blogspot blog
Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)
Step 2. Select "Expand Widget Template" (make a backup)
Step 3. Now find (CTRL+F) the following code in your template:
<b:loop values='data:post.comments' var='comment'>
Step 4. Immediately above/before it, paste this code:
<script type='text/javascript'>var CommentsCounter=0;</script>
Step 5. Find this code:
<data:commentPostedByMsg/>
Step 6. And immediately below/after it, copy and paste this:
<!--comments-count-starts--><span class='comments-number'><a expr:href='data:comment.url' title='Comment Link'><script type='text/javascript'>CommentsCounter=CommentsCounter+1;document.write(CommentsCounter)</script></a></span><!--comments-count-stops-->
Step 7. Find (CTRL+F) this tag in the template:
</head>
Step 8. Paste this code just above/before it:
<!-- comments-count-starts--><style type="text/css">.comments-number a:link, .comments-number a:visited {color: black !important;text-decoration: none !important;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_OFusE4GjsN3BWOdAaTH875YBliL8RK64E_B_-GG32djRoVTCc9d-XcAXWrT_VTH_SsZQhEBIdwW4TLwxWIrTBpMzg6SFEREO7_kjTkLf6EkWx5sSVukFOOMDg1_U3GjMYazUcqPfqYZw/s1600/comment+bubble+1.png) no-repeat;width: 50px; /*image-width size*/height: 48px; /*image-height size*/float: right;display: block;margin-right: 5px;margin-top: -15px; /*comments-counter position*/text-align: center;font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;font-size: 15px;font-weight: normal;}.comments-number a:hover, .comments-number a:active {color: #1BA0E1 !important;text-decoration: none !important;}</style><!-- comments-count-stops-http://technology-chirp.blogspot.com-->
Note:
- To change the comment bubble, replace the red text from above with your own address
- To change the color of the numbers, replace the blue text with the hex value of your color
Comment Bubbles
To choose a comment bubble, right-click on the image and select "Copy Image Address/Location":
















IMPORTANT: You could use any image instead of the one linked in the code above (STEP 8) but after that, you should modify the size values (width and height), so that the numbers inside the bubble to be correctly adjusted.
Step 9. Save the template... and enjoy your comments :]
You might also be interested in this tutorial from the same category:
Search It On Search Box On Our Website |> How to Add a Comment Bubble to Blogger Post Titles.
How To Hide Blogger Sidebar To Display AdSense For Search Results
How To Hide Blogger Sidebar To Display AdSense For Search Results |> When visitors are searching for content on your blog, you have the following options to display the search results: opening the results in the same window, in a new window or within your own site using an iframe.
But the best option is to display the search results in your own site/blog, mainly because you are not sending people off your blog and when they are taken to a new page of search results, so it could be confusing many times because it doesn't look anything like your site or Google. Therefore, displaying the search results within your site, could look more professional and could also increases your page views and your revenue from the ads on the search page.
A problem that many bloggers are facing is that the page which displays the AdSense for search results must be at least of 800 px wide, so the posting area must be of minimum 800px and there's nothing like that in most of the blogs.
So, what we will do in this tutorial is to set up the search results to be displayed in a static page (none of other posts or pages will be affected) where we'll remove the sidebar, so that we'll have enough space to make the post/page section of 800px wide. Also, we will create a static page specially designed for the search results, then create a new AdSense for search in our AdSense account and finally add a small snippet of code top in your Blogger template to hide the sidebar in that specific page.
Search results span the width of the page with the sidebar hidden:
Display AdSense For Search Results Within Blogger Page
Step 1. Create a new static page on your blog, you can give it the title 'Search Results' but leave the content section empty and then Publish the page.
Step 2. When you publish the page you have the option to add the page to a menu, choose the third option 'No Gadget Link To Pages Manually' click 'Save and Publish'. OR in case this screen will not appear, right click onView Page and select Copy Link Address. We will need this URL of the page when creating the AdSense for search.
Step 3. Go To Your AdSense account, then go to My ads tab, select the Search option and Create a New custom search engine. Follow the steps until you come to the Search results option.
Step 4. Select the 3rd method "on my website using an iframe", then Enter the URL of the page you created into the URL field and continue.
Step 5. Follow the rest of the set up process, at the end you will be given two pieces of code. The first piece of code is for the actual search bar that you can paste into a Html/Javascript gadget in your sidebar or wherever you want it. The second piece of code you must copy and paste into a new HTML/JavaScript gadget and after clicked on Save - drag it above the Blog Posts area
Now that you have your page set up with the search results code and your search bar code in your sidebar, it is time to add a snippet of code to your template to remove the sidebar.
Adding The Code In Blogger To Change the Results Page Layout
Step 1. In Your Blogger Dashboard, go to Template > Edit HTML - then click Proceed
Step 2. Select the "Expand widget templates" box
Step 3. Find (CTRL + F) the following piece of code
Note: Replace PAGE-URL-HERE with the url address of the page where the search results will be displayed (the one you have added at the step 4)
Step 5. Now Save Template and you're done!
This simple trick allows you not only to hide the sidebar in the search results page, you can, as well, hide it in any page you want... just create your page and follow the same steps. It is also good to hide the sidebar in Privacy Policy Pages, Contact Pages and in all the non-content-based pages with little content or no content at all.
But the best option is to display the search results in your own site/blog, mainly because you are not sending people off your blog and when they are taken to a new page of search results, so it could be confusing many times because it doesn't look anything like your site or Google. Therefore, displaying the search results within your site, could look more professional and could also increases your page views and your revenue from the ads on the search page.
A problem that many bloggers are facing is that the page which displays the AdSense for search results must be at least of 800 px wide, so the posting area must be of minimum 800px and there's nothing like that in most of the blogs.
So, what we will do in this tutorial is to set up the search results to be displayed in a static page (none of other posts or pages will be affected) where we'll remove the sidebar, so that we'll have enough space to make the post/page section of 800px wide. Also, we will create a static page specially designed for the search results, then create a new AdSense for search in our AdSense account and finally add a small snippet of code top in your Blogger template to hide the sidebar in that specific page.
Search results span the width of the page with the sidebar hidden:
Display AdSense For Search Results Within Blogger Page
Step 1. Create a new static page on your blog, you can give it the title 'Search Results' but leave the content section empty and then Publish the page.
Step 2. When you publish the page you have the option to add the page to a menu, choose the third option 'No Gadget Link To Pages Manually' click 'Save and Publish'. OR in case this screen will not appear, right click onView Page and select Copy Link Address. We will need this URL of the page when creating the AdSense for search.
Step 3. Go To Your AdSense account, then go to My ads tab, select the Search option and Create a New custom search engine. Follow the steps until you come to the Search results option.
Step 4. Select the 3rd method "on my website using an iframe", then Enter the URL of the page you created into the URL field and continue.
Now that you have your page set up with the search results code and your search bar code in your sidebar, it is time to add a snippet of code to your template to remove the sidebar.
Adding The Code In Blogger To Change the Results Page Layout
Step 1. In Your Blogger Dashboard, go to Template > Edit HTML - then click Proceed
Step 2. Select the "Expand widget templates" box
Step 3. Find (CTRL + F) the following piece of code
]]></b:skin>
Step 4. Just below it, paste this code:
<b:if cond='data:blog.url == "PAGE-URL-HERE"'>
<style>
.main-inner .columns {
padding-left: 0px !important;
padding-right: 0px !important;
}
.main-inner .fauxcolumn-center-outer {
left: 0px !important;
right: 0px !important;
}
.main-inner .fauxcolumn-left-outer, .main-inner .fauxcolumn-right-outer, .main-inner .column-left-outer, .main-inner .column-right-outer {
display: none !important;
}
</style>
</b:if>
Note: Replace PAGE-URL-HERE with the url address of the page where the search results will be displayed (the one you have added at the step 4)
This simple trick allows you not only to hide the sidebar in the search results page, you can, as well, hide it in any page you want... just create your page and follow the same steps. It is also good to hide the sidebar in Privacy Policy Pages, Contact Pages and in all the non-content-based pages with little content or no content at all.












