Community Forums › Forums › Archived Forums › General Discussion › How do remove Site container
Tagged: site container, site width
- This topic has 10 replies, 2 voices, and was last updated 9 years, 1 month ago by Brad Dalton.
-
AuthorPosts
-
October 25, 2015 at 10:46 pm #169001cashflowcoMember
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
http://140addisonroadmanly.com/test-page/
genesis();October 25, 2015 at 10:52 pm #169002Brad DaltonParticipant1. 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 }
October 25, 2015 at 11:03 pm #169003cashflowcoMemberThanks 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 #169004Brad DaltonParticipantThis is CSS and belongs in your style.css file.
.site-inner { clear: both; margin-top: 100px; margin-top: 12rem; width: 1200px; }
October 26, 2015 at 12:09 am #169005cashflowcoMemberThank 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 #169006Brad DaltonParticipantGrab 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.
October 26, 2015 at 3:44 am #169009cashflowcoMemberThis 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 #169017Brad DaltonParticipantOctober 26, 2015 at 5:03 am #169021cashflowcoMemberIt 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 #169572cashflowcoMemberThnks for your help I'm making progress
So not right, but working on it
October 30, 2015 at 12:41 am #169581Brad DaltonParticipantI 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.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.