Verified Commit 4505f4aa authored by Kevin Cristiano's avatar Kevin Cristiano 🌎

update examples

parent e2bd0a77
......@@ -24,13 +24,13 @@ Example Code:
add_filter( 'tc_civicss_override', 'tc_civicrm_theme_css' );
You can also just add additional css in your theme. As the civicrm.css from the extension loads with a priority of 110, set this higher. The example shows '199' as the priority. Add the below function to your theme's functions.php or add a your own plugin to do this. You will need to have the images directory /i available at the same level as your civicrm.css file to show credit card icons and other images.
You can also just add additional css in your theme. The example shows a dependency on `tad_default_civicrm` to ensure that the default style sheet loads first. Add the below function to your theme's functions.php or add a your own plugin to do this. You will need to have the images directory /i available at the same level as your civicrm.css file to show credit card icons and other images.
Example Code:
function tc_civicrm_theme_addl_css( ) {
wp_enqueue_style( 'tc_civi_style', get_stylesheet_directory_uri() . '/civicrm/civicrm.css' );
wp_enqueue_style( 'tc_civi_style', get_stylesheet_directory_uri() . '/civicrm/civicrm.css', array('tad_default_civicrm') );
}
add_filter( 'wp_print_styles', 'tc_civicrm_theme_addl_css', 199 );
add_filter( 'wp_enqueue_scripts', 'tc_civicrm_theme_addl_css');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment