Jump to content


This topic is now archived and is closed to further replies.


Landing Page

Recommended Posts



I have a current website http://TrueBlueAuctions.com that I would like to create a new page that is entirely blank without any headder or footer as a landing page that I can have information and links to the other pages.  This would not be a home page for the website but named differently - http://www.trueblueauctions.com/your-home-sold-for-top-dollar/.  

My question is that is there a way for me to build this page by itself without any header or footer information that normally appears as part of a template for all the other pages?  I wanted to ask before doing because I don't want to mess up what I've done so far with the website.

Thank you for your thoughtful consideration.

All the best of Providence.


Share this post

Link to post
Share on other sites

Hello Aires

Sounds good!  However, when I tried to implement either method, I run into problems.  

I added the Pagelines Customize Plugin - http://docs.pagelines.com/customize/pagelines-customize-plugin

I tried adding the code below in the "functions.php" file on the server, saved and it disabled the entire website.  Is there something I'm missing or failing to do?

Thank you for your thoughtful consideration!

//Disable Fixed, Header, and Footer on all these Page IDs
add_filter( 'pl_setting-region_disable_fixed', 'customize_templates_by_page' );
add_filter( 'pl_setting-region_disable_header', 'customize_templates_by_page' );
add_filter( 'pl_setting-region_disable_footer', 'customize_templates_by_page' );
function customize_templates_by_page() {
//could choose to still show for Admins (e.g. copy content from footer to template)
//if( current_user_can('edit_theme_options') ) { return false; }
global $post;
$pageids = array(
if(is_page($pageids)) {
return true; // true is checkbox ticked

Share this post

Link to post
Share on other sites

You should be using a child theme and not the customize plugin. Also the code you have add to the post above, have you added that <?php tag at the top youself? 

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

Hello Danny

I'm not sure what you mean?  I have not added anything anywhere of which is my problem.  I'm not sure where to add any of this code.

I run a cPanel server hosting this website.  I've only shared what I tried and reported what did not work.

Share this post

Link to post
Share on other sites


You should by all means be using  a child theme if you would like to include this into your website.

With in your child theme folder you should have functions.php that is where you should add this function and not in the customize plugin.




Visit iheartpagelines.com for the latest tutorials on PageLines related products.


Share this post

Link to post
Share on other sites

Thank you for tolerating my rush to add this and not paying attention to detail about where to put the code.  I again ask for your patience since I did go to the theme (Voyant) and the functions.php file.  The file is as you see below:  I've tried adding the code as you posted (copy/paste) at the bottom and found that it disabled the Thumbnail Gallery I use (http://envato-help.dotonpaper.net/thumbnail-gallery-wordpress-plugin.html#faq) and other pages did not show up at all.  Do I need to add the specific page I want to disable the header and footer in your code?

$pageids = array(

Thank you again for your thoughtful consideration.

All the best of Providence,


Voyant theme functions.php file is as follows:


// Load Framework - don't delete this
require_once( dirname(__FILE__) . '/setup.php' );

 *    Tell DMS we are in a subfolder and fire up the flux capacitors!

if( ! defined( 'DMS_CORE' ) )
    define( 'DMS_CORE', false );

add_action( 'pagelines_hook_init', 'add_installer', 4 );
function add_installer(){
    require_once( 'installer.php' );

/** Deregister CSS Styles */
add_action( 'wp_print_styles', 'sgl_deregister_styles', 100 );
function sgl_deregister_styles() {
    wp_deregister_style( 'master_font_import' );
    wp_deregister_style( 'promo-style' );
    wp_deregister_style( 'prettify' );
    wp_deregister_style( 'DOPTG_JScrollPaneStyle' );
    wp_deregister_style( 'DOPTG_ThumbnailGalleryStyle' );
    wp_deregister_style( 'tubepress' );
    wp_deregister_style( 'ignitewoo_events_mini_cal_style' );
    wp_deregister_style( 'ignitewoo_events_frontend_styles' );

//require_once( 'dms/functions.php' );

//* Remove hentry from posts
function remove_hentry( $classes ) {
    $classes = array_diff($classes, array('hentry'));    
    return $classes;

// Lets suggest a few plugins..

dms_suggest_plugin( 'Contact Form 7', 'contact-form-7', 'Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup.<br />The form supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and so on.' );

dms_suggest_plugin( 'WordPress SEO', 'wordpress-seo', 'Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the WordPress SEO plugin by Yoast.' );
dms_suggest_plugin( 'Sidebar Manager Light', 'sidebar-manager-light', 'Create custom sidebars (widget areas) and replace any existing sidebar so you can display relevant content on different pages.' );

class Voyant{

    var $theme_name      = 'Voyant';
    var $theme_version   = '1.1';

    function __construct() {

        // Constants
        $this->url = sprintf('%s', PL_CHILD_URL);
        $this->dir = sprintf('/%s', PL_CHILD_DIR);


        add_filter( 'pagelines_foundry', array( &$this, 'google_fonts'      ));
        add_filter( 'pl_list_comments', array( &$this, 'comments_avatar' ) );
        add_filter( 'pl_toolbar_config', array( $this, 'toolbar'), 99);

        add_image_size( 'blog_loop', '855', '320', true );

        add_shortcode('highlight', array($this, 'highlight') );
        add_shortcode('white', array($this, 'white') );
        add_action( 'after_switch_theme', array($this, 'installer_count') );

    function installer_count(){
        if( function_exists('curl_version') ){
            $curl = curl_init();
            curl_setopt_array($curl, array(
                CURLOPT_RETURNTRANSFER => 1,
                CURLOPT_URL => 'http://enriquechavez.co/api/installer/voyant',
                CURLOPT_USERAGENT => 'echavezInstallerCounter'
            $resp = curl_exec($curl);

    function toolbar( $toolbar ){

        $toolbar['pagelines-help'] = array(
            'name'    => __( '', 'pagelines' ),
            'icon'    => 'icon-question-circle',
            'vtype'    => 'btn',
            'pos'    => 180,
            'panel'    => array(

                'heading2'    => __( "Support &amp; Help", 'pagelines' ),
                'resources'    => array(
                        'name'    => __( 'Resources', 'pagelines' ),
                        'call'    => array( $this, 'help_resources'),
                        'icon'    => 'icon-thumbs-up',


        return $toolbar;

    function help_resources(){
        $tour = pl_add_query_arg(array('pl-view-tour' => 1));
        <div class="row">
            <div class="span4 offset4">
                <a class="big-icon-button" href="http://enriquechavez.co/documentation/voyant" target="_blank">
                    <div class="the-icon"><i class="icon icon-files-o"></i></div>
                    <div class="the-text">Voyant Documentation <i class="icon icon-angle-right"></i></div>

        <div class="row">
            <div class="span3">
                <a class="big-icon-button" href="<?php echo $tour;?>">
                <div class="the-icon"><i class="icon icon-magic"></i></div>
                <div class="the-text">View Interactive<br>Tour <i class="icon icon-angle-right"></i>
            <div class="span3">
                <a class="big-icon-button" href="http://www.pagelines.com/user-guide/" target="_blank">
                <div class="the-icon"><i class="icon icon-book"></i></div>
                <div class="the-text">PageLines User<br>Guide <i class="icon icon-angle-right"></i>
            <div class="span3">
                <a class="big-icon-button" href="http://forum.pagelines.com/" target="_blank">
                <div class="the-icon"><i class="icon icon-comments"></i></div>
                <div class="the-text">PageLines Support Forums <i class="icon icon-angle-right"></i>
            <div class="span3">
                <a class="big-icon-button" href="http://docs.pagelines.com/" target="_blank">
                <div class="the-icon"><i class="icon icon-files-o"></i></div>
                <div class="the-text">PageLines<br>Documentation <i class="icon icon-angle-right"></i>

    function comments_avatar($args){
        return array( 'type'=> 'comment', 'avatar_size' => '80' );

    function highlight($atts, $content=""){
        return '<span class="highlight">'.$content.'</span>';

    function white($atts, $content=""){
        return '<span class="white">'.$content.'</span>';

     * Adding a custom font from Google Fonts
     * @param type $thefoundry
     * @return type
    function google_fonts( $thefoundry ) {

        if ( ! defined( 'PAGELINES_SETTINGS' ) )

        $fonts = $this->get_fonts();
        return array_merge( $thefoundry, $fonts );

     * Parse the external file for the fonts source
     * @return type
    function get_fonts( ) {
        $path = $this->dir . '/fonts.json';
        $fonts = pl_file_get_contents( $path );
        $fonts = json_decode( $fonts );
        $fonts = $fonts->items;
        $fonts = ( array ) $fonts;
        $out = array();
        foreach ( $fonts as $font ) {
            $out[ str_replace( ' ', '_', $font->family ) ] = array(
                'name'        => $font->family,
                'family'    => sprintf( '"%s"', $font->family ),
                'web_safe'    => true,
                'google'     => $font->variants,
                'monospace' => ( preg_match( '/\sMono/', $font->family ) ) ? 'true' : 'false',
                'free'        => true
        return $out;


new Voyant();


function voyant_hex2rgb($hex) {
   $hex = str_replace("#", "", $hex);

   if(strlen($hex) == 3) {
      $r = hexdec(substr($hex,0,1).substr($hex,0,1));
      $g = hexdec(substr($hex,1,1).substr($hex,1,1));
      $b = hexdec(substr($hex,2,1).substr($hex,2,1));
   } else {
      $r = hexdec(substr($hex,0,2));
      $g = hexdec(substr($hex,2,2));
      $b = hexdec(substr($hex,4,2));
   $rgb = array($r, $g, $b);
   return implode(",", $rgb);

Share this post

Link to post
Share on other sites

  • Similar Content

    • globalnative
      By globalnative+
      Hi there! 
      I'm wondering if I can and how I can easily make a one page scrolling parallax site with menus which scroll rather than take me to a new page?
      Something like this: http://demo.vellumwp.com/home-pages/one-page-resort/.
      Thank you kindly
      PS: my site: http://natemaingard.com
    • MindMeldCreative
      By MindMeldCreative
      I'd like to create a landing page template that doesn't have the header & footer. I know I can use css on the page-id to display:none, but it would be exceedingly awesome to be able to do this with a template.  Is it possible? If so, what's the process?
      Thanks so much!
    • ozelot
      By ozelot
      this is my first post on the forums, so please go easy ;)
      I use PL Dev. edition on my site with fixed navbar. I would like to remove the standart fixed navbar on landing pages completely or have the landing page show another menu.
      Thanks for your feedback.
    • bigdawggi
      By bigdawggi
      Website URL: (local, not available)
      Framework Version: 2.4.1
      WordPress Version: 3.5.2
      Plugins in Use: My own custom ones that just create a custom post type
      Server/Host: Apache 2.2
      Video Landing Page:   http://glui.me/?i=52xhbdfortrxqr8/2013-04-11_at_8.13.53_AM.png/
      Gallery Landing Page: http://glui.me/?i=9bkiomi3towoxu3/2013-04-11_at_8.20.46_AM.png/
      I override the main query at 'wp' action to pull the CPT Landing Page for the originally queried post type.  I set the global $post and do setup_postdata() with it. The page template seems to respect the various sections I have assigned to the CPT, but (besides the "features" section) not the *settings* for the respective section.
      For example, the masthead section's oset property is:
      [post_id] => (no post ID)
      [clone_id] => 1
      [group] => masthead
      Any ideas?
    • jinfinite8
      By jinfinite8+
      I'm looking for advice on a good template based approach in PageLines to allow my users to add a custom form to landing pages with various layouts.
      At present I need a 2-column landing page format where the content is on the left and the form is on the right with some other content.
      Normal form tools like gravity forms don't cut it, my form code is too complex and I don't want to expose users to the code (or have them break the code and damage important tracking info). 
      Ideally, I'd like my site users to be able to add their content on a normal WordPress page and then be able to insert the templated form where the user or landing page designer would like the form in their page content (regardless of layout). 
      How would you recommend I set this up?
      I'm looking for the right way to do it since this will get used repeatedly  (just hacking code together manually won't work). 
      I've attached a pdf which walks thru what I'm looking for and what I've done so far (I'll emphasize the current approach doesn't meet my needs and doesn't make sense at all). :-)