L
leybre06
Olá a todos!! Sou nova no fórum
Espero que possam me ajudar 🙂
Baixei um tema de wp! Especificamente o DUENA. Quero modificar um pouquinho ao meu gosto! O que acontece é que o post não aparece completo 🙁
apenas uma fração dele. Procurei no index do template (o excerpt) para substituir por content, mas não encontro.
Alguém pode me dar uma mão com esse probleminha??
deixarei o código do (single.php) Para que possam dar uma olhada.
<?php
/**
* The Template for displaying all single posts.
*
* @package duena
*/
get_header(); ?>
<div id="primary" class="span8 <?php echo esc_attr( of_get_option('blog_sidebar_pos') ) ?>">
<div id="content" class="site-content" role="main">
<?php while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
get_template_part( 'post-formats/'.$format );
if($format == '')
get_template_part( 'post-formats/standard' );
get_template_part( 'post-formats/post-nav' );
get_template_part( 'post-formats/related-posts' );
comments_template('', true);
endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
E o index, por via das dúvidas 🙂
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: Template Hierarchy « WordPress Codex
*
* @package duena
*/
get_header(); ?>
<div id="primary" class="span8 <?php echo esc_attr( of_get_option('blog_sidebar_pos') ) ?>">
<div id="content" class="site-content" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
get_template_part( 'post-formats/'.$format );
if($format == '')
get_template_part( 'post-formats/standard' );
endwhile;
get_template_part('post-formats/post-nav');
else: ?>
<div class="no-results">
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'duena' ); ?></p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div><!--no-results-->
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Espero que possam me ajudar 🙂
Desde já muito obrigada
Espero que possam me ajudar 🙂
Baixei um tema de wp! Especificamente o DUENA. Quero modificar um pouquinho ao meu gosto! O que acontece é que o post não aparece completo 🙁
apenas uma fração dele. Procurei no index do template (o excerpt) para substituir por content, mas não encontro.
Alguém pode me dar uma mão com esse probleminha??
deixarei o código do (single.php) Para que possam dar uma olhada.
<?php
/**
* The Template for displaying all single posts.
*
* @package duena
*/
get_header(); ?>
<div id="primary" class="span8 <?php echo esc_attr( of_get_option('blog_sidebar_pos') ) ?>">
<div id="content" class="site-content" role="main">
<?php while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
get_template_part( 'post-formats/'.$format );
if($format == '')
get_template_part( 'post-formats/standard' );
get_template_part( 'post-formats/post-nav' );
get_template_part( 'post-formats/related-posts' );
comments_template('', true);
endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
E o index, por via das dúvidas 🙂
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: Template Hierarchy « WordPress Codex
*
* @package duena
*/
get_header(); ?>
<div id="primary" class="span8 <?php echo esc_attr( of_get_option('blog_sidebar_pos') ) ?>">
<div id="content" class="site-content" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post();
// The following determines what the post format is and shows the correct file accordingly
$format = get_post_format();
get_template_part( 'post-formats/'.$format );
if($format == '')
get_template_part( 'post-formats/standard' );
endwhile;
get_template_part('post-formats/post-nav');
else: ?>
<div class="no-results">
<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'duena' ); ?></p>
<?php get_search_form(); /* outputs the default Wordpress search form */ ?>
</div><!--no-results-->
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Espero que possam me ajudar 🙂
Desde já muito obrigada