Community Forums › Forums › Archived Forums › General Discussion › Add Landing Page to Existing Website
Tagged: landing page
- This topic has 6 replies, 3 voices, and was last updated 8 years, 9 months ago by wizz6113.
-
AuthorPosts
-
August 16, 2015 at 10:45 am #162532millietanMember
Hello I am currently using Genesis 2.1.2. Any possibility for me to add in Landing Page into the existing, without having to redo the entire website? My website is http://www.myD19.com
Thanks alot 🙂
http://www.myD19.comAugust 16, 2015 at 10:55 am #162533Victor FontModeratorYou need to create a landing page template if your theme doesn't already have one. It's just like adding any other page. A landing page template simply removes the standard page structure as in the following example.
<?php /** * This file adds the Landing template to the Outreach Pro Theme. * * @author StudioPress * @package My Template Name * @subpackage Customizations */ /* Template Name: Landing */ //* Add custom body class to the head add_filter( 'body_class', 'my_template_add_body_class' ); function my_template_add_body_class( $classes ) { $classes[] = 'my_template-landing'; return $classes; } //* Force full width content layout add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); //* Remove site header elements remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header', 10 ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); //* Remove navigation remove_action( 'genesis_after_header', 'genesis_do_nav' ); remove_action( 'genesis_after_header', 'genesis_do_subnav' ); //* Remove breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); //* Remove sub-footer widgets remove_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); //* 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();
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?August 17, 2015 at 8:34 am #162611millietanMemberThank you Victor. So from this landing page, I just have link back to the original/ current front page? Without having to screw up the current structure? 🙂 Thanks again.
August 18, 2015 at 4:17 pm #162788Victor FontModeratorYour wouldn't put the link in the template, you would add it to your page content.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 3, 2016 at 5:34 am #180520wizz6113MemberHI Victor,
I just came across this as need to create a landing page, full width to use both as an inner site page to use as my static homepage instead of posts page.
What do I create / replicate your php code above in - notepad ++ and then save as .php and upload via ftp? I am assuming I could just copy a full-with php file from another theme like parallax pro though.
Thanks!
March 4, 2016 at 5:13 am #180631Victor FontModeratorYou copy that code into a text editor and save it as page-landing.php. FTP into your site and save the file in your child theme directory.
Using this as an inner page may not produce the results you desire. BY default, landing pages do not have headers or menus. When used as an inner page, if anyone visits the page, make sure they have a way to return to your site.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 4, 2016 at 8:19 am #180645wizz6113MemberThanks Victor for this. I guess what I wish for is a full width page in my theme - Simply Pro - so I'll need to replicate that php file and force full width.
Thanks again for your help.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.