Community Forums › Forums › Archived Forums › Design Tips and Tricks › Layout settings not working on blog page:
Tagged: blog page layout, default layout, Layout settings
- This topic has 6 replies, 2 voices, and was last updated 12 years, 8 months ago by
jgk.
-
AuthorPosts
-
June 23, 2013 at 5:33 pm #47385
jgk
MemberHi!
I'm using a customized version of the metro theme.
I'm trying to use a full width content for all the pages in my site, except for the blog page and individual blog posts.
Under theme settings I've set the default layout to full width content. On the blog page I've set the layout to content-sidebar.
When I view the blog page it is still showing full width content. The individual blog posts are displaying content/sidebar correctly.
I've cleared the cache and viewed the page in incognito mode, but can't figure this one out. Thanks for any help.
Jay
http://jgtest.wpengine.comJune 23, 2013 at 5:52 pm #47388Brad Dalton
ParticipantJune 23, 2013 at 7:15 pm #47395Brad Dalton
ParticipantSet the default layout as full width in the Genesis > Theme Settings > Default Layout.
Then copy the code from the view raw link and add the code to the end of your child themes functions.php file using a text editor.
June 23, 2013 at 9:45 pm #47408jgk
MemberThank you Brad!
I followed your instructions. When I click preview changes from the blog page it displays content-sidebar, but when I view the live page it seems to still display full width content. I've cleared my cache and the wpengine cache, this doesn't seem to be making a difference.
Anything else to try? Also the breadcrumbs on the preview says home / home if that offers any clues. Thanks!
Jay
June 24, 2013 at 12:04 am #47417Brad Dalton
ParticipantYou could try changing the conditional for the blog page template to the i.d for the blog page which you can grab from the source code. I know wpengine have caching that can take time to flush which makes it hard for CSS changes as well.
if (is_single() || is_page_template( 'page_blog.php' ) ) {Change to this and replace 007 with the i.d for your blog page.
if (is_single() || is_page( '007' ) ) {The conditional tag for the blog page seems to work sometimes and not at other times.
June 24, 2013 at 10:31 am #47473jgk
MemberThanks Brad,
For some reason it's still not working. I've kicked this over to studiopress tech support incase something is going wrong under the hood. Since this doesn't seem to be an easy fix.
Thank you. Cheers,
Jay
June 24, 2013 at 10:40 am #47476jgk
MemberThe fix was:
I had selected a static blog page under Settings > Reading instead of using the blog page template included with Genesis.
Under Settings > Reading, make sure a static page is not selected for the blog, then create a page and assign the blog page template to it from the template dropdown on the right hand side of the editor.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.