Understand why CSS has no effect with the Inactive CSS rules indicator in Firefox DevTools

Featured Imgs 23

It’s useful when DevTools tells you that a declaration is invalid. For example, colr: red; isn’t valid because colr isn’t a valid property. Likewise color: rd; isn’t valid because rd isn’t a valid value. For the most part, a browser’s DevTools shows the declaration as crossed out with a warning () icon. It would be nice if they went a step further to tell you which thing was wrong (or both) and suggest likely fixes, but hey, I don’t wanna look a gift horse in the mouth.

Firefox is starting to go a step further in telling you when certain declarations aren’t valid, not because of a syntax error, but because they don’t meet other qualifications. For example, I tossed a grid-column-gap: 1rem on a random <p> and I was told this in a little popup:

grid-column-gap has no effect on this element since it’s not a flex container, a grid container, or a multi-column container.

Try adding either display:grid, display:flex, or columns:2. Learn more

Well that’s awful handy.

Elijah Manor has a blog post and video digging into this a bit.

Direct Link to ArticlePermalink

The post Understand why CSS has no effect with the Inactive CSS rules indicator in Firefox DevTools appeared first on CSS-Tricks.

#271: Sending Email

Featured Imgs 23

Show Description

Dee and Marie talk about changes being made behind the tech we use to send out emails at CodePen. What’s the difference between transactional and non-transactional emails? When to bring an outside service vs building it yourself? And how are we sending emails so quickly now?

Time Jumps

  • 00:45 Transactional vs non-transactional email
  • 09:44 Bringing in outside services vs internal
  • 18:04 Sponsor: An Event Apart
  • 19:36 Very Important Emails get sent
  • 21:24 How can we send email so quickly now?
  • 29:12 Improved open rates

Sponsor: An Event Apart 18:04

To design a better web experience, attend a better-designed web conference. An Event Apart is three days of design, code, and content taught by absolute masters—the people who shape our medium. Join us and set yourself Apart.

Show Links

CodePen Links

The post #271: Sending Email appeared first on CodePen Blog.

700+ Free PSD Templates for Download

Category Image 006
Free PSD templates sure make life easier for web designers and photo artists- that’s the gospel truth. As designers and artists, we spend countless hours toiling and working on our Photoshop...

Visit The Site For More...

How to Fix Facebook Incorrect Thumbnail Issue in WordPress

Featured Imgs 13

Have you noticed an incorrect post thumbnail when you share your articles on Facebook?

It’s a common error that beginners often complain about because knowing how to make the right thumbnail show up is not always clear.

In this article, we will show you how to fix the Facebook incorrect thumbnail issue in WordPress.

Fixing the Facebook incorrect thumbnail issue in WordPress

Why Facebook is Not Picking up The Thumbnail Image

There are many reasons why Facebook might not correctly display the feature image on your post.

One of the most common reasons is having multiple images set in the og:Image tag where your featured image is smaller than the other images.

Facebook uses Open Graph (og) tags, and many WordPress plugins like All in One SEO and Yoast SEO automatically adds them to your site to prevent the missing thumbnail issue.

Among other causes are caching plugins, CDN conflicts, or a missing open graph meta tag for the thumbnail image.

It’s really hard to guess what’s causing the issue because there are no specific error messages displayed when using the debugging tool.

That being said, let’s take a look at some ways to fix the incorrect Facebook thumbnail issue.

Choose Your Facebook Thumbnail with All in One SEO

One way to show the thumbnail you want is to use the All in One SEO. plugin. It is the best WordPress SEO plugin on the market and allows you to easily optimize your content for search engines and social media websites.

First, you need to install and activate All in One SEO. Here’s our full guide on how to install a WordPress plugin.

Next, you’ll need to enable the ability to add Facebook thumbnail images to each post.

Simply go to All in One SEO » Feature Manager and click the ‘Activate’ button in the ‘Social Meta’ box.

Social meta feature manager All In One SEO

After you do this, you’ll now have a new feature unlocked at the bottom of your post editor. Scroll to the bottom, and you’ll see the ‘Social Settings’ tab.

You need to click on that and upload any image you want to display as your Facebook thumbnail.

All In One SEO social settings

Once you add your Facebook thumbnail image there, save your post, and this will fix the issue in most cases.

Here’s what our post looks like:

All In One SEO fixed thumbnail

Pro tip: If this doesn’t work, then make sure you have cleared your WordPress cache and refreshed the post in Facebook debug tool mentioned below in the article.

Choose Your Facebook Thumbnail with Yoast SEO Plugin

The Yoast SEO Plugin also comes with the ability to add a custom Facebook thumbnail to each individual post or page.

Simply install the Yoast SEO Plugin. After you’ve installed and activated, it’s time to set up a Facebook thumbnail into whatever post you want.

When writing a post, scroll down to the Yoast SEO meta box below the post editor and then click on the social tab. There you will see a button to upload a thumbnail image for Facebook.

Yoast Facebook featured image

Here’s what the Facebook thumbnail looks like for our how to start a blog article:

Yoast Facebook thumbnail image

Using Facebook Debug Tool to Clear the Cache

If you have added the right thumbnail, and Facebook is still not showing the right thumbnail, then the issue is related to caching.

First you need to make sure that you clear page cache in WordPress.

After that, you need to reset the cache in Facebook using their debug tool.

The Facebook debug tool is the easiest way to troubleshoot Facebook thumbnail issues.

Simply copy the URL of your WordPress post and paste it in the debugger tool.

Facebook debug tool

After that click on the Scrape Again button, and Facebook will update the thumbnail for your post. Sometimes, you may have to click the Scrape Again button twice.

We hope this article helped you resolve the Facebook incorrect/no thumbnail issue in WordPress. You may also want to see our guide on how to add social share buttons in WordPress and how to increase your blog traffic.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix Facebook Incorrect Thumbnail Issue in WordPress appeared first on WPBeginner.