• Resolved brianmadden

    (@brianmadden)


    Does anyone know how I can set my default sidebars for custom pages? I have made a child theme which works fine, and I have also made a custom page type (based on page.php.) Now my custom page type shows up in all the drop-down lists when I edit my pages, and I have applied that custom page type to my pages. That all works fine.

    But now I want to configure the sidebars for those pages, but in the theme options page I do not see my custom page. (wp-admin | Appearance | Theme Options)

    All I see are the default pages, like Home, Single, Archive, etc.

    Any ideas?

    Basically I just want to automatically have the sidebars I specify be used with this custom page instead of having to manually set each page one-by-one.

    Thanks!
    Brian

Viewing 1 replies (of 1 total)
  • Thread Starter brianmadden

    (@brianmadden)

    Well, I kind of answered my own question.

    I still can’t figure out how to get my custom page to show up in the theme options admin, but I realized I can edit the source of my custom page to force it to use the sidebar I want. In my case I found the line:

    <?php get_sidebar(); ?>

    and changed it to:

    <?php get_sidebar('sidebar-framework-toc'); ?>

    (sidebar-framework-toc is the Sidebar ID as set in the Theme Options | Sidebar)

    So I guess I’m good for now!

Viewing 1 replies (of 1 total)

The topic ‘Setting sidebars for custom pages?’ is closed to new replies.