Site breaks after: if ( is_page( is enetered
-
Im trying to get a custom widget to show up on a particular page, but the site breaks after updating the func.php I know it has to do with the conditional tag value because if I remove the tag and update, site is fine, but of-course, widget shows up on all pages. Tried a few other things and always the same white screen…..
Below is the entry (PLEASE HELP)//* 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>’,
) );}
- The topic ‘Site breaks after: if ( is_page( is enetered’ is closed to new replies.