Skip to content

Instantly share code, notes, and snippets.

/functions.php Secret

Created September 23, 2015 15:47
Show Gist options
  • Save anonymous/ab396513824b1f9b8b33 to your computer and use it in GitHub Desktop.
Save anonymous/ab396513824b1f9b8b33 to your computer and use it in GitHub Desktop.
After Edit
<?php
// if you want to add some custom function
add_filter('tribe_venue_label_singular', 'change_single_venue_label' );
function change_single_venue_label() {
return 'Location';
}
add_filter('tribe_venue_label_plural', 'change_plural_venue_label' );
function change_plural_venue_label() {
return 'Locations';
}
add_filter('tribe_organizer_label_singular', 'change_single_organizer_label' );
function change_single_organizer_label() {
return 'Instructor';
}
add_filter('tribe_organizer_label_plural', 'change_plural_organizer_label' );
function change_plural_organizer_label() {
return 'Instructors';
}
function all_scriptsandstyles() {
//Load JS and CSS files in here
//wp_register_script ('placeholder', get_stylesheet_directory_uri() . '/js/placeholder.js', array( 'jquery' ),'1',true);
wp_register_style ('googlefonts', 'http://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800,900|Raleway:400,500,600,700,800,900|Lato:400,500,600,700,800,900:', array(),'2','all');
//wp_enqueue_script('placeholder');
wp_enqueue_style( 'googlefonts');
//wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'zorka_style-min' ) );
}
add_action( 'wp_enqueue_scripts', 'all_scriptsandstyles' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment