Right now some of my excerpts are cut off on my categories pages. The copy becomes buried under the divider.
Hi Terri,
To resolve this issue please follow my instruction here:
1. Add following code to custom wp_head in Dashboard / Appearance / Customizer / Custom code
<style>
@media (min-width: 980px) {
.archive .content-inner.layout-grid {
overflow: hidden;
}
.archive .content-inner.layout-grid .hentry {
height: auto;
border-bottom: 0;
margin: 0;
padding-top: 20px;
position: relative;
overflow: visible;
}
.archive .content-inner.layout-grid .hentry:before {
content: '';
position: absolute;
top: 0;
width: 500%;
height: 1px;
background: #ddd;
}
}
</style>
2. Open content-archive.php file in /wp-content/themes/dw-focus/content-archive.php
3. Replace following code – line 100
<?php the_excerpt(); ?>
with:
<?php the_content('Read more...'); ?>
Hope this helps !
Thanks! This worked perfectly for the category pages but did not change the homepage excerpts. Solution?
Terri Holley:
Try my solution here:
Thanks for your help !
To show “Read more…” in home page, you can use the solution below:
1. Open file dw-focus-categories.php in /wp-content/themes/dw-focus/inc/widgets/dw-focus-categories.php
2. Replace following code – line 293 & 407
<?php the_excerpt(); ?>
With:
<?php the_content('Read more...'); ?>
Hope this helps!
Please login or Register to submit your answer