WordPress Widget not saving my text widget
-
I am working on my client theme wanted to create new widget area at home.
In my functions.php I have put:register_sidebar( array(
‘name’ => ‘1’,
‘id’ => ‘1’,
‘class’ => ‘page45’,
‘before_widget’ => ‘<div>’,
‘after_widget’ => ‘</div>’,) );
}
add_action( ‘widgets_init’, ‘arphabet_widgets_init’ );In my sidebar.php I have the following snippet of code:
<?php
if (is_front_page()) {
?>
<div class=”page45″>
<?php dynamic_sidebar( ‘1’ ); ?>
</div>
<?php
}; //end if
?>When I am in the Widgets Admin I drag the Text and I type:
Some Basic HTML CODE.
I then save. I then go to the user site and it shows that this has been pushed over. However if I refresh the Widgets Admin page then the text widget is gone, but on website HTML code is still showing the results..
Can you point me in the right direction.
- The topic ‘WordPress Widget not saving my text widget’ is closed to new replies.