Featured Posts

How to make the Classipress Google Map to default in Hybrid ModeHow to make the Classipress Google Map to default in... One of Classipress best feature is the inclusion of Google Maps. Once the user entered a street address, his posting will automatically show a map based on the given location. This is really a cool and...

Readmore

Statpress Reloaded, an ideal Statistics Plugin for Classipress classifieds siteStatpress Reloaded, an ideal Statistics Plugin for... When running a Classifieds site or a site in general, it is not only interesting but useful to know who is visiting your website, where these visitors come from and what they do on your site. You can use...

Readmore

Spice up your Classipress main page with random imagesSpice up your Classipress main page with random images Showing some random automated cosmetic activities will definitely make your Classipress site more exciting and never boring. A way to do that is to have random images of your ads displayed in the main...

Readmore

Display Members and Users Online in ClassiPressDisplay Members and Users Online in ClassiPress To make your Classipress site more interesting to visitors is to make it look active taming with activities. One way to show it is to display members or users who are online. When a first time visitor...

Readmore

An introduction to Classipress Theme and how to use it to make a great Classifieds siteAn introduction to Classipress Theme and how to use... Let’s start with the basics. This post is just going to explain what ClassiPress theme is and what you need to do to set it up in order to start your Classifieds ad site. Specific strategies to optimize...

Readmore

How to put Adsense in the main listing of your Classipress Classifieds sites

Posted by admin | Posted in Plugins and Mods |

5

Proper ads placement matters most if you want to maximize your earnings (which is specially true with Adsense). One of the best ads placement in Classipress classifieds site is in the main listing where the ads are more conspicuous together with the ads postings. Visitors on your site are more exposed to the ads since they form part in the listings. See sample below;

How to put Adsense in the main listing of your Classipress Classifieds sites

And so here’s the code to do just that;

Go to your Dashboard, Appearance then to the Editor . Edit the index.php (Main Index Template) and find this code;

<?php while (have_posts()) : the_post(); ?>

And after that put this code;

<?php if ($count == 3) : ?>

Your Ads Here

<?php endif; $count++; ?>

Just replace “Your Ads Here” with your adsense code. You also have the option to place the ads on the 3rd or 4th listing (and so on) by simply changing $count == 3 to your number of choice.

That’s it for now. Have a great day.

Related posts:

  1. How to put a text section in the main page
  2. How to add Category description in Classipress
  3. How to display All Categories in the main page

Home > Plugins and Mods > How to put Adsense in the main listing of your Classipress Classifieds sites

Comments (5)

that’s really cool – so, if i’d like to display two adslots, would i just seperate this by a comma or semicolon and it gets repeated?

I will recheck the codes for that and post it here soon.

hi could you please tell me how to put adsense in the listing like this website has????

http://trinifieds.com/classifieds/

to make it look like a part of the listings

Thanks again for this tips. Got it works :)

You are very welcome and thanks for visiting the site. Have a great day.

Write a comment

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation