Tag: css

  • How to Hide an H1 without Hurting SEO or Accessibility

    I always hide the h1 for the homepage of a site. This is the most modern way that I have found to hide it without hurting anything. Just add the “.home-h1” class below:

    READ MORE


    Tags: , , ,

  • A Complicated Navigation Issue Solved with JS and CSS

    The Premise: In 2020, we needed a sub-navigation system on jtcc.edu that matched up to the HTML that an outside company had built for us and it turned out to be a bit more complex than you might expect. We needed it to automatically show the direct children of any page a visitor visits. However, […]

    READ MORE


    Tags: , , , ,

  • How to break CSS cache in WordPress

    By default, the wp_enqueue_style() function will put whatever version of WordPress that you currently have installed behind your CSS call like this: <link rel=’stylesheet’ href=’https://jeradsdesign.com/wp-main/wp-content/themes/jeradsdesign-wp/css/main.css?ver=5.8.2′ type=’text/css’ media=’all’ /> Grab the theme version from your style.css file: $theme = wp_get_theme();define(‘THEME_VERSION’, $theme->Version); Pass it as the 3rd parameter in your wp_enqueue_style() function in your functions.php: wp_enqueue_style(‘main’, get_template_directory_uri() […]

    READ MORE


    Tags: , , ,

error

Enjoy this blog? Please spread the word :)