Showing posts with label Blogger tweaks. Show all posts
Showing posts with label Blogger tweaks. Show all posts

How to add Facebook Like Popup box widget for blogger/wordpress.. Adding facebook fan/like Popup box for a website.. FB like page code

Views:



Add Facebook Like Popup Box widget for Blogger/Wordpress



FB pop up page


Follow below steps to Add Facebook Like Popup Box widget for Blogger/Wordpress:

Step 1
Log in into Blogger/Wordpress Dashboard.

Step 2
Go to Template and Click on Edit HTML Button 

Step 3
Find below Code With the help of CTRL+F
</body>

Step 4
Copy and Paste below code before </body>:

How to Add QR Codes to your Printed Webpages

Views:

When you print any web page, your web browser will automatically add the URL of the site in either the footer or the header area of all the printed pages. This is useful because you will always remember the source website where you printed those pages from.
The problem is that web page URLs can be long and complex and people are likely to make errors typing them into the browser.
An alternative would be that you create a short URL (using bit.ly or goo.gl) and append it all your printed pages. The other more convenient option is that you add a QR code to the printed copy that will link the printed page to the source web page with a quick scan.
QR Code on Printed Webpage
A QR Code in the print copy of a web page

Add a QR Code to Printed Web Pages using CSS

You will be surprised to know how easy it is to add a QR code to any web page.
If you want to implement this amazing stuff in your site, just add the following snippet to your website template.
<style type="text/css">
@media print {
       body:after{
            content:url(http://chart.googleapis.com/chart?
                  cht=qr&chs=200x200&choe=UTF-8&chld=H&chl=<<URL>>)
            }
}
</style>

*Replace URL with the actual URL of your web page
We are basically adding a QR Code image after the <body> tag and since the CSS media type is set to “print,” the QR Code will only appear in the printed version of the page. The QR Code is generated dynamically using the Google Charts API and will vary based on the URL.
WordPress – To add QR Code support in WordPress print stylesheets, open the template file of your WordPress (like header.php or even index.php) and copy-paste the following code anywhere inside the <head> tag:
<?php if (is_single()) : ?>
 <style type="text/css">
    @media print {
      body:after { content:url ( 
         http://chart.googleapis.com/chart?cht=qr&chs=200x200&choe=UTF-8&chld=H&chl=<?= the_permalink(); ?>)
      }
    }
 </style>
<?php endif; ?>
Blogger – The equivalent code for classic Blogger templates would be something like this. If you are using the new XML based Blogger templates, you probably need to use data:blog.canonicalUrl (for the permalink) with the condition set as <b:if cond=’data:blog.pageType == “item”‘> since we are only displaying QR codes on individual post pages and not the archives.
<ItemPage><Blogger>
<style type="text/css">
    @media print {
      body:after { content:url ( 
         http://chart.googleapis.com/chart?cht=qr&chs=200x200&choe=UTF-8&chld=H&chl=<$BlogItemPermalinkURL$>)
      }
    }
 </style>
</Blogger></ItemPage>

How to embed Facebook Video in Blogger or WordPress

Views:



Videos are great. They are so much faster than words, and so much better than images. People watch and share videos all the time. It is estimated that on YouTube, approximately 2 billion videos are being watched every day! And while you can easily share YouTube videos and embed them anywhere on the web, the same can't be said of Facebook videos. Facebook is another large platform where millions videos are being watched and shared daily. But sadly, Facebook does not provide any embed codes for sharing a video on a blog.That leaves us with a problem. Neither can you share a video that you like on your blog, nor can people, who are not on Facebook, see a video you want them to see.

But don't worry. As always, there is a solution to almost every problem. And for this problem, there are two. So let's see how you can embed Facebook videos to share on your blog.There are two major ways you can embed Facebook videos anywhere on the web.

How to Hide Label Tags in Blogger Posts

Views:



There are some pages like your contact page, about page, table of contents page where you don't want label tags or "Posted by Author at xyz time"  text to appear. 



1.Go To Blogger > Design > Edit HTML
2.Backup your template
3.Check the "Expand Widget Templates" box
4.Search For, <span class='post-labels'>
5.Now add the following code just above it,


How To Remove or Delete Labels In Blogger

Views:



   Adding tags or labels to your posts is an important step for letting spiders and web crawlers to better understand the content and categories of your blog. Due to unfriendly user interface of the Edit Posts section of blogger dashboard, most people find it difficult to remove, apply and add new labels to the posts. I was going to write a post on it but I have found an easy video tutorial created by Blogger team themselves. I am sure you will enjoy understanding todays tutorial via this video. 

How to add a page view counter to your blog

Views:



Page post view or post views hit counter to count how many times any post or article on blogspot blog has 
been read. Several times bloggers like to count how many times any post or articles on blog has been read.

But blogger doesn't provide any way for counting page views or any post hit counter widget



To put page views counter in all posts of your blog , follow these simple steps:

1. Login to Blogspot -> Dashboard -> Layout -> Edit HTML

2. click on expend widget Templates

How to disable copying contents from your blog

Views:



If you want to prevent users from copying contents of your blog or site, then you need to put this code in your blog so that user can not copy the contents of your blog or website...
Follow the steps given below:

-->Copy the following code:

<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]omitformtags=omitformtags.join("|")function disableselect(e){
Like "Jitu's Pensieve" on Facebook
×