Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4822
    shurican
    Member

    Hi there,

    I created a new page template and I want this to be full width as well.

    Where can I add a new page template as full width type such as page-fullwidth.php or page-onecolumn.php.

    Thanks

    Max

    #4855
    Sakin
    Keymaster

    @shurican: For that you need to build child theme and then add it in the child theme folder.

    #4875
    shurican
    Member

    Thanks for your reply but I don’t get it. I just tried to understand child themes but I don’t think this is what I need. I have 5 pages which all should have full width just like page-fullwidth.php.

    I created a page template .php for each page like page-210.php and page-32.php.

    Now I want these pages to have the CSS and structure just like page-fullwidth.php.

    How do I do this?

    #4920
    Sakin
    Keymaster

    @shurican: To know about details and further assist you. I need to see your site URL. Please post in your site URL.

    #4928
    shurican
    Member

    Too bad, I can’t as the site is still in development. Do you have any other hint? I just want to add the page templates above to be rendered as full size. Where do you define the CSS classes for each template?

    #4929
    Sakin
    Keymaster

    @shurican: The best option for you in to upgrade to Catch Box Pro theme where there is “No Sidebar, Full Width” content layout which you can use it for your pages or posts.

    #5098
    shurican
    Member

    Thanks for your feedback but I think the key is not another theme. You have the following function in functions.php:

     

    function catchbox_body_classes( $classes )

    Here you set fullsize as CSS class. Example: 

    elseif ( is_page_template( ‘page-disable-sidebar.php’ ) || is_attachment() ) {

    $classes[] = ‘singular’;

    }

    elseif ( is_page_template( ‘page-fullwidth.php’ ) || is_attachment() ) {

    $classes[] = ‘fullwidth’;

    }

    Here I would like to add another template but this doesn’t work and I don’t understand why:

    elseif ( is_page_template( ‘page-finder.php’ ) || is_attachment() ) {

    $classes[] = ‘fullwidth’;

    }

     

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Additional full width templates’ is closed to new replies.