Community Forums › Forums › Archived Forums › Design Tips and Tricks › Disable sidebar on select posts in Outreach Pro?
- This topic has 19 replies, 3 voices, and was last updated 9 years ago by
styzer.
-
AuthorPosts
-
September 7, 2014 at 7:52 pm #123261
styzer
ParticipantHi all,
I'd like to disable the sidebar (it's on the right side) on certain pages. For example, I have embedded a PDF document, so it needs more elbow room. I tried Brad's code () but it didn't work. Unless I misunderstood and I have to edit TWO files? I only added the CSS code with the postid to the style.css.
I can see a layout selection on the pages admin, but not for the posts. Is this normal?
Thanks!
Andre
http://ortzion.org/prophecy_type/gods-unchangeable-calendar/September 7, 2014 at 8:29 pm #123266Anita
KeymasterYou can do that by selecting the Full Width Layout on the Page or Post itself. If you don't see layouts, then go up to Screen Options on a Page or Post, select Layouts and it will show up. No need for any special coding.
Love coffee, chocolate and my Bella!
September 7, 2014 at 8:53 pm #123272styzer
ParticipantThank you Anita,
Yes, that's what I thought, but there is no "layouts" options for the posts in the Outreach Pro theme. Here is what I have:
Revisions - Excerpt - Send Trackbacks - Custom Fields - Discussion - Comments - Slug - Author - Mega Main Options - Categories - Tags - Attributes - Featured Image
How would I add the "layout" option there?
Thanks!
September 7, 2014 at 9:10 pm #123276Anita
KeymasterYou should see this on both pages and posts. Did you design the site yourself? Sometimes developers will hide theme settings. If you still do not see the Layouts - go to your user profile. Scroll down and check to see if you have Layout settings there. You don't need to do anything there - just look to see if it's there. If you don't, then there may be some code in your Functions.php file that is hiding it.
Love coffee, chocolate and my Bella!
September 7, 2014 at 9:14 pm #123277styzer
ParticipantYes, I see it there.
Layout Settings
These settings apply to this author's archive pages.
Choose Layout
Default Layout set in Theme SettingsSeptember 7, 2014 at 9:38 pm #123282Anita
KeymasterBut you don't see it anywhere on your pages and posts - when you are in Edit mode? Scrolled all the way to the bottom? It's not there?
Love coffee, chocolate and my Bella!
September 7, 2014 at 9:40 pm #123283styzer
ParticipantIt's only there on the PAGES, but not on the POSTS in edit mode. That's what I find strange. I'm used to use this function, so why isn't it showing? M-y-s-t-e-r-y... 🙂
September 7, 2014 at 9:43 pm #123285Anita
KeymasterCan you add a screen shot of your full screen in here?
Love coffee, chocolate and my Bella!
September 7, 2014 at 10:09 pm #123287styzer
ParticipantOK, so here is the EDIT page.
September 8, 2014 at 5:39 am #123337Anita
KeymasterGo back to Brad's tutorials. You are using a Custom Post Type which requires an additional code. So go back to Brad's code, whatever that may be, and look for the instructions for adding that part.
Love coffee, chocolate and my Bella!
September 8, 2014 at 11:12 am #123410styzer
ParticipantHi Anita,
Thank you for the reply.
So are you saying I should be adding TWO codes, one php and one css?
Regards,
Andre
September 8, 2014 at 11:14 am #123413Anita
KeymasterI am not sure. I don't know what code you used by Brad to do what you've done. Go back to his tutorial and re-read his instructions.
Love coffee, chocolate and my Bella!
September 8, 2014 at 11:19 am #123419styzer
ParticipantThis is the code Brad shares:
http://wpsites.net/web-design/remove-sidebar-home-page-posts/I don't know how to interpret it, though.
September 8, 2014 at 11:31 am #123425Craig
MemberCan you try adding this line to your functions.php file styzer. You will need to replace 'your_custom_post_type' with the name given to your 'Prophecy' post type.
add_post_type_support( 'your_custom_post_type', 'genesis-layouts' );
September 8, 2014 at 11:45 am #123431styzer
ParticipantThanks Craig,
Here is where I added it:
// Register Custom Post Type function prophecy_post_type() { add_post_type_support( 'prophecy_post_type', 'genesis-layouts' ); $labels = array( 'name' => _x( 'Prophecy Types', 'Post Type General Name', 'prophecy' ), 'singular_name' => _x( 'Prophecy', 'Post Type Singular Name', 'prophecy' ), 'menu_name' => __( 'Prophecy', 'prophecy' ), 'parent_item_colon' => __( 'Parent Item:', 'prophecy' ), 'all_items' => __( 'All Items', 'prophecy' ), 'view_item' => __( 'View Item', 'prophecy' ), 'add_new_item' => __( 'Add New Item', 'prophecy' ), 'add_new' => __( 'Add New', 'prophecy' ), 'edit_item' => __( 'Edit Item', 'prophecy' ), 'update_item' => __( 'Update Item', 'prophecy' ), 'search_items' => __( 'Search Item', 'prophecy' ), 'not_found' => __( 'Not found', 'prophecy' ), 'not_found_in_trash' => __( 'Not found in Trash', 'prophecy' ), ); $args = array( 'label' => __( 'prophecy_type', 'prophecy' ), 'description' => __( 'Prophecy Type Description', 'prophecy' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => '', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'prophecy_type', $args ); } // Hook into the 'init' action add_action( 'init', 'prophecy_post_type', 0 );
I also have this in my style.css:
.postid-6113 #sidebar { display: none; }
But when I go to my EDIT page for this post, I still don't see any layout options. What am I missing?
Regards,
Andre
September 8, 2014 at 11:48 am #123432Craig
MemberHi, could you try moving it out of the prophecy_post_type() function, and place it just after your add_action, so it looks like:
// Register Custom Post Type function prophecy_post_type() { $labels = array( 'name' => _x( 'Prophecy Types', 'Post Type General Name', 'prophecy' ), 'singular_name' => _x( 'Prophecy', 'Post Type Singular Name', 'prophecy' ), 'menu_name' => __( 'Prophecy', 'prophecy' ), 'parent_item_colon' => __( 'Parent Item:', 'prophecy' ), 'all_items' => __( 'All Items', 'prophecy' ), 'view_item' => __( 'View Item', 'prophecy' ), 'add_new_item' => __( 'Add New Item', 'prophecy' ), 'add_new' => __( 'Add New', 'prophecy' ), 'edit_item' => __( 'Edit Item', 'prophecy' ), 'update_item' => __( 'Update Item', 'prophecy' ), 'search_items' => __( 'Search Item', 'prophecy' ), 'not_found' => __( 'Not found', 'prophecy' ), 'not_found_in_trash' => __( 'Not found in Trash', 'prophecy' ), ); $args = array( 'label' => __( 'prophecy_type', 'prophecy' ), 'description' => __( 'Prophecy Type Description', 'prophecy' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => '', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'prophecy_type', $args ); } // Hook into the 'init' action add_action( 'init', 'prophecy_post_type', 0 ); add_post_type_support( 'prophecy_type', 'genesis-layouts' );
September 8, 2014 at 11:55 am #123435styzer
ParticipantSeptember 8, 2014 at 12:00 pm #123437Craig
MemberYes, likewise there is a similar addition required if you want to include the Genesis SEO settings. For reference, it is
add_post_type_support( 'your_custom_post_type', 'genesis-seo' );
September 8, 2014 at 12:03 pm #123438styzer
ParticipantThanks Craig, I'll make sure to add this too.
Regards,
Andre
September 8, 2014 at 12:04 pm #123439styzer
ParticipantThis reply has been marked as private. -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.