Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter vgar1979

    (@vgar1979)

    My apologies…
    I am using Genesis Framewsork and Magazine Pro Child theme.
    This line of code is intended for a PAGE page and inserted into the functions.php inside the child theme. What I am trying to do originally is have the Widget show up on just ONE specific PAGE page, but seems to show up on all page/post through out the site. Below is the code being used. Thanks in advance.

    //* Socialize Widget Area
    genesis_register_sidebar( array(
    	'id'          => 'socialize-widget',
    	'name'        => __( 'Socialize', 'magazine' ),
    	'description' => __( 'Below header of the socialize page.', 'magazine' ),
    ) );
    
    add_action( 'genesis_after_header', 'socialize_widget' );
    function socialize_widget() {
    				if ( is_page( 'Socialize' ));
                    genesis_widget_area( 'socialize-widget', array(
    		'before' => '<div class="socialize-widget widget-area">',
    		'after'  => '</div>',
        ) );
    
    }

Viewing 1 replies (of 1 total)