Forum Replies Created
-
AuthorPosts
-
JustZ
ParticipantThis reply has been marked as private.JustZ
ParticipantHi Brad. Thanks again, that did the trick. Your help has been incredible and really helped us accomplish what we wanted!
JustZ
ParticipantHey Brad,
One more question if you have a moment.
The code below worked great. But we were wanting to add another few pages and no matter how we enter the Page ID (addition page ID 8687) we cannot get it to work for multiple pages at a time. Any thoughts/direction?
// Removes Header Specific Page
add_action('get_header', 'wpsites_remove_header');
function wpsites_remove_header() {
if (is_page('8651')) {
remove_action( 'genesis_header', 'genesis_do_header' );
remove_theme_support( 'genesis-menus' );
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
}
}JustZ
ParticipantThanks Brad! That did the trick, much appreciated for the direction!
JustZ
ParticipantWe tried the code that calls to a specific page in the Additional CSS area, but it didn't change anything for our page (header still appearing). We flushed the cash and opened in a new browser:
add_action('get_header', 'wpsites_remove_header');
/**
* @author Brad Dalton - WP Sites
* @example http://wpsites.net/web-design/remove-header/
*/
function wpsites_remove_header() {
if (is_page('8651') ) {
remove_action( 'genesis_header', 'genesis_do_header' );
}
}JustZ
ParticipantHi Brad,
Thanks for that info. We don't want to remove the header/navigation/footer for the entire site, just one page. We'd create a custom page template, but the only complete template available in our Theme (Magazine Pro) is the landing page (which we don't like the look of with the black background). We'd ideally like to copy the Default Template, and the code to remove the header/navigation/footer, and then create a custom page template — but we don't see the Default Template available under templated in the Theme Editor.
For the code that calls our to specific page, is that just placed in the stylesheet in the Theme Editor or can you put it in the Additional CSS area?
JustZ
ParticipantHi Victor,
Wonderful. Thanks for all of your help — we got it working again!
JustZ
ParticipantHi Victor,
Thanks so much for your reply.
I show that line of code on the notemgtgroup.com site on line 4960... Does it need to go somewhere else as well?
Thanks.
-
AuthorPosts