How To Use Dreamweaver |
Showing posts with label Web Development. Show all posts
Showing posts with label Web Development. Show all posts
Tuesday, February 5, 2013
Saturday, February 2, 2013
How To Add Different Background Color Or Image In Each Blogger Post
How To Add Different Background Color Or Image In Each Blogger Post
If you have multiple authors in a blog or want to make a specific post stand-out, you can make your posts to appear in different color or place a background image behind your posts.
In this tutorial i will show you how you can do this by adding some simple codes in your Blogger posts. (observation: this won't take effect if you have the read more function enabled on your blog...)
Change the color of the post background
When you create a post, switch to Edit HTML, near the Compose tab.
Add the following code just at the beginning and at the end of your post content.
It's done by wrapping your Post content into a "div" element. You can apply this setting anytime to your already published posts too or change/remove it.
Add a background image behind the Blogger post
Now click PUBLISH POST and you are done.
In this tutorial i will show you how you can do this by adding some simple codes in your Blogger posts. (observation: this won't take effect if you have the read more function enabled on your blog...)
Change the color of the post background
When you create a post, switch to Edit HTML, near the Compose tab.
Add the following code just at the beginning and at the end of your post content.
<div style="background-color: #DCC368; padding: 5px 8px 5px 8px;">
Your text goes here...</div>
- place the red line at the BEGINNING of your post.
- add the div tag in blue at the END of your post.
- replace the part in green with preferred color hex value.
- instead of "Your text here...." you will have your Post content.
It's done by wrapping your Post content into a "div" element. You can apply this setting anytime to your already published posts too or change/remove it.
Here's the example of the placed code in the Post Edit box:
Add a background image behind the Blogger post
<div style="background-image: url(IMAGE-URL-HERE); background-repeat: no-repeat; ">
Your text goes here...</div>
- in green, you need to place the URL address of your hosted picture (use Photobucket, Tinypic etc.)
- in red is the line you have to place at the BEGINNING of your post.
- in blue is the line you have to place at the END.
- instead of "Your text here...." you have your Post content (if not, switch back to Compose tab, type your post content and then come back to edit your post)
Now click PUBLISH POST and you are done.
Recommended Post Slide Out Widget For Blogger
Recommended Post Slide Out Widget For Blogger
You know those popup messages that slide out from the bottom right corner once you’ve almost reached the bottom of the page? Well, they used to be available only on WordPress but not anymore; now Blogger users can enjoy it too! The Recommended Post slide Out Widget is an invitation to the reader to read any other post once he has read one of your blog entries. It's both useful for you (can improve your Click Through Rate (CTR) ) and for your blog visitors too.
Demo
Scroll down to the bottom of the post and you should see the Recommended Slide Out Widget appearing in the right corner of blog's page.
How to add the Recommended Post Slide out Widget
1. Log in into your Blogger account, then go to Design (or Layout) > Page Elements
2. Click on Add a Gadget Link
3. Choose "HTML/JavaScript" option
4. Paste this code inside the empty box:
5. Save The Widget.
6. Go to Edit HTML > Check the "Expand Widget Template" box
7. Search (CTRL + F) for the following code :
OR
OR
Immediately below any of these lines, add the following snippet
Now when the reader scrolls down to this div, the slide will open up.
8. Save your template. And that's it!
Demo
Scroll down to the bottom of the post and you should see the Recommended Slide Out Widget appearing in the right corner of blog's page.
How to add the Recommended Post Slide out Widget
1. Log in into your Blogger account, then go to Design (or Layout) > Page Elements
2. Click on Add a Gadget Link
3. Choose "HTML/JavaScript" option
4. Paste this code inside the empty box:
<div id="hlslidein" style="display:none;"> <div class="help">?</div><div class="expand">+</div> <div class="close">X</div> <p>Recommended for you</p> <div id="hlslidein_image"></div> <div id="hlslidein_title">Loading..</div> </div> <script> if(document.location.href.split("/").length==6&&document.location.href.indexOf(".html")!=-1){if(typeof hl_onload_queue=='undefined')var hl_onload_queue=[];if(typeof hl_dom_loaded=='boolean')hl_dom_loaded=false;else var hl_dom_loaded=false;if(typeof hl_async_loader!='function'){function hl_async_loader(src,callback,id){var script=document.createElement('script');script.type="text/javascript";script.async=true;script.src=src;script.id=id;var previous_script=document.getElementById(id);if(previous_script)if(previous_script.readyState=="loaded"||previous_script.readyState=="complete"){callback();return}else{script=previous_script}if(script.onload!=null)previous_callback=script.onload;script.onload=script.onreadystatechange=function(){var newcallback;if(previous_script&&previous_callback)newcallback=function(){previous_callback();callback()};else newcallback=callback;if(hl_dom_loaded){newcallback()}else hl_onload_queue.push(newcallback);script.onload=null;script.onreadystatechange=null};var head=document.getElementsByTagName('head')[0];if(!previous_script)head.appendChild(script)}}if(typeof hl_domLoaded!='function')function hl_domLoaded(callback){hl_dom_loaded=true;var len=hl_onload_queue.length;for(var i=0;i<len;i++){hl_onload_queue[i]()}}hl_domLoaded();hl_async_loader("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",function(){hl_async_loader("http://helplogger.googlecode.com/svn/trunk/Recommended Post Slide Out For Blogger Blogspot.js",function(){},"hl-out-slide")},"jQueryjs")} </script> <a href="http://helplogger.blogspot.ro/2012/06/recommended-post-slide-out-widget-for.html" target="_blank"></a>
5. Save The Widget.
6. Go to Edit HTML > Check the "Expand Widget Template" box
7. Search (CTRL + F) for the following code :
<div class='post-footer-line post-footer-line-1'>
OR
<p class='post-footer-line post-footer-line-1'>
OR
<data:post.body/>
Immediately below any of these lines, add the following snippet
<b:if cond='data:blog.pageType == "item"'>
<div style='display:none' id='bpslidein_place_holder'></div>
</b:if>
Now when the reader scrolls down to this div, the slide will open up.
8. Save your template. And that's it!
How do I add a Facebook "Like" button to my homepage
How do I add a Facebook "Like" button to my homepage
To have a Like Button on your Home Page, you'll need to make sure that you have a Facebook page first.
Generate the Code for the Like Button
1.) First, follow this link: https://developers.facebook.com/docs/reference/plugins/like/
2.) Fill in the required information and click on Get Code. (The URL to Like is your Facebook page URL.)

