Some text content in home page

how can I add some text just above the first section?


Hello, sorry for late response
But sorry, there is no option to add custom text in the homepage. Maybe you can request an advance customisation to codeable?

is a shame, the template is very nice and would be useful to have some text in home

Hi - You could add a new widget area to the front page and load in a text widget under the banner? I’ve done this for another site.

Ok thanks I’ll try
I’m new on wordpress, is there a guide to add widget area?


Yep go here -
If you don’t understand it and want some help I could probably post the solution here.

Thanks a lot

@Robin Can you post the solution here?


Go to appearance > editor and select the theme you are editing

First we are going to register the widget area.

Edit functions.php and locate "function theshop_widgets_init()"
You will see the first sidebar cluster has been registered as follows:

register_sidebar( array(
    'name'          => esc_html__( 'Sidebar', 'theshop' ),
    'id'            => 'sidebar-1',
    'description'   => '',
    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    'after_widget'  => '</aside>',
    'before_title'  => '<h4 class="widget-title">',
    'after_title'   => '</h4>',
) );

Directly underneath that cluster, paste the following:

register_sidebar( array(
    'name'          => 'Page Body',
    'id'            => 'page_body_1',
    'before_widget' => '<section class="home-section"><div class="container">',
    'after_widget'  => '</div></section>',
    'before_title'  => '<h2 class="section-title"><span>',
    'after_title'   => '</span></h2>',
) );

Styling is inherited here so if you’ve changed any of the classes update them in the array above.

Next, make sure the sidebar is active
Edit sidebar.php and make sure it contains the following:

<?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<div id=“primary-sidebar” class=“primary-sidebar widget-area” role=“complementary”>
<?php dynamic_sidebar( ‘sidebar-1’ ); ?>
</div><!-- #primary-sidebar -->

Next, we’re going to display the new widget area on the front page

Edit Front Page Page Template.php
Locate "<main id=“main” class=“site-main” role="main”>” and copy paste the following directly underneath:
<?php dynamic_sidebar( ‘page_body_1’ ); ?>

Done. Now you access this widget through appearance > widgets