• 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

How do remove Site container

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 › General Discussion › How do remove Site container

This topic is: not resolved

Tagged: site container, site width

  • This topic has 10 replies, 2 voices, and was last updated 10 years, 9 months ago by Brad Dalton.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • October 25, 2015 at 10:46 pm #169001
    cashflowco
    Member

    I want to add a custom landing page to my site using a iframe <iframe src='https://cashflowco.clickfunnels.com/optin7515451' width='100%' height='1070' frameborder='0'></iframe> i want this to be full width with no white space or blue sky border

    http://140addisonroadmanly.com/test-page/ I do not want to have the out blue sky and building or the white space how do I remove this?

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

    /*
    Template Name: Landing
    */

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

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

    }

    //* Force full width content layout
    .site-inner {
    clear: both;
    margin-top: 100px;
    margin-top: 12rem;
    width: 1200px;
    }

    //* Remove breadcrumbs
    remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );

    //* Remove site footer widgets
    remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );

    //* Remove site footer elements
    remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 );
    remove_action( 'genesis_footer', 'genesis_do_footer' );
    remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 );

    //* Run the Genesis loop
    genesis();

    http://140addisonroadmanly.com/test-page/
    October 25, 2015 at 10:52 pm #169002
    Brad Dalton
    Participant

    1. You cannot add CSS to a PHP file like that. Remove it and put it in your style.css file.

    2. You can remove the loop and add load your custom code using the genesis_loop hook.

    	
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'execute_custom_code' );
    function execute_custom_code() {
    //your code
    }
    

    Tutorials for StudioPress Themes.

    October 25, 2015 at 11:03 pm #169003
    cashflowco
    Member

    Thanks Brad

    I not really sure what you mean

    Should i be removing this //* Force full width content layout
    .site-inner {
    clear: both;
    margin-top: 100px;
    margin-top: 12rem;
    width: 1200px;
    }

    or do remove

    //* Run the Genesis loop
    genesis();

    Do i add this to bottom
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'execute_custom_code' );
    function execute_custom_code() {
    //your code
    }

    October 25, 2015 at 11:26 pm #169004
    Brad Dalton
    Participant

    @cashflowco

    This is CSS and belongs in your style.css file.

    .site-inner {
    clear: both;
    margin-top: 100px;
    margin-top: 12rem;
    width: 1200px;
    }
    

    Tutorials for StudioPress Themes.

    October 26, 2015 at 12:09 am #169005
    cashflowco
    Member

    Thank you

    I must be as dumb as a box of hammers

    I have removed this .site-inner {
    clear: both;
    margin-top: 100px;
    margin-top: 12rem;
    width: 1200px;
    }

    If i add this to the css Will this affect the whole site, as I only want to change this page

    I'm still not clear what i have to do this
    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    add_action( ‘genesis_loop’, ‘execute_custom_code’ );
    function execute_custom_code() {
    //your code
    }

    Cheers

    Rowan

    October 26, 2015 at 12:26 am #169006
    Brad Dalton
    Participant

    Grab the body class from the pages source code and add it before the .site-inner class.

    The PHP code goes in your functions file or page template however you will need to modify it to work with your 3rd party code. I assume this comes from a plugin or landing page service.


    Tutorials for StudioPress Themes.

    October 26, 2015 at 3:44 am #169009
    cashflowco
    Member

    This is the code for which has been added to This page <iframe src=’https://cashflowco.clickfunnels.com/optin7515451′ width=’100%’ height=’1070′ frameborder=’0′></iframe>

    http://140addisonroadmanly.com/test-page/ all i want to do is get rid the out frame & the outside this blue sky

    will what your suggesting solve this issue

    Sorry slightly confused

    October 26, 2015 at 4:56 am #169017
    Brad Dalton
    Participant

    This page doesn't load http://140addisonroadmanly.com/test-page/


    Tutorials for StudioPress Themes.

    October 26, 2015 at 5:03 am #169021
    cashflowco
    Member

    It loads for me I just tried it http://140addisonroadmanly.com/test-page/

    This screenshoT i what i'm trying to acchieve http://www.screencast.com/t/0HUhGAR6kWPB

    if that helps

    October 29, 2015 at 9:04 pm #169572
    cashflowco
    Member

    Thnks for your help I'm making progress

    So not right, but working on it

    October 30, 2015 at 12:41 am #169581
    Brad Dalton
    Participant

    I found it hard to access your site and understand exactly what you wanted done. Sorry i can't help on this occassion however someone else may jump in and try for you.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘General Discussion’ 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

© 2026 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