Last active
August 29, 2015 14:10
-
-
Save thecodepoetry/ecd2280771c992a7cded to your computer and use it in GitHub Desktop.
Add footer globally in The7.2, Armada
This file contains hidden or 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
add_action( 'get_header', 'dt_global_footer', 10 ); | |
function dt_global_footer() { | |
$config = Presscore_Config::get_instance(); | |
$footer = $config->get( 'footer_show' ); | |
if(!$footer) { | |
$config->set( 'footer_show', true ); | |
$config->set( 'footer_widgetarea_id', 'sidebar_2' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this code in your child theme's functions.php