Skip to content

tadpolecc/tadpole-civicrm-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tadpole-civicrm-css

Tadpole's CiviCRM css override that allows the theme to control the CSS on frontend CiviCRM pages.

This plugin replaces the core civicrm css file with it's own.

This plugin supports 4.4, 4.5 and 4.6

Version 1.2 is based on the civicrm.css from the 4.6 release

#Overrides Starting in V 1.1 you can now replace this plugins CSS with a custom one from your theme. This makes use of the tc_civicss_override filter. 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( ) {
    $tc_css = get_bloginfo( 'stylesheet_directory' ) .'/includes/css/civicrm.css';

    return $tc_css;
    }

add_filter( 'tc_civicss_override', 'tc_civicrm_theme_css' );