Archived topic
tag archive has no read more label
31 replies · Started by Aaron on February 25, 2022
My goal is to have a read more button on my tag archive page showing only title, featured image, tags and read more. I tried various settings on customizer>layout>blog, but no link is present.
Hi there,
What kind of layout are you after?
Can you link me to the main blog/posts page?
See the products section on https://plgd-trading.com/products/coffee/
I’d like to have the same post layout on https://plgd-trading.com/product/tag/14-canephora/
Hi there,
the layout on the Tag Archive page is not the default GP layout - how has this been achieved ?
It's just some SCSS, you might block the resource https://plgd-trading.com/app/themes/generatepress-plgd/assets/build/css/style.css?id=66c7f87400343b30c4aa&ver=0b3d433adf53335a9fcc280009dd76e8 to see the original layout
//Tag Archives
.archive.tag .inside-article, .archive.tag .inside-article > * {
position: relative;
}
.archive.tag .inside-article {
height: 400px;
display: flex;
flex-direction: column-reverse;
text-align: center;
.entry-meta, .entry-header {
background: rgba(0,0,0,0.5);
}
.entry-meta {
order: 0;
margin: 0;
padding: 0 20px 20px 20px;
}
.entry-header {
order: 1;
padding: 20px 20px 5px 20px;
}
a, .tags-links{
color: var(--base-3);
}
a:hover {
color: var(--accent);
}
.entry-summary {
margin: 0;
}
.post-image {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
& img {
height: 100%;
width: 100%;
object-fit: cover;
}
}
}
So there has been no editing of the templates or any other PHP functions that interfere with it? Thats the single post or archive templates.
I checked my child theme functions.php and disabled it for testing purposes, with no effect. The template which is used is the unmodified themes/generatepress/archive.php
Things I tried to track it down:
disabled all plugins except generate blocks pro and gp premium.
I switched theme to generate press main theme.
I noticed that no excerpt - which I don't need anyway - is generated with a word count greater than 0.
If in the Customizer > Layout > Blog there must be something in the Read more label field - does that have content ?
Yes I typed „View“ in there.
Odd - any chance i can get a temporary admin access so i can take a closer look?
Sure, just provide me an e-mail address.
you can use:
support at generatepress.com
You should have gotten an e-mail.
Ok so they are a Custom Post type named Products. When you registered the CPT did you include excerpt in the supports array ?
As GP filters the excerpt to display the read more.