Reply To: Frontpage widgets

Home Forums Support Frontpage widgets Reply To: Frontpage widgets

Home Forums Support Frontpage widgets Reply To: Frontpage widgets

#198920
Tom
Lead Developer
Lead Developer

At the start of your function, do something like this:

add_action( 'generate_before_footer', 'appacdm_frontpage_widgets' );
function appacdm_frontpage_widgets() {

    if ( ! is_front_page() )
        return;

    // Get frontpage widgets to show
    ?>

    // The rest of your code...
}