Commit 1f61a77b authored by Kevin Cristiano's avatar Kevin Cristiano 🌎
Browse files

Clean up example functions in docs for overriding css or replacing

parent ae08511e
......@@ -16,20 +16,20 @@ Example Code:
function tc_civicrm_theme_css( ) {
$tc_css = get_bloginfo( 'stylesheet_directory' ) .'/includes/css/civicrm.css';
$tc_css = get_stylesheet_directory_uri() .'/includes/css/civicrm.css';
return $tc_css;
}
add_filter( 'tc_civicss_override', 'tc_civicrm_theme_css' );
You can also just add additional css in yout theme. 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. 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.
Example Code:
function tc_civicrm_theme_css( ) {
wp_enqueue_style( 'tc_civi_style', get_template_directory_uri() . '/civicrm/civicrm.css' );
function tc_civicrm_theme_addl_css( ) {
wp_enqueue_style( 'tc_civi_style', get_stylesheet_directory_uri() . '/civicrm/civicrm.css' );
}
add_action( 'wp_print_styles', 'tc_civicrm_theme_css', 199 );
\ No newline at end of file
add_action( 'wp_print_styles', 'tc_civicrm_theme_addl_css', 199 );
\ No newline at end of file
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