I am trying to display a widget area on my home page

I am trying to display a widget area on my homepage. My result is ” Your theme has 1 widget area, but this particular page doesn’t display it.”. This is my current attempt and i dont see why this is not working.

This is in the functions.php file

register_sidebar(array(
‘name’ => __(‘FirstPage Widget Area’, ‘jobify’),
‘id’ => ‘widget-area-first-page’,
‘description’ => __(‘Choose what should display on the custom static homepage.’, ‘jobify’),
‘before_widget’ => ‘<section id=”%1$s” class=”widget widget–home %2$s”>’,
‘after_widget’ => ‘</section>’,
‘before_title’ => ‘<h3 class=”widget-title widget-title–home”>’,
‘after_title’ => ‘</h3>’,
));

This is in the template file for the homepage, home.php

<?php /* Template Name: Home */

declare(strict_types=1);

get_header();

dynamic_sidebar(‘widget-area-first-page’);

get_footer();

Read more here:: I am trying to display a widget area on my home page

Leave a Reply

Your email address will not be published. Required fields are marked *