- This topic has 7 replies, 4 voices, and was last updated 6 years, 2 months ago by skynet.
-
AuthorPosts
-
January 19, 2018 at 1:38 am #130083skynetParticipant
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 ?January 19, 2018 at 4:08 am #130089skynetParticipanti need to modify the_excerpt on tags to the_content, but i don’t know where.
January 19, 2018 at 4:29 am #130091SkandhaParticipant@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,
SkandhaJanuary 19, 2018 at 5:23 am #130094skynetParticipantHello Skandha, unfortunately on tag.php I don’t find the_excerpt voices. This make me so worried. Any idea?
January 19, 2018 at 5:56 am #130097tikaramKeymaster@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,
TikaramJanuary 19, 2018 at 6:04 am #130099skynetParticipantHello 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.
January 19, 2018 at 9:46 am #130117SakinKeymaster@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 -->
January 19, 2018 at 11:56 am #130119skynetParticipantSakin, you are just a genius! Saved my day. The code working perfectly, i will also create a child theme.
Thank you so much! -
AuthorPosts
- The topic ‘Tag Page Show Full Content’ is closed to new replies.