it’s quite common to display different ads or images if is frontpage, single or any other view.
In your Arthemia theme you could modify header.php to display on the first view you get (is_home) the normal banner and on all other views your add.
find in header.php the div class="right" where you have your add now and put something like this:
Code:
<div class="right">
<?php if ( is_home() ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/wide.jpg" alt="" width="468px" height="60px" />
<?php } else { ?>
put your adsense code here
<?php } ?>
</div>
means inside this div what you have already you switch to the original or any banner on home-view, else your add comes up.
The same switch ( if is_home else ) works in sidebar.php too, loading the banner you want to show there.
btw: I moved the whole thread from bbpress forum to WordPress forum ..
____________________
you find me on Google+, Twitter and Facebook
(von: master)
Hier noch 16 weitere Ergebnisse dieses Threads:
problem in displaying 300×250 ad in arthemia free home page
26. Jul. 2009 (von: sadhan)
Can you please help on why I am not able to display the 300x250 ad in arthemia free theme first home page, though the ad code works fine in individual post pages. Weiterlesen →
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by master
26. Jul. 2009 (von: master)
could you give me a link to your site pls ..____________________you find me on Google+, Twitter and Facebook Weiterlesen →
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by sadhan
29. Jul. 2009 (von: sadhan)
Pls see pixelmagic.in/blogI tried so many ways , still no luck in home page ads (300x250) is always blank and the top header ad always show public service ads. Strangely, in inside pages they appear properly. The google ad code…
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by master
29. Jul. 2009 (von: master)
Sadhan, I would say you did everything allright, the code is loading and frontpage as well as on single pages in the same way.Adsense takes a while until it loads an add fitting to your page, if they do not…
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by sadhan
31. Jul. 2009 (von: sadhan)
Appreciate your helpful response. I did that as you mentioned. I found the top one ad is coming but no luck on the rect one. But to my surprize it came for couple of times. So I guess I need…
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by sadhan
1. Aug. 2009 (von: sadhan)
With time also the banner is not showing any.Further, can I request to help me to resolve the problem with a workaround. How about the idea to tweak the code so that for home page banner there is a static…
Re: problem in displaying 300×250 ad in arthemia free home page :: Reply by sadhan
2. Aug. 2009 (von: sadhan)
perfect! thanks a lot. It finally works with this workaround. Great help. Weiterlesen →
center align problem
23. Jul. 2011 (von: geekprison)
Hello,my site is http://geekprison.com/ i am facing problem with images of the post,the post looks greats in the editor as well as in other themes,but it gets messed up when i activate compress thememy images are not center align,can you…
Re: center align problem :: Reply by Joern
23. Jul. 2011 (von: Joern)
the problem with Comppress theme you currently use: In Firefox and IE (not in Chrome) I see the content of your site moved to the right, sidebar disappeared.This happens due to a one pixel error in your div id="topmenu"the content…
Re: center align problem :: Reply by geekprison
23. Jul. 2011 (von: geekprison)
hello, thanks for your generous reply,i tried adding both the codes one at a time.aligncenter {display: block;margin-left: auto;margin-right: auto;}.excerpt .entry p img.aligncenter {display: block;margin: 0 auto;}but there was no effect on image, they... Weiterlesen →
Re: center align problem :: Reply by geekprison
23. Jul. 2011 (von: geekprison)
hello, thanks for your generous reply,i tried adding both the codes one at a time.aligncenter {display: block;margin-left: auto;margin-right: auto;}.excerpt .entry p img.aligncenter {display: block;margin: 0 auto;}but there was no effect on image, they... Weiterlesen →
Re: center align problem :: Reply by Joern
23. Jul. 2011 (von: Joern)
it will never be 'harmfull', it might just change the look of the images on frontpage too.I can't test this, you should keep a backup of the old entries and just try..or tryimg.aligncenter {display: block;margin-left: auto;margin-right: auto;}always ch... Weiterlesen →
Re: center align problem :: Reply by geekprison
24. Jul. 2011 (von: geekprison)
hi i even tried that codeimg.aligncenter {display: block;margin-left: auto;margin-right: auto;}but did not work,though if i modify the existing code into.excerpt .entry p img {border: 0 none;margin: 0 auto;}.excerpt .entry img {max-height: 640px;max-wi... Weiterlesen →
Re: center align problem :: Reply by Joern
24. Jul. 2011 (von: Joern)
first time I use my public folder in dropbox,here a firefox 5.0 screen printhttp://dl.dropbox.com/u/33739066/firefox50.jpgno idea why you see it different, my IE 9 shows it like this tooChrome and old FF show all..??____________________you find me on G... Weiterlesen →
How to remove „edit entry/comments are closed“ text and change font size of post
27. Jul. 2011 (von: omerkhan01)
HI there here is my siteHere are my questions.If you go to this pageAt the bottom it shows "Edit this entry" and "Comments are closed"How do you remove that? Is it in index.php?Also, as you can see the text on…
security vulnerability in TimThumb.php of some themes
12. Aug. 2011 (von: Joern)
TimThumb, a popular resizing script used in some WordPress themes like Arthemia and Arthemia Premium is being exploited through a vulnerability.I recommend to get the latest timthumb.php on this site:http://code.google.com/p/timthumb/source of TimThumb... Weiterlesen →