Theme single pages
Permalink
Howdy,
I have a single page that I'm looking to override via my theme directory. Doing so works fine for pages at the root of my site, but what should my directory stucture/file name look like if I want to do say "www.somesite.com/a_sub/page/my_single_page"?
I tried having a directory structure in my theme following that url (themes/my_theme/a_sub/page/my_single_page.php) and also tried having a single_pages directory in my theme (themes/my_theme/single_pages/a_sub/page/my_single_page.php) but neither of those worked.
Is it possible to override a single page from a theme when it's not at the root of your site?
-Crow Landson
I have a single page that I'm looking to override via my theme directory. Doing so works fine for pages at the root of my site, but what should my directory stucture/file name look like if I want to do say "www.somesite.com/a_sub/page/my_single_page"?
I tried having a directory structure in my theme following that url (themes/my_theme/a_sub/page/my_single_page.php) and also tried having a single_pages directory in my theme (themes/my_theme/single_pages/a_sub/page/my_single_page.php) but neither of those worked.
Is it possible to override a single page from a theme when it's not at the root of your site?
-Crow Landson
you don't need a single_pages folder,
I've already tried it without any subdirectory structure/not doing a single_pages folder (e.g just doing "themes/my_theme/my_single_page.php") but that doesn't work as I need the url to be "/a_sub/page/my_single_page" not "/my_single_page".
Any idea on how to do that?
Any idea on how to do that?