Tagged: excerpt
-
AuthorPosts
-
February 17, 2017 at 3:34 pm #748496
Hi,
we want to show excerpts on the category overview and archive pages.
This describes how to do it: http://www.wpbeginner.com/wp-themes/how-to-display-post-excerpts-in-wordpress-themes/But in the enfold archive.php the
the_content();is not called.
Also the theme does not have a category.php page….How can we activate the use of excerpts in enfold?
We dont want to use a plugin for it.Also we want to have a ‘read more’ link display underneath the excerpt. So we would want to change the_content to something like:
” title=”Read the rest of <?php the_title(); ?>” class=”more-link”>Read the rest of this entry »Love to hear the correct way to activate this in enfold.
February 22, 2017 at 11:26 am #750408Hey hotspot,
Enfold doesn’t have category.php but it does have archive.php which is the fallback if there’s no category.php, you can refer to this post regarding template hierarchy: https://developer.wordpress.org/themes/basics/template-hierarchy/
Instead of using excerpt which requires tweaking the Enfold theme, I would suggest using the More Tag: https://en.support.wordpress.com/more-tag/ which should add the Read More link.
Best regards,
NikkoFebruary 22, 2017 at 11:42 am #750422Hi Nikko,
We do not want to use the ‘read more’ tag because of the duplicate content problem for SEO.
So we want to use the excerpt.We found an answer here already, now hoping the design issue can be fixed also:
February 27, 2017 at 10:26 pm #752569Hi,
Try adding this css code in Quick CSS (located in Enfold > General Styling):
.read-more-link a { border: 2px solid; padding: 2px 12px; border-radius: 5px; } .read-more-link a:hover { text-decoration: none; }Hope this helps.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
