Skip to content
new ogbongeblog logo
  • Advertise
  • Blog
  • Contact

Make Background Image Of Your Blog Clickable With This CSS Tweak

June 26, 2014

·

Uncategorized
jidetheblogger Avatar
jidetheblogger
UPDATE : 

+Kanyi Okeke alerted me via comments that once you implement it on a Blogger blog, it automatically links anything on the page to the link in the code above.I will find a solution to this and update this post asap.

Earlier today, +Temi Baby   asked me how to make the background image of her blog clickable and probably link to an external website, while also ensuring that the link opens in a new tab/window. Initially, I thought such won’t be possible on a Blogger blog but after making some research, I realized it’s possible and can be achieved with css.

You can see a demo at www.wizkid-download.blogspot.com . Clicking on the background image on desktop and mobile view of the blog takes you to blogger.com + it opens in a new window/tab without taking you away from the blog page.

So, let me assume you’ve already added a background image to your blog.

==> Log in to www.blogger.com , go to your blog dashboard, click “ Templates ” > “ Edit HTML “

==> Click inside the HTML editor, press CTRL F on your keyboard to find < body

==> Directly under < body , paste the code below:

<a href=”http://www.nairaforsms.com” id=”blogbackground-link” target=”_blank”> </a>

==> Replace www.nairaforsms.com with the link you want the background to open when clicked.

==> Click “ Save Template “.

==> Click inside the HTML editor again and use CTRL F to find ]]></b:skin>

==> Paste the css code below, directly above ]]></b:skin>

#blogbackground-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    height: 4000px;
}

==> Click “ Save Template “.

View your blog, click on the background image and it should open your link in a new tab/window.

That’s all.

Don’t know how to add background image to your blog?

Paste the css code below, directly above ]]></b:skin>

body {
    background-image: url(‘ http://2.bp.blogspot.com/-Rtlf89qVXOM/Uz8h_igoffI/AAAAAAAAJww/hv_6SudT-JE/s1600/Nairaforsms-300x250AD_optim.jpg ‘);   
    background-position: top center;
    z-index: 1;
    background-attachment: scroll;
    background-repeat: repeat-y;
    background-color: grey;
}

Carefully replace the highlighted link; http://2.bp.blogspot.com/-Rtlf89qVXOM/Uz8h_igoffI/AAAAAAAAJww/hv_6SudT-JE/s1600/Nairaforsms-300x250AD_optim.jpg with the link to your background image.

That’s all.

NB : If you are a WordPress user,  copy and paste the code below, directly below the <body tag.

<a href=’http://www. nairaforsms.com ‘ id=’blogbackground-link’ target=’_blank’> </a>

Thereafter, you can paste the css code in your custom css file.

==> Replace nairaforsms.com with the link you want to use

I hope it works for you. Let me know via comments, if there are challenges.

Please Share :
blogger tips blogspot tutorials

Like What You Read?

Sign Up to get similar articles delivered to your email inbox.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

19 responses to “Make Background Image Of Your Blog Clickable With This CSS Tweak”

  1. Jummy Avatar
    Jummy
    June 25, 2014

    This will be useful whenever an advertiser wants to pay for a takeover ad. bookmarked it. Thx Jide

    Loading…
    Reply
    1. Jide Oguns Avatar
      Jide Oguns
      June 25, 2014

      Yes, this is exactly how to set up a takeover advert.

      Loading…
      Reply
  2. Anonymous Avatar
    Anonymous
    June 25, 2014

    Will try it on my wordpress blog and will be glad if it works. Thanks for Sharing.

    Loading…
    Reply
    1. Jide Oguns Avatar
      Jide Oguns
      June 25, 2014

      It will…

      Loading…
      Reply
  3. lekksite Avatar
    lekksite
    June 25, 2014

    Nice write up , Let me try this

    Loading…
    Reply
    1. Jide Oguns Avatar
      Jide Oguns
      June 25, 2014

      OK bro. Will be glad if you inform me of the outcome

      Loading…
      Reply
  4. Mazino Oyolo Kigho Avatar
    Mazino Oyolo Kigho
    June 25, 2014

    I will experiment it. Recently all my blog images went blank, so I no longer uses images on my post. What could be the problem. http://www.justhealthng.blogspot.com

    Loading…
    Reply
    1. Jide Oguns Avatar
      Jide Oguns
      June 25, 2014

      so if you upload any image to your blog, it won't display?

      Loading…
      Reply
  5. Kanyi Okeke Avatar
    Kanyi Okeke
    June 26, 2014

    Jide, on your test blog, i observed that when you click on the navigation tabs, it pops open in a new page opening blogger.com and that's where the blog background image is linked to.

    Loading…
    Reply
    1. Jide Oguns Avatar
      Jide Oguns
      June 26, 2014

      Wow!! Thanks for the observation. I didn't notice that at all. Will work on it but this tweak works perfectly for wordpress blogs.

      Loading…
      Reply
  6. Henry Obinna Avatar
    Henry Obinna
    June 26, 2014

    nice nice nice, I'll try this one on my blog, maybe that's why I'll put my blog logo, since all the logos I've been uploading refuse to work, thanks oga Jide. how to hide files and folders on your Android

    Loading…
    Reply
  7. Mazino Oyolo Kigho Avatar
    Mazino Oyolo Kigho
    June 26, 2014

    If I upload images, it will display. After a while it goes blank showing one triangle sign at the centre.

    Loading…
    Reply
  8. Ivan Choe Avatar
    Ivan Choe
    September 18, 2014

    Hi.. any solution for the blogger link problem?

    Loading…
    Reply
  9. Wap Goodies Avatar
    Wap Goodies
    January 15, 2015

    Thanks. Works Perfectly!!!

    Loading…
    Reply
  10. Nikola Kezic Avatar
    Nikola Kezic
    March 3, 2015

    I tried this on my blogger blog but whole area (blog too) is clickable. 🙁

    Loading…
    Reply
  11. Roger Newcomb Avatar
    Roger Newcomb
    March 8, 2015

    My entire blog is now clickable using this code. It looks right but I can't click on the actual content anymore. Is there a way to ONLY make the background image clickable and not the entire blog?

    Loading…
    Reply
  12. TNN Editor Avatar
    TNN Editor
    April 20, 2015

    Jide, you still have not corrected the error of turning every clickable link into the supposed background image link. A correction will be of great help. Blogger blog concerned.

    Loading…
    Reply
  13. Temidayo Oshikoya Avatar
    Temidayo Oshikoya
    December 2, 2015

    Thanks Jide for the info. Initially when i tried using your own description,I also noticed the whole blog was click-able.Having observed that,i have corrected the css input thus : #blogbackground-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    height: 5000em;
    }
    So readers,if you're experiencing similar issues on your blogger blogs,i suggest you edit the css code above and save. Simple! Check out mine here >>> http://www.gbelepawoonline.com

    Loading…
    Reply
    1. Tsireledzo Michael Mudzanani Avatar
      Tsireledzo Michael Mudzanani
      July 15, 2017

      Your code still make the backround clickable. Please see how it is working at http://Www.ebnewsdaily.co.za . If you have a solution regarding this, Please do update.

      Loading…
      Reply

