• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Creating a Simple Custom Page Template

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Creating a Simple Custom Page Template

This topic is: resolved

Tagged: Custom Post Page Template

  • This topic has 12 replies, 2 voices, and was last updated 10 years, 2 months ago by Brad Dalton.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • May 6, 2015 at 7:22 am #150362
    jbendiner
    Member

    I am trying to create a CPT for my portfolio display.
    All I need is a full width layout for now.
    I added a new file called page_portfolio.php with the following basic code:

    <?php
    /**
    * This file adds the Portfolio template to the Parallax Pro Theme.
    */

    /*
    Template Name: Portfolio
    */

    // Force full width page layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    //* Run the Genesis loop
    genesis();

    I then created a page and selected the Portfolio template I create above.
    When i display it it does not show it full width:
    http://logisticsnetworkdesign.com/portfolio-test/

    What did I miss here?
    Thanks
    Jerry

    http://logisticsnetworkdesign.com/portfolio-test/
    May 6, 2015 at 1:11 pm #150413
    Brad Dalton
    Participant

    Use the full width Layout Settings on every Edit Page screen.

    Or

    Add this to the file:

    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    

    Tutorials for StudioPress Themes.

    May 6, 2015 at 1:34 pm #150442
    jbendiner
    Member

    Hi Brad,
    If you check the php file I created, it does include the statement you suggest (in fact I followed an article you wrote on this subject..). My file is called template_portfolio.php and the template is created, but doesn't display full width. The php code is as follows:

    <?php
    /**
    * This file adds the Portfolio template to the Parallax Pro Theme.
    */

    /*
    Template Name: Portfolio
    */

    // Force full width page layout
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_full_width_content’ );

    //* Run the Genesis loop
    genesis();

    Thanks
    Jerry

    May 6, 2015 at 2:44 pm #150464
    Brad Dalton
    Participant

    And the Layout Settings on the Edit Page?


    Tutorials for StudioPress Themes.

    May 6, 2015 at 2:48 pm #150466
    jbendiner
    Member

    It is set to header+ no sidebars...

    May 6, 2015 at 2:58 pm #150467
    Brad Dalton
    Participant

    layout


    Tutorials for StudioPress Themes.

    May 6, 2015 at 3:09 pm #150469
    jbendiner
    Member

    if i select that one it displays the default layout: content+widget
    I want no widgets - full width, that is why I selected the fourth layout in your picture
    Not working.... as you can see it displays the page without widgets, but not full width

    May 6, 2015 at 3:18 pm #150483
    jbendiner
    Member

    Sorry, I mean I selected the sixth layout in your picture (header+no sidebar)

    May 6, 2015 at 3:23 pm #150495
    Brad Dalton
    Participant

    Very strange as that normally works.


    Tutorials for StudioPress Themes.

    May 6, 2015 at 4:21 pm #150497
    jbendiner
    Member

    I may have found the problem Brad.
    I think (need to confirm it) that in the Parallax theme the width you see in my example is the full width.
    It does not cover the entire width as we would expect.

    I say that because I checked the landing page in the demo:
    http://my.studiopress.com/themes/parallax/#demo-full

    And then I checked the corresponding php for the landing page in the theme:
    It includes the full width statement:

    //* Force full width content layout
    add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );

    From this I deduct that at least in this theme the full width is narrower.
    If so, is there a place in the THEME files where the full width size can be adjusted?

    Thank you for your feedback.
    Jerry

    May 6, 2015 at 4:37 pm #150499
    Brad Dalton
    Participant

    You can change the width in the style sheet under the Structure and Layout section.


    Tutorials for StudioPress Themes.

    May 6, 2015 at 8:34 pm #150515
    jbendiner
    Member

    Solved the problem!
    It was the padding settings for the full-width layout in style.css - rows 1289-1291

    May 6, 2015 at 9:29 pm #150521
    Brad Dalton
    Participant

    Good stuff! Thanks for sharing your solution.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Creating a Simple Custom Page Template’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble