WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve main sidebar (5 posts)

  1. T B
    Member
    Posted 1 year ago #

    How is it possible turn of this function of Main widget:
    "Appears on posts and pages except the optional Front Page template, which has its own widgets"

    I have only two other widgets but they are on the bottom I need one to the right side as well on the front page.

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    It's doable but rather not.

    Twenty Twelve use id="secondary" for both sidebar and sidebar-front, this means if we add the call to sidebar on front-page.php there will be duplicate id on one page.

    You can, however, make another copy of sidebar.php and rename it to something else like sidebar-main.php and inside it change id="secondary" to id="sidebar-main". Then in your child theme, make a copy of front-page.php with a call to this sidebar we've just made above the get_sidebar('front'). Also, there will be quit a bit of CSS adjustments to do.

  3. T B
    Member
    Posted 1 year ago #

    front-page.php done
    sidebar-main.php done
    "secondary" to "sidebar-main" done
    get_sidebar('front') done

    But I am not very good with css.. can you suggest what else I have to do?
    This is the http://officialpage.co/ and I will publish this modified theme for others...

  4. T B
    Member
    Posted 1 year ago #

    there is the original css http://pastebin.com/6vYKe7Tv

  5. paulwpxp
    Font hero
    Posted 1 year ago #

    You need to make a child theme first, the site you link to uses 2012 straight, it should be a child theme using 2012 as a parent theme. Any modification will be done in child theme only, leaving parent theme as is.

    This is basic child theming.
    http://codex.wordpress.org/Child_Themes

    This is a blank 2012's child theme available from quirm.net
    http://quirm.net/themes/twenty-twelve-child

    The site you link to ( at the time of writing ) doesn't have any sidebar in it, just so you know widget is under Appearance > Widgets

Topic Closed

This topic has been closed to new replies.

About this Topic