Ayuda para quitar Author y Data en Executive Theme

Mensajes
75
Puntuación de reacción
0
Hola, estoy hecho un lío por que he intentado todo y no lo consigo quitar, cada vez que publico un artículo me sale la fecha y el autor y no hay manera de ocultarlo, a ver si alguno sabéis como, gracias.




Pd: inspecciono elemento y solo me sale esto <span class="post-meta">Por Admin el septiembre 23, 2015 en
"categoría"</span>
 

Adjuntos

  • author y data.png
    author y data.png
    2.7 KB · Vistas: 83
  • Sin título.jpg
    Sin título.jpg
    3.6 KB · Vistas: 87

Mma

Cobre
Usuario de Bronce
Mensajes
866
Puntuación de reacción
3
No uso ese theme, pero debe estar en index.php y en single.php
 

hariseldon

Piedra
Usuario de Piedra
Mensajes
47
Puntuación de reacción
0
Efectivamente, me parece que estás buscando en el código html de la página en el navegador, tienes que buscar en los archivos del theme porque el código tiene que estar ahí sí o sí.
 

Mma

Cobre
Usuario de Bronce
Mensajes
866
Puntuación de reacción
3
Métete en tu menú de wordpress, tuurl/wp-admin y en Apariencia -> Editar

Y ahí te salen los distintos archivos que forman tu blog.

Lo del author y fecha están en index (pagina principal) y single (entrada individual)
 
Mensajes
75
Puntuación de reacción
0
Pues no tengo ni idea del código que debo cambiar :S

index :
<?php get_header(); ?>

<?php $ftposts = get_option('enable-checkbox-featured'); if ($ftposts == "true") { ?>
<div class="featured-box">
<div class="featured336">
<?php $feat336 = get_option('feat336'); if (!empty($feat336)) echo stripslashes(get_option('feat336')); else { echo 'Configurar en Panel'; } ?>
</div>
<div class="featured-posts">
<?php
$fetyp = get_option('fetyp');
if (!empty($fetyp)) { $featured = new WP_Query(''. $fetyp .'&showposts=3');
} else { $featured = new WP_Query('orderby=rand&showposts=3');
} ?>
<?php while ( $featured->have_posts() ) : $featured->the_post(); ?>
<?php $featuredthumb=get_image(get_the_ID(),'featuredimg'); ?>
<article class="fpost">
<a class="ftimage" href="<?php the_permalink(); ?>" title="Ver completo" rel="nofollow">
<?php if(empty($featuredthumb)) { ?>
<img src="<?php echo get_template_directory_uri(); ?>/images/default2.jpg" alt="<?php the_title(); ?>" />
<?php } else { ?>
<img title="<?php the_title(); ?>" src="<?php echo $featuredthumb; ?>" alt="<?php the_title(); ?>" />
<?php } ?>
</a>
<h2><a href="<?php the_permalink(); ?>" title="Ver <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,17);?>
</article>
<?php endwhile; wp_reset_query(); ?>
</div>
</div>
<?php } ?>

<section id="primary" class="site-content">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>

<?php while ( have_posts() ) : the_post(); ?>

<?php $excpt = get_option('enable-checkbox-excp'); if ($excpt == "true") { ?>
<?php get_template_part( 'content-excerpt', get_post_format() ); ?>
<?php } else { ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php } ?>

<?php endwhile; ?>

<?php get_template_part( 'nav' ); ?>
<?php wp_reset_query(); ?>
<?php else : ?>

<div class="no-posts">
<h3 class="headers">No hay contenido disponible</h3>
<p>Lo sentimos, aun no tenemos articulos para mostrar, vuelve pronto.</p>
</div>

<?php endif; ?>
</div>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>


single:

<?php get_header(); ?>

<section id="primary" class="site-content">
<div id="content" role="main">


<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'content-single', get_post_format() ); ?>

<!-- Related Posts -->
<?php $orig_post = $post;
global $post;
$categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
$args=array(
'category__in' => $category_ids,
'post__not_in' => array($post->ID),
'posts_per_page'=> 4, // Number of related posts that will be shown.
'ignore_sticky_posts'=>1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
echo '<aside id="related_posts"><h3 class="sgtitle">Notas Relacionadas</h3><ul>';
while( $my_query->have_posts() ) {
$my_query->the_post();?>
<?php $smallthumb3=get_image(get_the_ID(),'smallthumb'); ?>
<li>
<article class="related-post">
<a class="rel-image" href="<?php the_permalink(); ?>" rel="nofollow">
<?php if(empty($smallthumb3)) { ?>
<img src="<?php echo get_template_directory_uri(); ?>/images/default.jpg" alt="<?php the_title(); ?>" />
<?php } else { ?>
<img title="<?php the_title(); ?>" src="<?php echo $smallthumb3; ?>" alt="<?php the_title(); ?>" />
<?php } ?>
</a>
<h2><a href="<?php the_permalink(); ?>" title="Ver <?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,15);?>
</article>
</li>
<?php
}
echo '</ul></aside>';
}
}
$post = $orig_post; wp_reset_query(); ?>

<?php $fbcm = get_option('enable-checkbox-fbcm'); if ($fbcm == "true") { ?>
<div id="comments">
<h3 class="sgtitle">Deja tu comentario!</h3>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-width="603" data-num-posts="5"></div>
</div>
<?php } else { comments_template( '', true ); } ?>
<?php endwhile; ?>


</div>
</section>

<?php get_sidebar(); ?>
<?php get_footer(); ?>
 

hariseldon

Piedra
Usuario de Piedra
Mensajes
47
Puntuación de reacción
0
<?php get_template_part( 'content', get_post_format() ); ?>
<?php get_template_part( 'content-single', get_post_format() ); ?>

Ésas son llamadas a partes de la plantilla que están en otros archivos, que usualmente son content-single.php y content.php. Seguramente esté ahí el get_the_author o bien la función correspondiente. Para estas cosas utiliza banderas: pon números en la plantilla hasta delimitar entre qué números aparece el author y sabrás localizar el código que hace que se muestre el autor o lo que necesites.
 
Mensajes
75
Puntuación de reacción
0
Muchas gracias a todos!! al final resulta que no veía el cambio por que no eliminaba también el cache -.-" he borrado todos los <span class="post-meta">Por <?php the_author(); ?> el <?php the_time(get_option('date_format')); ?></span> de los todos los content y listo, ahora me ha quedado genial, muchas gracias a todos por la ayuda!
 
Arriba