Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecodepoetry/ecd2280771c992a7cded to your computer and use it in GitHub Desktop.
Save thecodepoetry/ecd2280771c992a7cded to your computer and use it in GitHub Desktop.
Add footer globally in The7.2, Armada
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' );
}
}
@thecodepoetry
Copy link
Author

Add this code in your child theme's functions.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment