Created
February 18, 2015 10:29
-
-
Save DigitalEssence/e18f3d892aa4831d0a18 to your computer and use it in GitHub Desktop.
Enfold - Enable Shortcodes in Child Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////// | |
// Enable Shortcodes to be used in the child theme | |
////////////////////////////////// | |
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); | |
function avia_include_shortcode_template($paths) | |
{ | |
$template_url = get_stylesheet_directory(); | |
array_unshift($paths, $template_url.'/shortcodes/'); | |
return $paths; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment