aaronhilson
Forum Replies Created
-
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] SVG Featured ImagesAdding .preview.php in my child theme in the learnpress/single-course/sidebar and editing the .course-sidebar-preview contents fixes things. I think the issue is, $course->get_image() wraps wp_get_attachment_image() but that doesn’t handle SVG’s well or at all. Was this changed in an update recently?
Using get_the_post_thumbnail_url() works for me with SVG’s.
- This reply was modified 3 months, 2 weeks ago by aaronhilson.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] SVG Featured ImagesOn the single course template. Here is as a screenshot: https://i.imgur.com/O9M7wIZ.png
The same issue persists in WP Admin: https://i.imgur.com/JTOVMrc.png
It is displaying LearnPress’ fallback image.
When editing a course, the featured image shows fine: https://i.imgur.com/kYMedJZ.png
SVG’s have worked fine for us for months. My guess is LearnPress is trying to show a thumbnail version or something that is generated by WordPress by default but there isn’t one as it’s an SVG.
The problem goes away if we use jpg/png as featured images.
Hi,
Nothing has changed on our website as far as we know (no new plugins have been added, no theme update, no plugin updates). The first thing we’d have done is revert the change. Here is a product URL: https://www.poochs.co.uk/product/cheese-bones/.
The only change we have made this week to troubleshoot the issue is disabling Cloudflare Turnstile.
Thanks
You tested this on Astra Pro 4.8.12?
I’ve already found and solved the issue, I was just giving you a heads up. The product page link won’t help.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Custom Date Fields MissingHi, upon further testing, it’s ACFE Pro related, not the free version (the custom date field is fine in the free version, tested on a blank WP install). I rolled back to 0.9.0.8 Pro and face the same issue.
Apologies, I know this is for support for the free version, I just didn’t notice what plugin I was using (I run free on some websites, and pro on those that need it).
I’ll close this topic and submit a ticket.
Thanks
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Custom Date Fields MissingHi, yes, latest version of WP, ACF Pro and ACF Extended. I’ll run some further tests, but from what I have found initially as soon as ACFE is disabled, the custom date inputs show. Will report back. Thanks
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Course Category Meta DataFixed with:
<?php
// For the main <title> tag
add_filter('pre_get_document_title', 'custom_course_cat_main_title', 999);
function custom_course_cat_main_title($title) {
if (is_tax('course_category')) {
$term = get_queried_object();
$custom_title = get_term_meta($term->term_id, '_seopress_titles_title', true);
return !empty($custom_title) ? $custom_title : $title;
}
return $title;
}
// For the SEOPress meta/OG/Twitter titles
add_filter('seopress_titles_title', 'custom_course_cat_seo_title');
function custom_course_cat_seo_title($title) {
if (is_tax('course_category')) {
$term = get_queried_object();
$custom_title = get_term_meta($term->term_id, '_seopress_titles_title', true);
return !empty($custom_title) ? $custom_title : $title;
}
return $title;