Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6618611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:51:25+00:00 2026-05-25T20:51:25+00:00

I have a problem with my advertisements on the domain www.spiceygames.com (this site’s using

  • 0

I have a problem with my advertisements on the domain http://www.spiceygames.com (this site’s using innovation science 2 (cms) theme from themeforest). Take a look on the main page, below slider my adsense advertisements are displayed.

These ads are actually from single posts, I’ll add them via quick adsense plugin and they’re working fine on single post.

The problem is on the main page,single posts ads are also displayed in main page, I didn’t want to show them on the main page. I think there’s some bugs in css/theme files. So how do I fix it?

<?php
/**********************************************************************
* INNOVATION SCIENCE WORDPRESS THEME  
* (Ideal For Business And Personal Use: Portfolio or Blog)   
* 
* File name:   
*      single.php
* Brief:       
*      Theme single page code
* Author:      
*      DigitalCavalry
* Author URI:
*      http://themeforest.net/user/DigitalCavalry
* Contact:
*      digitalcavalry@gmail.com   
***********************************************************************/ 
get_header();        

$catlist = wp_get_post_categories($post->ID);
$catlist = wp_get_post_terms($post->ID, 'category');
$count_cat = count($catlist);

$extname = array();
if($count_cat > 0)
{       
   foreach($catlist as $cat)
   {
       $extname[$cat->name] = get_category_link($cat->term_id);
   } 
}   

if(!isset($_SESSION[('pv'.$post->ID)])) { $_SESSION[('pv'.$post->ID)] = false; } 
if(isset($_SESSION[('pv'.$post->ID)]) and $_SESSION[('pv'.$post->ID)] == false)
{   
    $post_visits = get_post_meta($post->ID, 'post_visits', true);
    if($post_visits == '') { $post_visits = 0; } else { $post_visits++; }
    update_post_meta($post->ID, 'post_visits', (int)$post_visits);
    $_SESSION[('pv'.$post->ID)] = true; 
}                                                 
?>

<!-- google_ad_section_start -->
<div id="content">            
    <?php 


        $post_common_opt = $GLOBALS['dc_postcommon_opt'];            
        $post_custom_content = (bool)$post_common_opt['post_custom_cbox'];
        $post_fullwidth = (bool)$post_common_opt['post_fullwidth_cbox'];

        if($post_custom_content and $post_fullwidth)
        {
            echo '<div class="page-width-full">';        
        } else
        {
            GetDCCPInterface()->getIGeneral()->includeSidebar($post_common_opt['page_sid'], $post_common_opt['page_sid_pos']);

            if(GetDCCPInterface()->getIGeneral()->getSidebarGlobalPos($post_common_opt['page_sid_pos']) == CMS_SIDEBAR_RIGHT)
            {
                echo '<div class="page-width-left">';                              
            } else
            {
                echo '<div class="page-width-right">';     
            }
        }      
        dcf_naviTree($post->ID, 0, '', $extname);         

        if($post_custom_content)
       {
            the_content();    
        } else
        {           
            GetDCCPInterface()->getIRenderer()->renderBlogPostFull();
        }

        if('open' == $post->comment_status)
        {
            echo '<a name="comments"></a>';
            comments_template();
        }
    ?>

Note – I’ll insert advertisements by using Quick adsense wordpress plugin.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:51:26+00:00Added an answer on May 25, 2026 at 8:51 pm

    What are you using as a home page? a page/custom template/index page? You can add a conditional block to your adsense code to show it to all the pages except the homepage, like so:

    <?php if ( ! is_home() ) {?>
       <!--Ads1-->
    <?php }?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have problem with this code var MAIN_LOCATION = http://www.bosscaffe.com/new/; $(#gallery_page).click(function() { $('#gallery_photos').show(); getPhotos(); return
I have problem with my query on C, I’m using the oci8 driver. This
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
Have problem while getting data from Memcached on .NET MVC solution. I have this
I have problem with Uploadify: I log in the project using: FormsAuthentication.SetAuthCookie(myName, false); Then,
I have a problem. I have this function: function isDone() { if(isDone){ $(#loadingStatus).html(NOT DONE...);
I have problem with importing jar file and running in Geany IDE . This
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a really annoying problem. I got this bunch of code which runs
I have problem with this method in NLog library: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents(object state) It consume too

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.