Custom Skins /
April 4, 2017
Custom Skins
You can override the default timeline skins cleanly by overriding the timeline-skins assets in your theme.
Steps to override the timeline-skins assets :
1. Copy the victheme_timeline/assets/timeline-skins
folder to your folder of choice. example /your-theme/templates
2. In your theme functions.php
, Register the target folder (eg. /your-theme/templates)
to VicTheme Core plugin asset manager :
// Setup the VTCore asset factory
VTCore_Wordpress_Init::getFactory('assets')
->get('library')
->detect({some_path_to_target_folder_roots} . '/your-theme/templates', get_template_directory_uri() . '/templates');
3. Invoke the asset manager to load the timeline skins, this is best to be performed inside wp_enqueue_scripts
action hook.
// Load the timeline skins
VTCore_Wordpress_Utility::loadAsset('timeline-skins');
4. Edit the cloned css file to suit your needs.