(SOLVED) Problem adding a footer widget area


Hi everyone,I'm using beans theme child and I would like to add social buttons and some info at the footer area. When I add to my functions.php file the code snippet (located in docs) to add a footer widget area, my site prints an 500 error. When I delete the code snippet, all works fine.

I added other code snippet too, to modify the copyright text at footer and works perfectly, then, what can I do? Any suggestion?

The code snippet used:

// Register a footer widget area. add_action( 'widgets_init', 'example_widget_area' );

function example_widget_area() {

beans_register_widget_area( array(
    'name' => 'Footer',
    'id' => 'footer',
    'beans_type' => 'grid'
) );

}

// Display the footer widget area in the front end. add_action( 'beans_footer_before_markup', 'example_footer_widget_area' );

function example_footer_widget_area() {

?>

<?php

}

Write a reply

Login or register to write a reply, it's free!