A lightbox will now display on your screen with the three different ways of implementing the Facebook Like button; the most flexible is the HTML5 version, though the most compatible is the XFBML version. The IFRAME version is the easiest to install, but you will not be able to have a "Send" button as you see in the above graphic. Keep this page open while we navigate to the correct area on your store.
Installing the Code on your Store
All versions will need to be installed on the default.html page to display on your Home Page. (If you have a custom Home Page or want to place these somewhere else, you will need to go to that template file to place the code there.)
1.) Login to your store's Control Panel.
2.) Click on Design.

3.) Click on the Browse Template Files button. This will open a new window with the contents for your Home Page (default.html).

Here's where the instructions diverge, so click on your chosen version of the Facebook "Like" Button:
HTML5 vs. XFBML vs. IFRAME
HTML5:
4.) From the page where you generated your code, copy the content in the top box.

5.) Go back to your default.html, and paste the code after the opening tag.

6.) On the page where you generated your Facebook code, copy the content in the second box.

7.) Back on default.html paste this where you want the code for your Facebook Like button. Here, we are pasting it to display above all the content in the middle column. You may choose to paste this information where you like, however.

8.) Click Save in the top left corner.

9.) Visit your home page to make sure the Like button is now there.

XFBML:
4.) From the page where you generated your Facebook code, copy the content in the first box:

5.) Go back to your default.html, and paste the code after the opening tag.

6.) Go back to the Facebook code page and copy the content from the second box.

7.) Back on the default.html page, add your copied code to the tag as you see below. You will need to delete the non-highlighted portion as you see in the above picture.

8.) Now, go back to the Facebook site and copy the last box of code.

9.) On your default.html page, copy the final piece of code wherever you want your Like button to display. For this example, I pasted it above all the content in the middle column.

10.) Click Save in the top left corner.

11.) Go to your home page for your store and make sure that your Like button displays.
4.) From the page where you generated your Facebook code, copy the content from the box.

5.) Go to your default.html page and paste in the code wherever you want your Like button to appear. For this example, we're pasting it to display above all the content in the middle column.

6.) Click Save in the top left corner.

7.) Go to your store's home page to make sure the button is displaying properly.

Subscribe to:
Posts (Atom)

