Topic:Home Page Widget Area

Home Support PT Magazine Plus Topic:Home Page Widget Area

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #8186

    Although I have created the items in the “Home Page Widget Area” like:
    – PT: Alternate Column News
    – PT: Two Column News
    – PT: Three Column News
    – PT: Mix Column News
    Home Page Widget Area

    But why does it not work?
    Please be advised


    Hi @Nguyen Tri Hung

    You need to creat the home page and select Home Template to that page first.

    After that please go to Settings >> Reading and assign Home Page you have created to static front page.

    You can follow this video

    Thank you.


    Nice stuff

    • This reply was modified 3 years, 8 months ago by nirav.

    You can also use widget outside the sidebar. To registering a widget area add following code in your theme’s functions.php file.

    function smallenvelop_widgets_init() {
    register_sidebar( array(
    ‘name’ => __( ‘Header Sidebar’, ‘smallenvelop’ ),
    ‘id’ => ‘header-sidebar’,
    ‘before_widget’ => ‘<div>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<h1>’,
    ‘after_title’ => ‘</h1>’,
    ) );
    add_action( ‘widgets_init’, ‘smallenvelop_widgets_init’ );
    To display Widget Area add the following code to a location of your choice in your theme file. Here I am adding this code in my theme’s header.php

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘header-sidebar’) ) :

    endif; ?>

    I have applied it on one of my website. You can check it on

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.