Show fields on testimonials only

Hi
I understand if this is out of your remit as I used a plugin. Just let me know if that is the case.

The individual testimonials are not showing some additional fields like stars, name and website.

Somewhere in all my css I have something that stops the author date and name showing on posts and portfolio items. I think it is also stopping some fields showing up in individual testimonial posts.

Any ideas would be much appreciated.

/* hide portfolio meta */
.x-portfolio .entry-cover-content span:first-child {
display: none;
}
.x-portfolio .entry-cover-content h2+span {
display: none;
}
.x-portfolio-filters i:before {
content: ‘Filter’;
font-family: “comfortaa”,sans-serif;
letter-spacing: 0.4px;
}

.x-portfolio-filters {
width: auto;
height: auto;
display: block;
padding: 2px 8px;
}

/* hide post meta */

.p-meta>span,
.p-meta span:nth-child(3)::after {
display: none;
}
.p-meta span:nth-child(3) {
display: block;
}

/* hide widget meta */
.widget .post-date {
display: none;
}
.x-recent-posts .x-recent-posts-date {
display: none;
}

.x-recent-posts .h-recent-posts {
display: none;
}
.x-recent-posts .x-recent-posts-content {
padding: 2.5px;
}

Hi @lisacole1,

Thanks for reaching out!

Upon checking on your single testimonial page, I found out that some of the your custom CSS are the reason why the fields like name, date is not showing. Please add this CSS code in your X > Theme Options >CSS, that code will show the name and dates only because I don’t see the star and website fields.

.single-wpm-testimonial .p-meta>span, .single-wpm-testimonial .p-meta span:nth-child(2)::after {
    display: inline-block;
}

Please note that custom CSS code is outside the scope of our support. Issues that might arise from the use of custom CSS code and further enhancements should be directed to a third-party developer or you can avail One where we can answer questions outside of the features of our theme.

Hope that helps.

Thank you.

Thanks, I know what was stopping it from working. It helps a little having the identifier for the single testimonial and I’ll try to google how to add a custom field instead of just meta. I don’t want it to show my name or the date. One of the fields is client_name just in case you are feeling generous with your expertise but I do know that it is out of your scope.

Hi @lisacole1,

Integrating custom fields using the X theme will require some PHP customization in the testimonial files. Regretfully, customization is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

On the other hand, If you don’t want customization. I suggest that you convert your X theme to Pro because you can customize the testimonial page using the Layout Builder features. There’s more, you can also integrate ACF in the Layout Builder without any file customization. To know more, please check the articles below.

Converting X to Pro:

ACF + Loopers

Layout Builder:

Hope that helps.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.