I am learning how to make wordpress theme. I am doing pretty well. Now I want to make shortcodes. But is is showing Parse error: syntax error, unexpected '}' in E:\xampp\htdocs\wordpress\wp-content\themes\freedom\shortcodes.php on line 17 . I still don't know what is the problem. Here is the code .
<?php
function slider_function( $atts ) {
$atts = extract( shortcode_atts(
array(
'tittle'=>'',
'description'=>'',
'button'=>'',
'button_url'=>''
),$atts ) );
return '
<div class="slider">
<h1>"' . $atts['tittle'] . '"</h1>
<h2>"' . $atts['tittle'] . '"</h2>
<a href="' . $atts['tittle'] . '" class="btn-modern text-center"></a>
</div>'
}
add_shortcode( 'slider','slider_function' );
?>