Crsh avada contact.php
-
dear
i updated your plugin and got a WSOD
i looked at the error log and found out that
Fatal error: Class already declared: Contact_Info_Widget in /www/myfrenchcity_354/public/wp-content/themes/Avada Theme/Avada/widgets/contact_info.php on line 9avada php
can you check what is going on
?php
add_action(‘widgets_init’, ‘contact_info_load_widgets’);function contact_info_load_widgets()
{
register_widget(‘Contact_Info_Widget’);
}class Contact_Info_Widget extends WP_Widget {
function Contact_Info_Widget()
{
$widget_ops = array(‘classname’ => ‘contact_info’, ‘description’ => ”);$control_ops = array(‘id_base’ => ‘contact_info-widget’);
$this->WP_Widget(‘contact_info-widget’, ‘Avada: Contact Info’, $widget_ops, $control_ops);
}
The topic ‘Crsh avada contact.php’ is closed to new replies.