How duplicate widget area in news theme

Community Forums Forums Design Tips and Tricks How duplicate widget area in news theme

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  tunnelmilano 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18916

    tunnelmilano
    Participant
    Post count: 6

    Hi, How I can duplicate the “Home middle left” and “Home middle right” widget area? Simply “copy and paste” the codes in functions.php file?

     

    Thanks

    Antonio

    #18920

    braddalton
    Participant
    Post count: 10341

    That won’t work because they need unique i.d’s

    You can copy them in the functions.php, home.php file and the style.css files but change the i.d’s in all files so they are unique including the css selectors.

    Example:
    [php]
    ‘id’ => ‘home-middle-left-2′,
    ‘id’ => ‘home-middle-right-2′,
    [/php]

    [css]
    .home-middle-left-2 {
    float: left;
    width: 290px;
    }

    .home-middle-right-2 {
    float: right;
    width: 285px;
    }
    [/css]

    Tested locally and works.

    You could simply add more than one widget to each of the default home widgets.


    #18940

    tunnelmilano
    Participant
    Post count: 6

    Thanks, work!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.