Topic:Home Page Widget Area

Home Support PT Magazine Plus Topic:Home Page Widget Area

  • This topic has 3 replies, 4 voices, and was last updated 3 years ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8186
    Anonymous
    Inactive

    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

    #8187
    ProDesigns
    Keymaster

    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 https://www.youtube.com/watch?v=fjwLap7Lm4M&index=9&list=PL-Ic437QwxQ8pBxfHsldZMQiHLvoEYmSS

    Thank you.

    #12014
    Anonymous
    Inactive

    Nice stuff

    • This reply was modified 4 years, 10 months ago by nirav.
    #18810
    Anonymous
    Inactive

    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 reviewlog.org/

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