Support » Theme: Virtue » Adjusting CSS link to prevent caching?

  • Resolved waldbach

    (@waldbach)


    Hi,

    I love this theme, and have only one issue now.

    There’s no file to be found which shows the link tag for my style.css in the child theme i made. It works, and it’s there in the source, but I want to modify the CSS link in the head, so I can prevent caching.

    Like so: style.css?version=3.2

    How do I make this possible with this theme?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • add this function in your child theme functions file:

    function virtue_child_script() {
    wp_dequeue_style('roots_child');
    wp_enqueue_style('new_virtue_child', get_stylesheet_uri(), false, '3.2');
    }
    add_action('wp_enqueue_scripts', 'virtue_child_script', 101);

    Kadence Themes

    Thread Starter waldbach

    (@waldbach)

    Ah, that’s great. Thanks a lot, Kadence! Much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adjusting CSS link to prevent caching?’ is closed to new replies.