WordPress.org

Support

Support » Themes and Templates » change get_sidebar() without editing page templates

change get_sidebar() without editing page templates

  • I’ve got one question, I’ve registered a new sidebar and created a file called sidebar-main.php. I’m currently working on a childtheme of twenty twelve. Is there a way I can change get_sidebar() to get_sidebar( ‘main’ ) without copying all the relevent files to my child theme and editing thing, something I can use in my functions.php file

    Many thanks

  • The topic ‘change get_sidebar() without editing page templates’ is closed to new replies.
Skip to toolbar