Community Forums › Forums › Archived Forums › Design Tips and Tricks › removing all the header elements in a landing page
Tagged: parallax-pro, removing header
- This topic has 2 replies, 2 voices, and was last updated 10 years, 4 months ago by
DigitalSuit.
-
AuthorPosts
-
February 23, 2016 at 9:30 am #179717
DigitalSuit
MemberHello
http://www.digitalsuit.com
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 reasonFebruary 23, 2016 at 10:26 am #179719Victor Font
ModeratorYou 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 #179734DigitalSuit
MemberHi 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 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.