latrishablevins
Forum Replies Created
-
Forum: Plugins
In reply to: [Query Monitor] PHP error in WordPress coreI have checked and init.php does not exist as a file in wp-includes dir
Forum: Plugins
In reply to: [Query Monitor] PHP error in WordPress coreHi, thank you for your fast help. I have found line 79 in wp-config.php and removed and all works great. Take a look at the line that I removed. Is it safe to remove the whole line?
Forum: Themes and Templates
In reply to: [GeneratePress] How to fix featured image croppingHi, I tried a different approach but had no luck. I have tried to set a new feature image size:
add_filter('post_thumbnail_html', 'custom_generatepress_featured_image', 10, 5); function custom_generatepress_featured_image($html, $post_id, $post_thumbnail_id, $size, $attr) { if (is_single() && $html !== '') { // Get the featured image URL $featured_image_url = wp_get_attachment_image_url($post_thumbnail_id, $size); if ($featured_image_url) { // Define the desired image dimensions (100% width and 400px height) $width = '100%'; $height = 400; // Generate the cropped image HTML $image_html = sprintf( '<img src="%s" alt="%s" style="width: %s; height: %s; object-fit: cover; object-position: center top;" />', esc_url($featured_image_url), esc_attr(get_post_meta($post_thumbnail_id, '_wp_attachment_image_alt', true)), esc_attr($width), esc_attr($height) ); return $image_html; } } return $html; } }Forum: Themes and Templates
In reply to: [GeneratePress] How to fix featured image croppingHi, I am having trouble finding that specific class for feature image which is used in the post editor and during link sharing on social media. Can you help me identify that class, and then I can try with:
.unqnown-class {
object-position: center top !important;
}Hello, After nearly 7 plugin updates during these 5 months, Twitter Card and Open Graph are still not working. When I look at the post preview, it looks fine, but when I try to add a link to Twitter or Facebook, it’s cropped at the center, completely ruining the image. Can you fix this issue?
Forum: Plugins
In reply to: [WP Popular Posts] Suddenly stopped showing images?…and on mobile, the plugin is not responsive anymore.
Forum: Plugins
In reply to: [WP Popular Posts] Suddenly stopped showing images?No matter what dimensions I set, the aspect ratio looks wrong, not like before. I used to keep widget settings at 320×420 px and theme tiles. Now whatever dimension I put in functions.php under each image is a gap and weird aspect ratios. How to fix this?
Forum: Plugins
In reply to: [WP Popular Posts] Suddenly stopped showing images?I have been using FIFU and WPP from the beginning. FIFU automatically adds the first image as featured, and all have worked flawlessly for years. Strange.
Forum: Plugins
In reply to: [WP Popular Posts] Suddenly stopped showing images?I purposely did not delete the WordPress Popular Posts cache because that alone would temporarily solve the problem. At least, I think so.
Forum: Plugins
In reply to: [WP Popular Posts] Suddenly stopped showing images?Hi, yesterday I updated the plugins Featured Image from URL (FIFU) and Simple Cloudflare Turnstile. The plugins update automatically, so I didn’t change anything except that. I have been using WordPress Popular Posts for 3 years with all currently installed plugins. I have cleared the WP-Rocket cache, but the issue is still present.
Sorry. The Poppins font is causing that problem. Thank you very much for your help. All best!
Hello, I have checked a bit and changed fonts in customize/typography, and seems that is not the issue here because on Google fonts Oswald fonts show normal “a” from lite 200 to bold 700?
Forum: Plugins
In reply to: [WP Popular Posts] The widget title is too large?Great, CSS fixed the title. Thank you for your fast help.
Forum: Plugins
In reply to: [WP Popular Posts] Widget is going away?I figured it out. It was quite easy to change actually. Everything is working flawlessly!
Forum: Plugins
In reply to: [WP Popular Posts] AnnoyingI figured it out. It was quite easy to change actually. Everything is working flawlessly!