Desarrollo Web /

[PREPROGRAMADO] Blog en Wordpress.

Participa en el tema [PREPROGRAMADO] Blog en Wordpress. en el foro Desarrollo Web.
Hola gente, necesito ayuda, tengo un BLOG en WORDPRESS con dominio propio ( lalegionargentina.com.ar ) ...

Buscar en este tema:
1 2 >
 
  •  
    #1 [PREPROGRAMADO] Blog en Wordpress.
    Hola gente, necesito ayuda, tengo un BLOG en WORDPRESS con dominio propio (lalegionargentina.com.ar) y quiero agregar los codigos del ADSENSE de google y un codigo HTML de un servicio de estadisticas, mi pregunta es...donde pego estos codigos?, uno iria en la parte izq y el codigo de adsense iria en el campo principal.

    Muchas Gracias!
    +
     
    0
    Me gusta
     
    | Más
  • #2 Re: Blog en Wordpress.

    y depende tu plantilla... si no sabes manejarte con plantillas, subila en un zip y pasa el codigo, hace un screenshot de tu sitio indicando donde queres el adsense y las estadisticas y te lo agrego...
    Te doy un ejemplo:

    Si queres uqe aparezca solamente cuando lees los posts, al final del texto entonces tendrias que buscar un archivo post.php, y entonces ahi despues que se menciona:

    <?php the_content(); ?>

    agregas el código adsense... de esa manera te queda
    Titulo
    Texto Texto Texto
    ADSENSE
    Me gusta este mensaje
  • #3 Re: Blog en Wordpress.

    Joya, voy a probar...consulta, el PHP con que lo abro para editarlo? con un notepad, DW?
    Me gusta este mensaje
  • #4 Re: Blog en Wordpress.

    con lo que te sea mas comodo
    Me gusta este mensaje
  • #5 Re: Blog en Wordpress.

    Originalmente publicado por tux
    Si queres uqe aparezca solamente cuando lees los posts, al final del texto entonces tendrias que buscar un archivo post.php, y entonces ahi despues que se menciona:
    <?php the_content(); ?>
    agregas el código adsense... de esa manera te queda
    Titulo
    Texto Texto Texto
    ADSENSE
    Puede ser que no tenga un POST.php?...hay millones de archivos y carpetas en el WORDPRESS. :O-o:
    Me gusta este mensaje
  • #6 Re: Blog en Wordpress.

    tiene que estar dentro de contents/themes/carpeta-del-theme eh! :P
    Me gusta este mensaje
  • #7 Re: Blog en Wordpress.

    Aca te adjunto los archivos que tengo.
    Imágenes adjuntas
    Tipo de archivo: jpg blog.JPG (58.6 KB, 18 vistas)
    Me gusta este mensaje
  • #8 Re: Blog en Wordpress.

    es verdad, my mistake, perdon. En ese caso es single.php
    Código PHP:
    <?php get_header(); ?>

        <div id="content" class="widecolumn">
                    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
            <div class="navigation">
                <div class="alignleft"><?php previous_post_link('&laquo; %link'?></div>
                <div class="alignright"><?php next_post_link('%link &raquo;'?></div>
            </div>
        
            <div class="post" id="post-<?php the_ID(); ?>">
                <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
        
                <div class="entrytext">
                    <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
        
                    <?php link_pages('<p><strong>Pages:</strong> ''</p>''number'); ?>
        
                    <p class="postmetadata alt">
                        <small>
                            This entry was posted
                            <?php /* This is commented, because it requires a little adjusting sometimes.
                                You'll need to download this plugin, and follow the instructions:
                                http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
                                /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ 
    ?> 
                            on <?php the_time('l, F jS, Y'?> at <?php the_time() ?>
                            and is filed under <?php the_category(', '?>.
                            You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
                            
                            <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                                
    // Both Comments and Pings are open ?>
                                You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
                            
                            <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                                
    // Only Pings are Open ?>
                                Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
                            
                            <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                                
    // Comments are open, Pings are not ?>
                                You can skip to the end and leave a response. Pinging is currently not allowed.
                
                            <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                                
    // Neither Comments, nor Pings are open ?>
                                Both comments and pings are currently closed.            
                            
                            <?php edit_post_link('Edit this entry.','',''); ?>
                            
                        </small>
                    </p>
        
                </div>
            </div>
            
        <?php comments_template(); ?>
        
        <?php endwhile; else: ?>
        
            <p>Sorry, no posts matched your criteria.</p>
        
    <?php endif; ?>
        
        </div>

    <?php get_footer(); ?>
    Ese deberia ser el código que tenes... si vos queres que aparezca al final del post y antes del comentario deberás insertarlo en el lugar que te indiqué:
    Código PHP:
    <?php get_header(); ?>

        <div id="content" class="widecolumn">
                    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
            <div class="navigation">
                <div class="alignleft"><?php previous_post_link('&laquo; %link'?></div>
                <div class="alignright"><?php next_post_link('%link &raquo;'?></div>
            </div>
        
            <div class="post" id="post-<?php the_ID(); ?>">
                <h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
        
                <div class="entrytext">
                    <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
        
                    <?php link_pages('<p><strong>Pages:</strong> ''</p>''number'); ?>
                    
    <? /* ***************************************************************************************************************
          |                                                                                                             |
          |                                                                                                             |
          |                                        A C A                                                                |
          |                                               T E N É S  Q U E                                              |
          |                                                     P O N E R  E L  C Ó D I G O                             |
          |                                                                                                             |
          |                                                                                                             |
          ***************************************************************************************************************
          */
    ?>
                    <p class="postmetadata alt">
                        <small>
                            This entry was posted
                            <?php /* This is commented, because it requires a little adjusting sometimes.
                                You'll need to download this plugin, and follow the instructions:
                                http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
                                /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ 
    ?> 
                            on <?php the_time('l, F jS, Y'?> at <?php the_time() ?>
                            and is filed under <?php the_category(', '?>.
                            You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
                            
                            <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                                
    // Both Comments and Pings are open ?>
                                You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
                            
                            <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                                
    // Only Pings are Open ?>
                                Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
                            
                            <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                                
    // Comments are open, Pings are not ?>
                                You can skip to the end and leave a response. Pinging is currently not allowed.
                
                            <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                                
    // Neither Comments, nor Pings are open ?>
                                Both comments and pings are currently closed.            
                            
                            <?php edit_post_link('Edit this entry.','',''); ?>
                            
                        </small>
                    </p>
        
                </div>
            </div>
            
        <?php comments_template(); ?>
        
        <?php endwhile; else: ?>
        
            <p>Sorry, no posts matched your criteria.</p>
        
    <?php endif; ?>
        
        </div>

    <?php get_footer(); ?>
    Me gusta este mensaje
  • #9 Re: Blog en Wordpress.

    Usted es un grande, pruebo y te digo, graciassss
    Me gusta este mensaje
  • #10 Re: Blog en Wordpress.

    Aca te adjunto tres archivos, el codigo php, el codigo adsense y la imagen de donde iria el banner, probe pero no funca...gracias!!!

    Aca te adjunto tres archivos, el codigo php, el codigo adsense y la imagen de donde iria el banner, probe pero no funca...gracias!!!

    PD: El banner iria arriba del ultimo post que ponga, abajo del encabezado.
    Imágenes adjuntas
    Tipo de archivo: jpg baner.JPG (60.8 KB, 17 vistas)
    Archivos adjuntos
    Tipo de archivo: txt adsense.txt (489 Bytes, 3 vistas)
    Tipo de archivo: txt single.php.txt (2.7 KB, 3 vistas)
    Me gusta este mensaje
1 2 >


Estadísticas del tema
  • 11 RESPUESTAS
  • 800 VISTAS
  • 2 USUARIOS RESPONDIERON
 
Ir arriba
Contacto | Acerca de | Ayuda | Términos Legales | privacidad | Pautas de convivencia | Mapa de los foros | TrabajÁ con nosotros
©2008 Psicofxp.com S.A. - Todos los derechos reservados
Certifica IAB