• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Probleme mit Wordpress Theme

PhucsTeufelsWild

Neues Mitglied
Hi,

es zeigt meine Werbung nicht korrekt an. Es gibt im Sidebar einen 300x250 Banner dem ich mit meinem Ad code ersetzt habe. Der Werbebanner wird überall angezeigt jedoch wenn man sich Artikel anklickt und durchlesen will entdeckt man nur Leere im Sidebar. Verstehe nicht wieso der plötzlich verschwindet. Das Theme das ich benutze heist: Arthemia

So sah das aus als ich die Dateien heruntergeladen habe:

PHP:
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/square.jpg" alt="" width="300px" height="250px" />

Ich habe das dann ersetzt durch:

PHP:
<?php include("ad300.php"); ?>

Ich erstelle dann eine php Datei und nannte sie dementsprechend: "ad300". Dort habe ich dann meinen Google Adsense Code eingefügt. Ich bin etwas verwirrt und weis nicht weiter, hoffe mir kann jemand anders weiterhelfen. :cry:

Ich poste hier die index.php, single.php, und sidebar.php

index.php
PHP:
<?php get_header(); ?>
	
	<?php if(!is_paged()) { ?>

	<div id="top" class="clearfloat">
	
		<div id="headline">
		<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/headline.png" width="75px" height="21px" alt="" />
		<?php query_posts("showposts=1&category_name=Headline"); ?>
		<?php while (have_posts()) : the_post(); ?>	
	
	
	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Keine Kommentare', 'Ein Kommentar', '% Kommentare');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
	<?php $values = get_post_custom_values("Headline");?>
 	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=300&h=275&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="300px" height="275px"  /></a>
	<?php the_excerpt(); ?>
	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Den ganzen Beitrag lesen &raquo;</a>
	<?php endwhile; ?>
		</div>
		
	<div id="featured">
	
	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/featured.png" width="72px" height="17px" alt="" />
	<?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?>
		
      <?php while (have_posts()) : the_post(); ?>
	<div class="clearfloat">
	<?php	$values = get_post_custom_values("Image");
	if (isset($values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=65&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="100px" height="65px"  /></a>
      <?php } ?>
	<div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
<?php the_excerpt(); ?>
</div>
    	</div>
	
      <?php endwhile; ?>

	</div>

</div>	

	<div id="middle" class="clearfloat">
	<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/category.png" class="clearfloat" alt="" />
	<?php $display_categories = array(17,16,12,18,19); $i = 1;
	foreach ($display_categories as $category) { ?>

	<div id="cat-<?php echo $i; ?>" class="category">
		<?php query_posts("showposts=1&cat=$category")?>
		<span class="cat_title"><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?></a></span>
		<a href="<?php echo get_category_link($category);?>"><?php echo category_description($category); ?></a>
	</div>

	<?php $i++; ?>
    	<?php } ?>

	</div>

	<?php } ?>

	<div id="bottom" class="clearfloat">
		
	<div id="front-list">	
	
	<?php
      $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
      query_posts("cat=-9,-15&paged=$page&posts_per_page=5"); ?>
	
	<?php while (have_posts()) : the_post(); ?>

	<div class="clearfloat">
	<h3 class=cat_title><?php the_category(', '); ?> &raquo</h3>
	<div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>
	<div class="meta">[<?php the_time('j M Y') ?> | <?php comments_popup_link('Keine Kommentare', 'Ein Kommentar', '% Kommentare');?> | <?php if(function_exists('the_views')) { the_views(); } ?>]</div>	
	
	<div class="spoiler">
	<?php	$values = get_post_custom_values("Image");
	if (isset($values[0])) { ?>
      <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
	<img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php echo get_option('home'); ?>/<?php
$values = get_post_custom_values("Image"); echo $values[0]; ?>&w=150&h=150&zc=1&q=100"
alt="<?php the_title(); ?>" class="left" width="150px" height="150px"  /></a>
      <?php } ?>

	<?php the_excerpt(); ?>
	</div>

	</div>
		
      <?php endwhile; ?>

	<div class="navigation">
		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } 
			else { ?>

			<div class="right"><?php next_posts_link('N&auml;chste Seite &raquo;') ?></div>
			<div class="left"><?php previous_posts_link('&laquo; Vorherige Seite') ?></div>
			<?php } ?>
<?php advman_ad('indexbanner'); ?>
	</div>
	
	</div>
		

	<?php get_sidebar(); ?>

	</div>	

<?php get_footer(); ?>


sidebar.php
PHP:
<div id="sidebar">

<div id="sidebar-ads">
	<?php include("ad300.php"); ?>

</div>
  
<div id="sidebar-top"> 
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>

<?php endif; ?>
</div>


<div id="sidebar-middle" class="clearfloat"> 
<div id="sidebar-left">
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?> 		
<?php endif; ?> 
<ul><?php wp_list_bookmarks('categorize=0&category=17&title_li=0&show_images=0&show_description=0&orderby=name'); ?></ul>
</div>  

