-
-
Save Pebblo/3b0487a025306da5f4535677c59e9f12 to your computer and use it in GitHub Desktop.
Example of how to load a 'espresso_content-none.php' file in place of your standard content-none.php template file.
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
<?php // Do not include the opening PHP tag. | |
add_action("get_template_part_content-none", 'tw_ee_espresso_content_none', 10, 2); | |
function tw_ee_espresso_content_none($slug, $name) { | |
if( | |
$slug === 'content' | |
&& $name === 'none' | |
) { | |
add_filter("FHEE__EEH_Template__get_template_part__display__content_none", '__return_false'); | |
espresso_get_template_part('espresso_content', 'none'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment