How To Deal With Theme With No Widget Area...

Discussion in 'WordPress' started by dscurlock, Jan 31, 2014.

  1. #1
    I have a theme that I would like to move stuff around (blocks)
    I installed the widget that I wanted to place on the front page
    to replace a block that I do not intend to use for anything, then
    I noticed, the theme does not have any type of widgets...

    So how do I do this?

    1: I need to remove a block from home page.
    2: and replace that block with the widget that i have.

    Thanks
     
    dscurlock, Jan 31, 2014 IP
  2. Hefaistos

    Hefaistos Active Member

    Messages:
    194
    Likes Received:
    14
    Best Answers:
    9
    Trophy Points:
    63
    Digital Goods:
    1
    #2
    Register a sidebar for each widget area that you want to create, than create a new fille called sidebar-{the-id-of-the-sidebar} in the root of your theme which will contain the sidebar code:
    
    if (  is_active_sidebar( 'sidebar-id' ) ) {
        // Sidebar code
        dynamic_sidebar('sidebar-id);
    }
    
    PHP:
    and just call it in the file that displays your homepage, (home.php, front_page.php or a custom template) like :
    get_sidebar('sidebar-id');
    PHP:
     
    Hefaistos, Feb 1, 2014 IP
  3. Pantho Bihosh

    Pantho Bihosh Member

    Messages:
    22
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    33
    #3
    Hi,
    its really a simple task. Just you need to page. One is for Home/front page & another one is for other page. Now setup both pages as your requirements. After then, you need to select template you will create the page from Dashboard. I hope now you are clear. If you have anymore query please let me know. Thanks.
     
    Pantho Bihosh, Feb 2, 2014 IP