WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] adding sidebar to twentytwelve theme (3 posts)

  1. pietergoosen
    Member
    Posted 1 year ago #

    Hi there

    what i would like to achive is, i'm deregistering the default sidebar, which is id=sidebar-1. in it's place i've created a new sidebar id=sidebar-11. the reason for that is, i want a static sidebar with custom content that must be in afrikaans.so for that i created a template sidebar-main.php. now i need to copy all the relative files from the parent twentytwelve theme to change get_sidebar() to get_sidebar( 'main' ). what i need to know, are there a way of doing it without going through all that, maybe some code in the functions file

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    Rename the file name of your custom sidebar template to be sidebar.php, and that's it. There is no need to do anything else.

  3. pietergoosen
    Member
    Posted 1 year ago #

    I actually forget about that. Thanks for that help.

Topic Closed

This topic has been closed to new replies.

About this Topic