Full width template for specific post category
-
Ok, so I have experimented, checked the forum, experimented some more, etc. Now I have to ask the question…
So I am trying to use a full width page template (which I have) for a specific post category.
Take a look here –
https://www.nhcchurch.org/?p=254
https://www.nhcchurch.org/?cat=15I removed the sidebar from the single-post category but the page content width needs to be widened as well… only when looking at the category and when looking at a single post within that category.
I used this to remove the sidebar (sidebar.php) –
<?php if(is_single(is_category (’15’))){}else{ ?>
<?php } ?>And I was hoping this would work to widen the post area for the single post (added to page.php), but I was wrong.
<?php if (is_single(is_category(’15’)) ?>
function get_template(page_fullwidth.php)
else {I am way too new at this. I would eventually like to make it so that it is a wide area with no sidebar when you look at the category, and when you look at a single post within that category. Any suggestions?
Oh, and what is the correct way to add something like “and”? After I removed the sidebar from the single post, I couldn’t remove it from the category. My brain = remove sidebar from single() and category()
Thanks to everyone who got through all that!!
- The topic ‘Full width template for specific post category’ is closed to new replies.