cambiar idioma de los tags de la sección Blog
-
Hola.
Estoy usando un tema hijo. he modificado el index.php en el hijo y va bien. pero he creado el archivo template-tags.php con la misma ruta de directorios que en el tema padre. y en este he modificdo los tags en Ingles a Español pero no me coge los cambios.
if ( ! function_exists( 'wp_bootstrap_starter_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function wp_bootstrap_starter_posted_on() { $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>'; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $posted_on = sprintf( esc_html_x( 'Escrito por %s', 'fecha artículo', 'wp-bootstrap-starter' ), '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>' ); $byline = sprintf( esc_html_x( 'Por %s', 'Autor', 'wp-bootstrap-starter' ), '<span class="author vcard"><a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>' ); echo '<span class="posted-on">' . $posted_on . '</span> | <span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK. if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ' | <span class="comments-link"><i class="fa fa-comments" aria-hidden="true"></i> '; /* translators: %s: post title */ comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'wp-bootstrap-starter' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); echo '</span>'; } }
la plantilla utiliza bootstrap es gratuita se llama wp-boostrap-starter
¿ Que puedo hacer ?
Viendo 1 respuesta (de un total de 1)
Viendo 1 respuesta (de un total de 1)
- El debate ‘cambiar idioma de los tags de la sección Blog’ está cerrado a nuevas respuestas.