• Resolved bluedogranch

    (@bluedogranch)


    Hi,

    How can I call a custom sidebar in a page template? I copied page.php to my child theme and renamed it in the file header so I can select it as a page template in the block editor.

    /**
    Template Name: Directory Page
    */

    I used register_sidebar in functions.php to register program_directory_sidebar.

    In the page.php page template I see generate_construct_sidebars(); rather than a call to a sidebar.

    Using get_sidebar('program_directory_sidebar'); in place of generate_construct_sidebars(); doesn’t work.

    How do I call the program_directory_sidebar in page.php?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I call a custom sidebar?’ is closed to new replies.