Wednesday, January 30, 2013

How to Create a Landing Page with the Genesis Framework

First you need to do is create a page_landing.php file, which you’ll place inside your child theme’s folder. Start that off by placing this code at the top of it:
<?php
/*
Template Name: Landing
*/

his will generate the Landing page template, and make it available in the Page Attributes > Template box on the ‘edit page’ screen in your dashboard.
Next, you’ll want to place a function that will create a custom body class for the pages that use the Landing Page template. Place this code next in your file:
// Add custom body class to the head
add_filter( 'body_class', 'add_body_class' );
function add_body_class( $classes ) {
   $classes[] = 'custom-landing';
   return $classes;
}
This will place the custom-landing class into the source code 
CONTINUE.....


No comments:

Post a Comment