Southwest
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Neve FSE] How to select and replace Site Logo?The culprit was the Litespeed Cache plugin, as detailed in this support post.
My apologies for the misdirected support request.
Forum: Themes and Templates
In reply to: [Neve FSE] How to select and replace Site Logo?Oh darn it, I overlooked that I disabled some plugins before testing Frost, and that seems to have affected the behavior, because Neve FSE is now working too.
I’m going to re-enable plugins one-by-one to find the culprit and I’ll share it here when I figure it out.
Forum: Themes and Templates
In reply to: [Neve FSE] How to select and replace Site Logo?As additional context, if I switch to a different theme (Frost), I can insert a Site Logo block and click it to select/upload a file without a problem.
Forum: Plugins
In reply to: [Media Library Assistant] How to hide taxonomies from public viewThanks, David. That helps me; I’ve opened a request with my WebDev team to modify the templates accordingly.
@jordanwebdev, thanks for your comment. I was getting itchy trying to figure out which of my add-ons was causing this issue. In hindsight, it makes some sort of sense, given that Facebook Container tries to silo Facebook and Instagram is owned by Facebook.
I have my fingers crossed that the update to Instagram Feed will solve this issue.
Forum: Fixing WordPress
In reply to: Gutenberg: Tags disappear on entrySame issue, even for tags not containing special characters. Running WordPress 5.1.1.
Forum: Plugins
In reply to: [Image Cleanup] Select all featureSeconded! I have over 2600 images in the “Unreferenced Unused Images” category, and I really wish I didn’t have to go through them 100 at a time.
Forum: Plugins
In reply to: [Simply Exclude] Warning message for missing argumentsPaul, has the fix been pushed? I’m also encountering this error on a page, and I’m running Simply Exclude 2.0.6.4.
I ask because I see you mentioned this 6 hours ago and marked the subject as resolved, and there was also an update pushed around that time, but I’m not sure if 2.0.6.4 was the upcoming patch you mentioned in your comment.
Thanks!
Well, that was silly of me.
Those dimensions (1280×9999) were defined by my
post-image-cover
size.Mattia, thank you for your help. I was able to get this working. This is what the relevant section of header.php looks like now:
<!-- southwest: declare these variables for use later -->
<?php $cat_id = get_query_var( 'cat' );
$fimg = cfi_featured_image_url( array( 'size' => 'post-image-cover-size', 'cat_id' => $cat_id ) );?>
<!-- /southwest's modifications -->
<?php if ( is_singular() && has_post_thumbnail() ) : ?><?php
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-image-cover' );
$post_image = $thumb['0'];
?><div class="header-image bg-image" style="background-image: url(<?php echo esc_url( $post_image ); ?>)">
<?php the_post_thumbnail('post-image'); ?>
</div>
<!-- southwest's modifications for category featured image go here -->
<?php elseif ( is_category() && !empty( $fimg ) ) : ?>
<div class="header-image bg-image" style="background-image: url(<?php echo esc_url( $fimg ); ?>)">
<?php cfi_featured_image( array( 'size' => 'post-image-cover-size', 'cat_id' => $cat_id) ); ?>
</div>
<!-- /southwest's modifications --><?php else : ?>
<div class="header-image bg-image" style="background-image: url(<?php if (get_header_image() != '') { header_image(); echo ')'; } else { echo get_template_directory_uri() . "/images/header.jpg)"; } ?>">
<?php
if (get_header_image() != '') {
echo '<img src="'; header_image(); echo '">';
} else {
echo '<img src="' . get_template_directory_uri() . '/images/header.jpg">';
}
?></div>
You can see this in action in a few categories on my blog. For example, the “Internet” category.
In other words, I’m trying to make an equivalent of this block for category featured images:
<?php if ( is_singular() && has_post_thumbnail() ) : ?>
<?php
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-image-cover' );
$post_image = $thumb['0'];
?><div class="header-image bg-image" style="background-image: url(<?php echo esc_url( $post_image ); ?>)">
<?php the_post_thumbnail('post-image'); ?>
</div>Thanks, that’s helpful. I’m working with it.
archive.php uses
get_header();
to create the header at the top of the archive page, which is why I’m editing header.php.Is there an easy way to test if a category has a featured image? For instance, header.php currently has a block that begins:
<?php if ( is_singular() && has_post_thumbnail() ) : ?>
I want to write something like
<?php if ( is_category() && has_category_featured_image() ) : ?>
, or something else that tests to see if the category has a featured image specified. Is there a way to do that?Forum: Themes and Templates
In reply to: [Lovecraft] Child theme CSS isn't loading, Unicode breaksResolved the caching issue. CloudFlare was caching my CSS files. I diagnosed this by selectively purging the CSS file from the cache, and then solved the issue by turning on “Development Mode”, all via the CloudFlare dashboard.
Forum: Themes and Templates
In reply to: [Lovecraft] Child theme CSS isn't loading, Unicode breaksI take that back, it’s not totally resolved.
The CSS seems to be cached somewhere, thanks to that
?ver=4.1.1
, and I don’t know how to update that cached CSS file. I edit my CSS and reupload it to my server, but if I follow the link in the<head>
to the?ver=4.1.1
style sheet, it doesn’t reflect my edits.Forum: Themes and Templates
In reply to: [Lovecraft] Child theme CSS isn't loading, Unicode breaksI looked at the source and checked out the
<head>
. For some reason, this was being used as the stylesheet URL:[…]/blog/wp-content/themes/lovecraft-child/style.css?ver=4.1.1
Note the
?ver=4.1.1
at the end.I don’t know why it was doing this, and if I can make it stop, I’d be happy, but removing the version line from the theme info at the beginning of my
style.css
made the stylesheet begin to work.I’ll keep this open for a few days in case anyone can help me figure out how to remove that
?ver=4.1.1
.