<div id="sidebar-right">
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(3) ) : ?> 		
<?php endif; ?>
<h3>Freunde</h3>
<ul>
<li><a href="http://nayinfiniti.de" target="_blank">NayInfiniti</a></li>
<li><a href="http://michaelhutagalung.com" target="_blank">Michael Jubel</a></li>
<li><a href="http://www.hannasyalala.com" target="_blank">Hanna Siahaan</a></li>
<li><a href="http://majarimagazine.com" target="_blank">Majari Magazine</a></li>
<li><a href="http://bloggerzine.majarikanayakan.com" target="_blank">The Bloggerzine</a></li>
<li><a href="http://www.majarikanayakan.com" target="_blank">Majari Kanayakan</a></li>
</ul>
</div> 

</div>

<div id="sidebar-bottom"> 
<?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(4) ) : ?> 		
<?php endif; ?> </div>   


</div>
 
Werbung:
single.php
PHP:
<?php get_header(); ?>

	<div id="content">
	
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<div class="post" id="post-<?php the_ID(); ?>">
	
	<span class="breadcrumbs"><a href="<?php echo get_option('home'); ?>/">Home</a> &raquo; <?php the_category(', ') ?></span>
	
	<h2 class="title"><?php the_title(); ?></h2>
	
	<div id="stats">
<span><?php the_time('j F Y') ?></span>
<span><?php if(function_exists('the_views')) { the_views(); } ?></span>
<span><?php comments_number('Keine Kommentare', 'Ein Kommentar', '% Kommentare');?><?php if(function_exists('wp_email')) { email_link(); } ?><?php if(function_exists('wp_print')) { print_link(); } ?></span>
<?php advman_ad('postbanner'); ?>
</div>
	


	<div class="entry clearfloat">
	
	<?php the_content('Read the rest of this entry &raquo;'); ?>

	<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	
	<?php advman_ad('bottompost300'); ?> 
	<?php advman_ad('bottompostright'); ?>
	ssgfsg
	
	</div>

	<div id="tools">
<div style="float:left;"><a href=" http://digg.com/submit?phase=2&url= <?php the_permalink();?>&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/digg.png" title="Digg this!"></a><a href=" http://del.icio.us/post?v=4&noui&jump=close
&url=<?php the_permalink();?>
&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/delicious.png" title="Add to del.icio.us!"></a><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/stumbleupon.png" title="Stumble this!"></a><a href=" http://technorati.com/faves?add=<?php echo get_option('home'); ?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/technorati.png" title="Add to Techorati!"></a><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title();?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/facebook.png" title="Share on Facebook!"></a><a href=" http://www.newsvine.com/_tools/seed&save? u=<?php the_permalink();?>&h=<?php the_title();?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/newsvine.png" title="Seed Newsvine!"></a><a href=" http://reddit.com/submit?url=
<?php the_permalink();?>&title=<?php the_title();?>" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/reddit.png" title="Reddit!"></a><a href=" http://myweb.yahoo.com/myresults/bookmarklet? t=<?php the_title();?>&u=<?php the_permalink();?>&ei=UTF" target="_blank"><img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/sociable/yahoomyweb.png" title="Add to Yahoo!"></a>
</div>

	<div style="float:right;display:block;"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
	</div>

	</div>
	
	<div id="comments">

	<?php comments_template(); ?>
	</div>

	<?php endwhile; else: ?>

	<p>Sorry, no posts matched your criteria.</p>

	<?php endif; ?>

	</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
 
Werbung:
Ersetze mal
PHP:
 <?php include("ad300.php"); ?>
durch einen absoluten Pfad.

Meinst Du

PHP:
<?php include("http://www.phucsteufelswild.de/wp-content/themes/arthemia/ad300.php"); ?>

Habe ich gerade ausprobiert, da verschwindet das Ad komplett.

EDit:

habe gerade auch

PHP:
<?php include("/wp-content/themes/arthemia/ad300.php"); ?>

ausprobiert und das hat den selben Effekt wie der obrige. mmhm
 
Zuletzt bearbeitet:
Rufe mal den Quelltext auf der Seite auf und schau, was in beiden Fällen an der Stelle des Codes steht, wo das Bild stehen soll. Vielleicht verschluckt das Design dein Bild ja. Jedoch wäre die erste Anlaufstelle der Quellcode, der erzeugt wird. Dort kannst du dann sehen, ob dein Add da ist und vielleicht nur nicht angezeigt wird. :)
 
@ Gilles

Ich habe leider nicht getan was Du geschrieben hast sondern habe das Theme nochmal direkt vom Autor heruntergeladen weil ich mich erinnerte das ich es von einer anderen Seite gedownloaded habe und jetzt funktioniert es einwandfrei. Ich hab echt keine Ahnung woran es gelegen hat, aber bin froh das es jetzt klappt. Trotzdem Danke für die Antwort.

:)
 
Werbung:
Zurück
Oben