Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1287585
    Kim g
    Participant

    Hello-

    I would like to have my whole site be full width using icon stack (posts and archives). BUT i want to make my pages right sidebar. When I choose the site setting to be full width and then change the layout for my home page to be content left sidebar right I get this error:

    Because of Icon’s unique layout, this template is unavailable in this Stack. Please switch to another Stack if you need to make use of this feature. Thanks!

    How can I create my pages only to be right sidebar?

    Thanks, Kim

    #1287724
    Joao
    Moderator

    HI There,

    In case of Icon you need to select on Appereane > Customizer > Layout and Design > content left sidebar right

    On the pages where you want full width you go Edit Page > Under the blue update button you will find Page Attributes > Page Templates > Select Blank No Container Header Footer.

    Hope it helps

    Joao

    #1288357
    Kim g
    Participant

    But then individual posts will take on the default template of content left, sidebar right which i do not want.

    I want posts full width, so i have to have the sitewide layout and design full width. On the pages is where I need content left, sidebar right.

    #1288494
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! Please keep in mind that the sidebar of Icon stack is positioned as fixed at the left or right side of the screen. The positioned of the sidebar can only be set in the customizer Layouts & Designs. Because of Icon’s unique layout, there may be times where you wish to show a sidebar on your blank templates. If that is the case, you need to activate your sidebar by editing the page and find the Icon Page Settings. For more information about this options, please check
    “Situational Page Meta Options” section on this page: https://community.theme.co/kb/meta-options-pages/

    Hope this helps.

    #1289070
    Kim g
    Participant

    That doesn’t work either.

    I chose full width for the website.

    Then on the home page where I want a sidebar:
    http://devv.newworldeconomics.com/

    I selected “Blank Template Sidebar (YES)” to activate the sidebar under the icon settings and chose blank template, no container, header footer and still no sidebar.

    What you have advised only works in the opposite manor.If I choose my sitewide setting to be sidebar right, content left then i can turn OFF the sidebar on pages I don’t want it on. I just don’t think you guys are listening- I need the OPPOSITE of what you are suggesting. I need a full width site so all posts are full width, I need to activate the sidebar on PAGES (home, Bio, etc).

    SO- how can I get the sidebar to show on pages on a full width site? I’ve created 5 websites with X and this is the first time I have run into the inability to change a page template within the Page Attriubutes. Normally I go to page attributes and just select content left sidebar right?

    Please advise

    #1289072
    Kim g
    Participant

    here are screenshots:
    Also with this setting i want to be sure sidebar is to the right, will this happen automatically?

    #1289285
    Rad
    Moderator

    Hi there,

    You can override it with this code, please add this to your child theme’s functions.php

    function x_get_content_layout() {
    
        $content_layout = x_get_option( 'x_layout_content' );
    
        if ( $content_layout != 'full-width' ) {
          if ( 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_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_home() ) {
            $opt    = x_get_option( 'x_blog_layout' );
            $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt;
          } 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';
          }
    
        return $layout;
    
      }

    Now, you can globally select the full-width, but selectively choose different layout through Page templates or Blog’s customizer setting.

    Hope this helps.

    #1289289
    Kim g
    Participant

    Thank you so much I look forward to trying this!

    #1289313
    Nico
    Moderator

    Let us know how it goes.

    Feel free to ask us again

    Thanks.

    #1291684
    Kim g
    Participant

    Hi again-

    So I did as you suggested, added the above to child theme and i turned the site to full width. Then changed the content left, sidebar right in the templates in dashboard and got this error still:

    Because of Icon’s unique layout, this template is unavailable in this Stack. Please switch to another Stack if you need to make use of this feature. Thanks!

    See here:
    http://devv.newworldeconomics.com/

    #1292237
    Lely
    Moderator

    Hello Kim,

    We’re sorry for the convenience this has caused you. By default this is not available in Icon stack. This specific stack sidebar is fixed. When we choose either Content Left, Sidebar Right or Sidebar Left, Content Right on the customizer, this will give you sidebar on post, and archive pages. Unlike other stacks, wherein we have to choose page template with Sidebar, using Icon, we just need to select one of Blank templates and then under Icon Page settings option > Click Yes. This special settings for icon is because of it’s unique structure for sidebar. Overriding the customizer settings for template (like the suggested previously)will not work for Icon stack because of it’s unique settings. This approach will work on other stacks but not icon because of structure issues. This can only be achieved with more customization that is outside the scope of our support. Again, we’re sorry for the inconvenience and thank you for understanding.

    #1292945
    Kim g
    Participant

    got it. thank you for the clear, in-depth description.

    #1293040
    Joao
    Moderator

    Let us know if you need further help

    Joao

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