• stancosmos

    (@stancosmos)


    I used to be able to change the background color of posts and it looked great. Then one day wordpress updated and removed my css i used to do it. Now when i put in the same css it doesn’t work and the post background is always white. I really need to change this, anyone know how? Thanks in advance!

Viewing 1 replies (of 1 total)
  • Subrata Sarkar

    (@subrataemfluence)

    How are you referencing your external custom CSS? Ideally it should be enqueued in your theme’s functions.php like this:

    
    function include_static_resources() {
      wp_enqueue_style('custom-style', get_stylesheet_uri(), array(), mt_rand(), 'all');
      ...
    }
    
    add_action('wp_enqueue_scripts', 'resource_includes');
    
    

    And if the background rule is set in your custom-style.css it should work.

Viewing 1 replies (of 1 total)
  • The topic ‘How can i change the background color of posts?’ is closed to new replies.