Hi, I am using a custom theme on my blog. I wanted to "widgetize" the theme, but I'm finding my widgetized version does not find any pages. For example on the normal blog, the default page shown is generated from home.php in my theme. In the new theme, the default page is not found, it goes to the fallback index.php.
I have not changed any WP settings, just the theme:
- I added a custom functions.php to my theme directory. It only contains the definition of the new sidebars. I know this is being loaded, as WP admin prompts me to define the new sidebars, and I can see one of the custom (widegetized) sidebars on the index.php page displayed.
- I set each of the sidebar-***.php files to use the <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Single Sidebar') ) : ?> checks. Again I suspect this is working as the widgetized sidebar is being displayed.
- Each of the theme php files (e.g. page.php and index.php) have the appropriate <?php get_sidebar( 'home' ); ?>.
I can't see any php errors generated, nor is there anything in the http error log. The problem seems to be in the routing between entering a url of davidedwardsphotos.com/test_blog and the correct home page (or any specific page entered) not being found.
Any advice on how to debug this?