NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
Home / News / Webmaster / Tips and Tricks

Tips and Tricks


A Free WordPress Theme with Integrated Google AdSense

WordPress Themes Transformation

By Catalin Bocanu, Web News Editor

3rd of December 2007, 17:35 GMT

Adjust text size:


Google AdSense Integrated in WordPress
Enlarge picture
Is it possible to automatically deploy a free WordPress ready made website with Google AdSense integration? The answer is yes and there are two alternatives: the usage of a WordPress plug-in or a ready made template providing the possibility to manage Google text ads automatically, without the need to create a certain HTML or PHP code for your web pages.

Guru Manager is a free
WordPress theme that allows anyone to control the Google text ads displayed inside a WordPress blog. This theme permits users to change the colors for background, links, blog title and more, without accessing the administration panel. The main banner can also be changed in the same way, by selecting a predefined image or a custom one.

Practically, this theme and all others of the same type (with adsense management included) will simplify the work both for beginners and advanced webmasters. The theme is easy to install. After you unzip the distribution archive you must copy the content of the template folder in the directory themes from your WordPress installation directory, by following the path /wp-content/themes/.

Then, from the WordPress administration panel you must select this theme as default. Navigating to the main page in the WordPress front end, you will see the direct links for theme customization. After you specify the Google AdSense registration details, the Google text ads will be shown in the theme header (by default). From the same menu, you have the option to define links (internal or external) for the navigation menu bar displayed also in the theme header.

Other theme style elements and widgets appearance can be customized using the Theme Editor from the Presentation menu in the main WordPress administration panel. For example, you can control the appearance of your Google text ads and their position. By opening the file header.php in Theme Editor, you will identify the next piece of code, which controls the Google ads display:

[CODE=0]



google_ad_client = "";
google_ad_width = 700;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "ffffff";
google_color_link = "283A91";
google_color_url = "008000";
google_color_text = "000000";




[CODE=1]

In this code you can freely change the backgroung color, text and link colors and more (HTML code), but you must leave intact the PHP code lines. If you want to display Google ads on the page footer, just paste this code in the file footer.php after the "cite" tag.

In this case you can maintain google_ad_width and google_ad_height the same, but if you want to include Google ads in posts, then these variables must be changed. When you need to include Google text ads in your posts (on all pages) just copy and paste the code presented here (but with Guru Manager selected as WordPress theme) in the file index.php (Main Index Template as viewed in Theme Editor), between the next two code lines:

[CODE=0]
[CODE=1]

This article is reffering to the customization of Guru Manager theme. In other situations, you can insert the Google ads in the same manner in different positions within your WordPress blog, but you will need to customize the ads display script first.

TAGS:

WordPress Theme | WordPress Customization | Google AdSense | Google Text Ads | Free WordPress Themes


Rating:
Good (3.0/5) 7 vote(s) so far    

Read by 1,835 user(s) | Add comment | Link to this article
Subscribe to news | Print article | Send to friend

© Copyright 2001-2008 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


Discover the Concept of Universal News

Site Visitors Return

Build Your Web Site Content With RSS Feeds

More RSS Feeds Subscribers

The Miracles of an Automatic Free Scripts Installer

RSS Feeds' Visibility in Search Engines

A Free Multiplatform Tool for Simple Blogs Development

Improve Speed and Overall Performance for Your Wordpress Blog

Installing Wordpress on IIS7

A Visual RSS Feeds Maker

User opinions:

No user comments yet.
Be the first to express your opinion using the form below!

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 






SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM