Rikard Degler
  • Rikard Degler
  • Blog
  • Portfolio
  • Blog
  • Portfolio

You are here: Home » single post

Add body class to WordPress posts without featured image

Posted on 9th October 2018 at 9:37 am.

Written by admin

You might need to apply different styling to posts without a featured image, this function will add a class to the body tag to all single posts without a featured image:

Tags: body class, featured image, single post

Read more »
Categories
  • Divi
  • Function
  • htaccess
  • Maintenance
  • Page speed
  • SEO
  • Wordcamp
  • WordPress
Recent Posts
  • Why optimising your WordPress site for speed is important? 19th January 2019
  • Add body class to WordPress posts without featured image 9th October 2018
  • What SEO actually is 9th October 2018
  • Could WordPress 4.9 be the end of the white screen of death? 6th October 2017
  • How to find the best WordPress maintenance service 30th September 2017
My Projects

SteadyWP


Snippets and stuff

GitHub
CodePen

Contact me