-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent header on a page? #53
Comments
There is a filter when getting header id which you can use, for now, the usage would be something like this -
In the future updates, it would be nice if there is a page level meta option which overrides the global setting. Related #42 |
Hi thank you I have tried adding this to functions.php and it doesn't
appear to work. Were you able to get the code to work?
…On Tue, Jul 18, 2017 at 8:56 PM, Nikhil ***@***.***> wrote:
There is a filter when getting header id which you can use, for now, the
usage would be something like this -
function prefix_disable_header_on_page( $header_id ) {
// Change 1234 to the page ID where you want to disable the header.
if ( is_page( 1234 ) ) {
return '';
}
return $header_id;
}
add_filter( 'bhf_setting_bb_header_id', 'prefix_disable_header_on_page' );
In the future updates, it would be nice if there is a page level meta
option which overrides the global setting.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acw9uvPpxHw5rKwsKqUr27Ybf3KYomqUks5sPX5vgaJpZM4OXpRi>
.
--
David
|
Do I put that code in functions.php or somewhere else?
…On Wed, Jul 19, 2017 at 10:48 AM, David Nguyen ***@***.***> wrote:
Hi thank you I have tried adding this to functions.php and it doesn't
appear to work. Were you able to get the code to work?
On Tue, Jul 18, 2017 at 8:56 PM, Nikhil ***@***.***> wrote:
> There is a filter when getting header id which you can use, for now, the
> usage would be something like this -
>
> function prefix_disable_header_on_page( $header_id ) {
>
> // Change 1234 to the page ID where you want to disable the header.
> if ( is_page( 1234 ) ) {
> return '';
> }
>
> return $header_id;
> }
>
> add_filter( 'bhf_setting_bb_header_id', 'prefix_disable_header_on_page' );
>
> In the future updates, it would be nice if there is a page level meta
> option which overrides the global setting.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#53 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Acw9uvPpxHw5rKwsKqUr27Ybf3KYomqUks5sPX5vgaJpZM4OXpRi>
> .
>
--
David
--
David
|
Hello @daveman321, Yes, you will have to put that code in the functions.php of your child theme. Also, you will need version 1.1.6-beta.1 that I just updated installed on your site for this to work. You can download that version for here on Github - here In the future updates, I will try to bring as an option in the page meta so that this can be done very easily. |
Hi this is no longer needed, it's built into BB
http://kb.wpbeaverbuilder.com/article/137-remove-the-header-and-footer
…On Fri, Sep 8, 2017 at 4:42 AM, Nikhil ***@***.***> wrote:
Closed #53 <#53>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#53 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acw9um_LzSMk7wmVIufQnO9LVOvMHc1mks5sgShAgaJpZM4OXpRi>
.
--
David
|
Hello @daveman321, Yes, although this only for the BB theme, The plugin also supports other themes and for them this will still be required. |
If someone need - I don't like the way over ID so
to
So after that all page with the tpl file 'tpl-no-header.php' will have no header but a footer. |
Hi I am using this plugin. how do I prevent header from showing on a page? I want header to show across site except for one page please.
The text was updated successfully, but these errors were encountered: