Terri Holley
asked 9 years ago

Right now some of my excerpts are cut off on my categories pages. The copy becomes buried under the divider. 

3 Answers
Wilfred
answered 9 years ago

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 !

Terri Holley
replied 9 years ago

Thanks! This worked perfectly for the category pages but did not change the homepage excerpts. Solution?

Mirek Kroupa
answered 9 years ago

Terri Holley:
Try my solution here:

The categories are showing long description?

Dominic Staff
replied 9 years ago

Thanks for your help !

Wilfred
answered 9 years ago

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!

Powered by DW Question & Answer Pro