Excerpt in Index page, and content in category page. How can I do it?

  • rafaelbrusque

    #7530

    Good morning!

    Congratulations for the great theme!

    I use it with excerpts on the homepage, however, for a category expecifica I need to use the content. To create this specific category, I duplicated the file index.php and renamed to the category i need, but it displays everything as excerpt. I need to display the content.

    How can I do it?

    Greetings!

    Anonymous

    #38556

    Moved to Support. Please post in the correct section next time.

    Admin

    Syahir Hakim

    #38557

    Are you using a child theme? What is the content of that custom category template file that you duplicated from index.php?

    rafaelbrusque

    #38558

    Hello Syahir Hakim!

    I do not use child theme. I have not made any changes to the index.php file, just copied it and renamed as the category I use, well, my category use the same template of index. I am a beginner in mecher with themes, but I can already some cool stuff, but the fact that, in this category, the contents is not easy.

    Below follows the index. I hope to be able to do that.

    <?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: http://codex.wordpress.org/Template_Hierarchy
    *
    * @package Graphene
    * @since Graphene 1.0
    */
    global $graphene_settings;
    get_header(); ?>

    <?php
    do_action('graphene_index_pre_loop');

    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-index.php and that will be used instead.
    */
    while ( have_posts() ) {
    the_post();
    get_template_part( 'loop', 'index' );
    }

    /* Posts navigation. */
    graphene_posts_nav();
    ?>

    <?php get_footer(); ?>

    To get an idea, look at my site: http://blogdocaminhoneiro.com/

    And here I must leave the category with the complete content: http://blogdocaminhoneiro.com/category/fotosdecaminhoes/

    Greetings.

    Admin

    Syahir Hakim

    #38559

    If you’re not using a child theme, the next time you update the theme all your changes and custom templates will be lost. We would really recommend you to use a child theme for the customising the theme.

    rafaelbrusque

    #38560

    Hello Syahir Hakim!

    I’m auditioning here. The final version will be in a child theme. Only need to resolve this issue. How to show, in this special gallery, the content, and in the homepage show only excerpt.

    I hope you can help me.

    Greetings!

    Admin

    Syahir Hakim

    #38561

    OK, let’s backtrack a bit. In Graphene Options > Display > Excerpts Display Options, you have the option “Show full content in archive pages” unchecked? If so, then what you’re trying to achieve is simply to have all categories to display excerpts, except for this one category with the slug expecifica?

    rafaelbrusque

    #38562

    I do not believe I have not seen that option.

    She helped me a lot and did what I needed.

    Sorry for the inconvenience. I’m happy for your help and hospitality.

    So I’m making more with my adsense, newly placed on the site, I will make a donation for the your excellent work.

    Thanks again.

Viewing 8 posts - 1 through 8 (of 8 total)

  • You must be logged in to reply to this topic.