Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1178250
    boera
    Participant

    Hi,

    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!

    #1178720
    Darshana
    Moderator

    Hi 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.

    #1181293
    boera
    Participant

    Hi,
    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.

    #1181414
    Paul R
    Moderator

    Hi,

    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.

    #1183077
    boera
    Participant

    Hi,
    Thanks for this, it removed the blog header beautifully. However, the side bar still isn’t showing up.

    #1183093
    Paul R
    Moderator

    Hi,

    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

    #1186411
    boera
    Participant

    Ah, I see my mistake – silly me:) Thank you for your help.

    #1186497
    Rahul
    Moderator

    Anytime!

    If you have anything further to ask, let us know. We’d be happy to assist you with anything.

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-1178250 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>