WANT TO ADVERTISE?

Chat on WhatsApp

RELATED POSTS

  • How to know if a Blogger template is compatible with Template Designer
  • Awesome Sidebar Feedburner Email Subscription Form For Blogger and WordPress Blogs
  • How To Hide Blog Description on Blogger Blogs

FEATURED


  • CREDICORP launches C.L.I.C.K.D. Scheme with FG’s 3MTT Programme, expanding affordable consumer credit for locally-assembled laptops and devices for digital workers

    CREDICORP launches C.L.I.C.K.D. Scheme with FG’s 3MTT Programme, expanding affordable consumer credit for locally-assembled laptops and devices for digital workers

  • What Happens to Your Online Accounts When You Die?

    What Happens to Your Online Accounts When You Die?

JOIN AI WEB DESIGN GROUP


  • AI Website Design Training Whatsapp Group by Jidetheblogger

    AI Website Design Training Whatsapp Group by Jidetheblogger

← Google Domains: New Domain Registration Service by Google
VictoryAkpomedaye.Com : Blog In Nigeria for Mobile/Internet Marketing and Entrepreneurship Tips →

Join 25,000+ subscribers

Receive our latest blog posts in your inbox.

Search

Social

Facebook

Instagram

Twitter

new ogbongeblog logo

Copyright © 2026 | About | Advertise | Featured | Sitemap | Privacy Policy | Powered by WordPress

Your cart (items: 0)

Products in cart

Product
Details
Total
Subtotal ₦0.00
Shipping and discounts calculated at checkout.
View my cart
Go to checkout

Your cart is currently empty!

Start shopping

Notifications

%d

    LIKE My Fan Page

    Privacy Policy | Copyright © 2012,OgbongeBlog.All Rights Reserved. Powered by Blogger .
    Create a Mobile Site
    View Site in Mobile | Classic
    Share by: