jmmunozpl
Respuestas de foro creadas
Viendo 8 respuestas - de la 1 a la 8 (de un total de 8)
-
Foro: WordPress Avanzado
En respuesta a: ayuda para configurar excepciónPrueba:
<?php if (!is_archive()){ if(!is_single()) {get_sidebar('secondary');}} ?>
Foro: Hacks
En respuesta a: Modificar texto en el footerPuedes editar directamente el footer.php o utilizar la siguiente función:
<?php // AÑADIR FIRMA AL FINAL DE LA WEB function custom_footer_text() { $content = '<p>Desarrollado por Beñat Bustamante bajo WordPress</p>'; echo $content; } add_action( 'wp_footer', 'custom_footer_text' ); ?>
Foro: Hacks
En respuesta a: Programando un pluginPrueba:
$wpdb->update('wp_directorio_cliente',array('hits' =>'1'),array('id_cliente' => $id_cliente)); }
Foro: Diseño – Temas y plantillas
En respuesta a: Imagen principal debajo del tituloEn el fichero content.php, cambia:
<header class="entry-header"> <?php the_post_thumbnail(); ?> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h1> <?php endif; // is_single() ?>
Por:
<header class="entry-header"> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h1 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h1> <?php endif; // is_single() ?> <?php the_post_thumbnail(); ?>
Foro: Plugins y Hacks
En respuesta a: Problemas con area widget creada con phpPrueba a poner el código del sidebar fuera del loop.
Foro: Plugins y Hacks
En respuesta a: Problemas con area widget creada con phpPon tu código en el page.php, pero con el condicional de if(is_page(id de la página)){
Foro: Plugins y Hacks
En respuesta a: Problemas con area widget creada con php¿Puede ser problema del widget que añades en el espacio? Prueba con widgets que en los otros sidebars funcionan.
Foro: Plugins y Hacks
En respuesta a: Problemas con area widget creada con phpPrueba:
<?php register_sidebar( array( 'name' => __( 'Content Widget', 'twentytwelve' ), 'id' => 'sidebar-4', 'description' => __( 'Appears when using Full-width Page Template,No Sidebar with a page set as Static Front Page', 'twentytwelve' ), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) ); ?>
<?php if ( is_active_sidebar( 'sidebar-4' ) ){ dynamic_sidebar( 'sidebar-4' ); } ?>
Viendo 8 respuestas - de la 1 a la 8 (de un total de 8)