Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all articles
Browse latest Browse all 19285

Jesin A on "[Plugin: W3 Total Cache] Can i use W3 Total cache plugin with a child theme"

$
0
0

But i can't as i have to modify the header of my theme which shouldn't be done in parent theme.

Why not modify this on the child theme?

Create the following file

wp-content/themes/tempera-child/functions.php

and place the following code

<?php
add_action( 'wp_enqueue_scripts', 'tempera_parent_style' );

function tempera_parent_style() {
wp_enqueue_style( 'tempera-style', get_template_directory_uri() . '/style.css' );
}

Now edit the child theme's style.css and remove @import.


Viewing all articles
Browse latest Browse all 19285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>