Visualizzazione dei risultati da 1 a 5 su 5

Hybrid View

  1. #1
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    33

    Aiuto con adsense e Internet Explorer

    Ho bisogno d'aiuto con le differenze tra firefox e internet explorer riguardo il mio theme di wordpress.

    Io inserisco il codice adsense nelle opzioni del "theme", ed esso viene automaticamente inserito nel testo di ogni post. Quello che io ho aggiunto al codice e' un div per allinearlo alla destra e avere il testo sul fianco sinistro.

    Su FF si vede bene, ma su IE e' completamente spostato. Ho allegato un'immagine dove potete vedere come si vede su FF, su IE e le opzioni dove inserisco il codice.

    Il codice che inserisco e':

    Codice PHP:
     <span style="float: right"> <script type="text/javascript"</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </span> 
    Ho provato anche con un
    Codice PHP:
    <div style="float: right"
    .

    Il codice del single.php e' il seguente:

    Codice PHP:
    <?php get_header(); ?>
    <div class="contentLayout"><div class="content">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="Post" style="min-height:150px;"><div class="Post-tl"></div><div class="Post-tr"><div></div></div><div class="Post-bl"><div></div></div><div class="Post-br"><div></div></div><div class="Post-tc"><div></div></div><div class="Post-bc"><div></div></div><div class="Post-cl"><div></div></div><div class="Post-cr"><div></div></div><div class="Post-cc"></div><div class="Post-body"><div class="Post-inner article">
    <h2 class="PostHeaderIcon-wrapper"><span class="PostHeader">[url="<?php the_permalink() ?>"]"><?php the_title(); ?>[/url]</span></h2>
    <?php ob_start(); ?>
    <?php $icons 
    = array(); ?>
    <?php 
    if (!is_page()) : ?>
    <?php ob_start
    (); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostDateIcon.png[/img]
    <?php the_time(__('F jS, Y''kubrick')) ?>
    <?php $icons
    [] = ob_get_clean(); ?>
    <?php 
    endif; ?>
    <?php 
    if (!is_page()) : ?>
    <?php ob_start
    (); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png[/img]
    <?php _e('Author''kubrick'); ?>: [url="#"]"><?php the_author() ?>[/url]
    <?php $icons[] = ob_get_clean(); ?>
    <?php 
    endif; ?>
    <?php 
    if (current_user_can'edit_post'$post->ID )) : ?><?php ob_start(); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostEditIcon.png[/img]
    <?php edit_post_link(__('Edit''kubrick'), ''); ?>
    <?php $icons
    [] = ob_get_clean(); ?><?php endif; ?>
    <?php 
    if (!= count($icons)): ?>
    <div class="PostHeaderIcons metadata-icons">
    <?php echo implode(' | '$icons); ?>
    </div>
    <?php endif; ?>
    <?php $metadataContent 
    ob_get_clean(); ?>
    <?php 
    if (trim($metadataContent) != ''): ?>
    <div class="PostMetadataHeader">
    <?php echo $metadataContent?>
    </div>
    <?php endif; ?>
    <div class="PostContent">
    <?php echo '<div style="margin:0 0 10px 0;">' stripslashes(get_option('wps_inner_ad_468')) . '</div>'?>
    <?php $Img 
    get_post_meta($post->ID"thumb"true); if ($Img != '') { ?>
    <div style="float:left;">

    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s''kubrick'), the_title_attribute('echo=0')); ?>">
        [img]<?php echo $Img?>[/img]" style="padding:5px;margin:0 5px 0 0;height:100px;width:100px" />
    </a>
    </div>
    <?php ?>
    <?php 
    if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;''kubrick')); ?>
    </div>
    <div class="cleared"></div>
    <?php ob_start(); ?>
    <?php $icons 
    = array(); ?>
    <?php 
    if (!is_page()) : ?>
    <?php ob_start
    (); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png[/img]
    <?php printf(__('Posted in %s''kubrick'), get_the_category_list(', ')); ?>
    <?php $icons
    [] = ob_get_clean(); ?>
    <?php 
    endif; ?>
    <?php 
    if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostTagIcon.png[/img]
    <?php the_tags(__('Tags:''kubrick') . ' '', '' '); ?>
    <?php $icons
    [] = ob_get_clean(); ?><?php endif; ?>
    <?php 
    if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
    [img]<?php bloginfo('template_url'); ?>/images/PostCommentsIcon.png[/img]
    <?php comments_popup_link(__('No Comments »''kubrick'), __('1 Comment »''kubrick'), __('% Comments »''kubrick'), ''__('Comments Closed''kubrick') ); ?>
    <?php $icons
    [] = ob_get_clean(); ?><?php endif; ?>
    <?php 
    if (!= count($icons)): ?>
    <div class="PostFooterIcons metadata-icons">
    <?php echo implode(' | '$icons); ?>
    </div>
    <?php endif; ?>
    <?php $metadataContent 
    ob_get_clean(); ?>
    <?php 
    if (trim($metadataContent) != ''): ?>
    <div class="PostMetadataFooter">
    <?php echo $metadataContent?>
    </div>
    <?php endif; ?>
    </div></div></div>

    <?php comments_template(); ?>
    <?php 
    endwhile; ?>
    <?php 
    else: ?>


    <?php _e('Sorry, no posts matched your criteria.''kubrick'); ?></p>
    <?php endif; ?>
    </div>

    <?php include (TEMPLATEPATH '/sidebar.php'); ?>

    <?php get_footer(); ?>
    Aiutatemi per favore...
    Immagini allegate Immagini allegate

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.