Tagged: x
-
AuthorPosts
-
September 16, 2016 at 9:40 am #1178250
boeraParticipantHi,
I am using WP Job Manager, and would like to add a sidebar to the individual job pages. These are essentially blog posts, and I’ve seen mentioned elsewhere in the forum that the we can’t get the blog sidebar to show up on individual posts unless we go into the Appearance->Sidebars and in “All Pages and Posts” check each individual blog post. I don’t have a problem with this on blog posts, as we don’t post that often, however the job pages don’t show up on this list, and so this method doesn’t work. How can I automatically add a sidebar to the job pages (and the blog posts while I’m at it)?
Thanks!
September 16, 2016 at 5:45 pm #1178720
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
September 19, 2016 at 7:41 am #1181293
boeraParticipantHi,
Thanks for responding. Our job board is here, links to individual jobs at the bottom: http://framexec.com/welcome/current-vacancies/
I would also love to remove the ‘blog’ header on each individual job post if possible?
Thanks.September 19, 2016 at 8:42 am #1181414
Paul RModeratorHi,
You can add this in your child theme’s functions.php file.
function x_get_content_layout() { $content_layout = x_get_option( 'x_layout_content' ); if ( $content_layout != 'full-width' ) { if ( is_home() ) { $opt = x_get_option( 'x_blog_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_singular( 'post' ) ) { $meta = get_post_meta( get_the_ID(), '_x_post_layout', true ); $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout; } elseif ( x_is_portfolio_item() ) { $layout = 'full-width'; } elseif ( x_is_portfolio() ) { $meta = get_post_meta( get_the_ID(), '_x_portfolio_layout', true ); $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta; } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) { $layout = 'content-sidebar'; } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) { $layout = 'sidebar-content'; } elseif ( is_page_template( 'template-layout-full-width.php' ) ) { $layout = 'full-width'; } elseif ( is_archive() ) { if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) { $opt = x_get_option( 'x_woocommerce_shop_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } else { $opt = x_get_option( 'x_archive_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } } elseif ( x_is_product() ) { $layout = 'full-width'; } elseif ( x_is_bbpress() ) { $opt = x_get_option( 'x_bbpress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( x_is_buddypress() ) { $opt = x_get_option( 'x_buddypress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_404() ) { $layout = 'full-width'; } else { $layout = $content_layout; } } else { $layout = $content_layout; } if ( is_singular('job_listing' )) { $layout = 'content-sidebar'; } return $layout; }Then add this in Custom > Edit Global CSS in the customizer
.single-job_listing .x-header-landmark { display:none; }Hope that helps.
September 20, 2016 at 7:53 am #1183077
boeraParticipantHi,
Thanks for this, it removed the blog header beautifully. However, the side bar still isn’t showing up.September 20, 2016 at 8:05 am #1183093
Paul RModeratorHi,
I can see the sidebar but it’s empty.
http://screencast.com/t/vXsVMuvQ
You can add contents to it under Appearance > Widgets > Main Sidebar.
Thanks
September 22, 2016 at 8:56 am #1186411
boeraParticipantAh, I see my mistake – silly me:) Thank you for your help.
September 22, 2016 at 10:05 am #1186497
RahulModeratorAnytime!
If you have anything further to ask, let us know. We’d be happy to assist you with anything.
Thank you.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1178250 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
