Skip to content

tadpolecc/org.habitatmonmouth.csshelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Helper for CiviCRM and WordPress

Tadpole's CiviCRM CSS override allows the theme to control the CSS on frontend CiviCRM pages. This includes a templates directory to override selectors where they are lacking.

This extension complements the core CiviCRM CSS file with its own.

This extension supports 4.7.

Version 4.7 is based on the /civicrm/css/civicrm.css from the 4.7 release.

Overrides

You can now replace this extension's CSS file 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 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_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 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_addl_css( ) {
	wp_enqueue_style( 'tc_civi_style', get_stylesheet_directory_uri() . '/civicrm/civicrm.css' );

}

add_filter( 'wp_print_styles', 'tc_civicrm_theme_addl_css', 199 ); 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •