Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #130083
    skynet
    Participant

    After i switch to 7 post to my homepage on vitamineproteine.com and content is not fully showed and it’s ok work as expected. But i have noticed the “tag pages” also now is not show fully content: https://www.vitamineproteine.com/tag/actimel-fa-bene/

    So at the moment most of my tag pages are in good position on google rank, but
    i need a function to show full content just on tag pages, any idea ?

    #130089
    skynet
    Participant

    i need to modify the_excerpt on tags to the_content, but i don’t know where.

    #130091
    Skandha
    Participant

    @skynet: Yes will need to replace the the_excerpt() with the_content(). You should do this change in tag.php file.

    Let me know if this resolves your issues!

    Regards,
    Skandha

    #130094
    skynet
    Participant

    Hello Skandha, unfortunately on tag.php I don’t find the_excerpt voices. This make me so worried. Any idea?

    #130097
    tikaram
    Participant

    @skynet: You will need to create a child theme and customize the site for tags pages to display full content. If you would like to display full content on blog page, tags and archive pages you can enable it from the customizer. I suggest you to create a child theme rather than editing the parent theme directly. Let me know if you need assistance for child theme customization.

    Regards,
    Tikaram

    #130099
    skynet
    Participant

    Hello great Tikaram, I just want to change the parent theme is not hard to me to have a great backup. Can you help me to change the_excerpt to the_content on tag pages? I no sleep more then 15 hours to find a solution. I just want excerpts on homepage. It’s ok on category, and homepage but I really need to show full content on tags. Please help, I don’t want use child theme.

    #130117
    Sakin
    Keymaster

    @skynet: You need to create child theme. There is no doubt on this. After you create child theme, you can copy content.php file to your child theme. Then add the following code after </div><!-- .entry-summary --> in line no 67

    <?php elseif ( is_tag() ) : ?>	
    	<div class="entry-content">
    		<?php
            if ( empty( $options['more_tag_accessible'] ) ) {
    	    	$more_tag_text = $options['more_tag_text'];
    
    	    	the_content( $more_tag_text );
    	    }
    	    else {
    			$more_tag_text = $options['more_tag_text_accessible'];
    			$more_tag_icon = $options['more_tag_icon_accessible'];
    
    	    	the_content(
                    sprintf(
                       $more_tag_text,
                        '<span class="screen-reader-text">  '. get_the_title() .'</span>'
                    ).
                    '<span class="meta-nav">' . $more_tag_icon . '</span>'
                );
    	    }
    	    ?>
    		<?php wp_link_pages( array(
                'before'		=> '<div class="page-link"><span class="pages">' . __( 'Pages:', 'catch-box-pro' ) . '</span>',
                'after'			=> '</div>',
                'link_before' 	=> '<span>',
                'link_after'   	=> '</span>',
            ) );
            ?>
    	</div><!-- .entry-content -->
    #130119
    skynet
    Participant

    Sakin, you are just a genius! Saved my day. The code working perfectly, i will also create a child theme.
    Thank you so much!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Tag Page Show Full Content’ is closed to new replies.