• 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

Agentpress Pro full width 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 › Agentpress Pro full width template

This topic is: not resolved
  • This topic has 7 replies, 2 voices, and was last updated 9 years, 10 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 23, 2015 at 1:49 pm #166486
    rtibbs4
    Participant

    Hello,

    My apologies if this is a duplicate post. I thought I had posted but can't seem to find it anywhere so here goes again.

    I need to create a full width template for agentpresss pro. I realize I can choose full width on pages and posts but my IDX allows me to choose a template to show results and the theme has Default (with sidebar) Blog, Landing page and Archive. No full width which I would like. Previously I had modified the landing page but I now need that for something else.

    Can anyone point me in the right direction on the easiest way to do it? Could I copy the current full width page and save it as a template?

    Any help appreciated

    -Randy


    Thanks, Randy

    http://andover-northandover.com
    September 23, 2015 at 2:06 pm #166488
    Brad Dalton
    Participant

    Copy, rename and modify the page_landing.php as its full width.


    Tutorials for StudioPress Themes.

    September 23, 2015 at 2:10 pm #166489
    rtibbs4
    Participant

    Hi Brad,

    page_landing doesn't have a header or footer. Any suggestions?

    Thanks again.


    Thanks, Randy

    September 23, 2015 at 2:12 pm #166490
    rtibbs4
    Participant

    OK, I think I have that. Remove the "remove header, footer etc...

    Where do I save my new template?


    Thanks, Randy

    September 23, 2015 at 2:36 pm #166493
    rtibbs4
    Participant

    So this is what I have for the new template page. It looks a bit thin to me. Will this create a full width page with the header, footer and curren theme colors etc?? Where do i need to put this> Thanks again.

    <?php
    /**
    * This file adds the IDX Landing template to the AgentPress Pro Theme.
    *
    * @author StudioPress
    * @package AgentPress Pro
    * @subpackage Customizations
    */

    /*
    Template Name: IDX Landing
    */

    //* Add custom body class to the head
    add_filter( 'body_class', 'agentpress_add_body_class' );
    function agentpress_add_body_class( $classes ) {

    $classes[] = 'agentpress-pro-landing';
    return $classes;

    }

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

    //* Run the Genesis loop
    genesis();


    Thanks, Randy

    September 24, 2015 at 12:23 am #166516
    Brad Dalton
    Participant

    That's it.


    Tutorials for StudioPress Themes.

    September 24, 2015 at 6:57 am #166550
    rtibbs4
    Participant

    Thanks, where do I put this?


    Thanks, Randy

    September 24, 2015 at 7:26 am #166552
    Brad Dalton
    Participant

    Randy

    If you're going to be developing your site yourself and coding templates i suggest you setup a test site with a copy of your theme and play around with it as this is a great why to start learning.

    Templates go in the theme root directory, the same location as your existing templates so use them as a guide.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and 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