Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #169101

    I’ve been using your child theme, and trying to have sidebars on by default, but for a specific post type of “download” I want the sidebar gone and the page to be full width.

    I can edit the sidebar.php file and put in a conditional not to show on the “download” post type, but that doesn’t make the content full width.

    #169434

    Hello 416bc!

    Can you give us a link to a sample page with the post type “download”?

    Cheers!
    Ismael

    #169629

    http://thepluginfactory.co/warehouse/gard-pro/

    I’ve made posts have no sidebars so that this page looks nice. I can switch posts back to having sidebars if you need.

    #170104

    Hey!

    The file you are using for the template should have come from the page.php. If you look at line 17 this is where the page gets its grid element. So you can just manually change the page to use the twelve column grid by changing this line to the word twelve instead:
    <?php avia_layout_class( 'content' ); ?>

    Then further down remove the get_sidebar and avia_config above it:

    
    				<?php
    
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    
    				?>
    

    Cheers!
    Devin

    #170152

    This is line 17 of my page.php file located in my child theme folder <div class='devin template-page content twelve units'>

    That didn’t do anything. You can check my page source for http://thepluginfactory.co/warehouse/gard-pro/ and search for the word “devin” and you won’t find it. The page.php isn’t loading, I’ve even changed other code around, and that page didn’t use it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Sidebar option for custom post type?’ is closed to new replies.