• 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

removing all the header elements in a landing page

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 › Design Tips and Tricks › removing all the header elements in a landing page

This topic is: not resolved

Tagged: parallax-pro, removing header

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by DigitalSuit.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 23, 2016 at 9:30 am #179717
    DigitalSuit
    Member

    Hello
    theme: parallax pro
    the question is for a landing page,
    I would like to remove the header and all its elements including the header.entry-header the title and white spaces and so on
    the bottom line is that I wish to add a full size image to the background,
    but I just can figure out how, should I add some kind of a remove_action ?
    or maybe add some kind of css to the specific page,
    I know the basics for php, html and CSS, so I would like to do the best resolution that will cause the least amount of "damage" for the amazing framework and template that you guys created.
    I would like to thank everyone who will help 🙂
    if you need to take a look at my site for some reason

    http://www.digitalsuit.com
    February 23, 2016 at 10:26 am #179719
    Victor Font
    Moderator

    You need to create a landing page template. Save this code as page-landing.php in the child theme's directory.

    <?php
    /**
     * This file adds a Landing template to your Genesis Theme.
     */
    
    /*
    Template Name: Landing
    */
    
    //* Add landing body class to the head
    add_filter( 'body_class', 'add_landing_body_class' );
    function add_landing_body_class( $classes ) {
    
    	$classes[] = 'landing-page-class';
    	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' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    
    //* Remove navigation
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    remove_action( 'genesis_footer', 'genesis_do_subnav', 7 );
    
    //* 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();

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    February 23, 2016 at 12:10 pm #179734
    DigitalSuit
    Member

    Hi Victor

    Thank you for replying

    I do have the landing page template BUT I still have the title of the document which I cant get rid of
    you can see it here http://www.digitalsuit.co.il/%D7%98%D7%99%D7%99%D7%A7%D7%95%D7%9F/

    do you have any idea what to do to make the image start from the top of the page ?

    Thank you again 🙂

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ 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

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