Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
aojunioro
tagDiv Member

Hi, Bogdan. Thank you very mutch for atenttion
I think I found the solution, but I’m not quite sure how to deploy it.

I would like to insert in home a different header from the other pages.
I would like to create a header for home like this:

header-home.php

But how do you call it on Home?

But how should I use this function in the theme? Since it already has the system of choice of Header Style (header-style-1.php, header-style-2.php, etc.).

I found this:

<? Php
If (is_home ()):
Get_header (‘home’);
Elseif (is_404 ()):
Get_header (‘404’);
Else:
Get_header ();
Endif;
?>

aojunioro
tagDiv Member

Hi bogdan, I sorry, but I need help, yet.
How I can identify if my home page é a — is_home() ?
Why don’t work yet ?

look please: I am using this Style – 1

<!–
Header style 1
–>
<div class=”td-header-wrap td-header-style-1″>

<div class=”td-header-top-menu-full td-container-wrap <?php echo td_util::get_option(‘td_full_top_bar’); ?>”>
<div class=”td-container td-header-row td-header-top-menu”>
<?php td_api_top_bar_template::_helper_show_top_bar() ?>
</div>
</div>

<div class=”td-banner-wrap-full td-logo-wrap-full td-container-wrap <?php echo td_util::get_option(‘td_full_header’); ?>”>
<div class=”td-container td-header-row td-header-header”>
<div class=”td-header-sp-logo”>
<?php locate_template(‘parts/header/logo-h1.php’, true);?>
</div>
<div class=”td-header-sp-recs”>
<?php
if(is_home()){
echo do_shortcode(‘[pro_ad_display_adzone id=18836]’);
}
else{
locate_template(‘parts/header/ads.php’, true);
}
?>
</div>
</div>
</div>

<div class=”td-header-menu-wrap-full td-container-wrap <?php echo td_util::get_option(‘td_full_menu’); ?>”>
<div class=”td-header-menu-wrap td-header-gradient”>
<div class=”td-container td-header-row td-header-main-menu”>
<?php locate_template(‘parts/header/header-menu.php’, true);?>
</div>
</div>
</div>

</div>

If this all right, so the problem is in (is_home())??

thank you very mutch

aojunioro
tagDiv Member

Should not I use is_home()?

I read something about it but I do not know how to use it … please, could you help me !!

aojunioro
tagDiv Member

Ok Bogdan, thanks.

But, this is don’t go alter header of all pages ?
I need alter only home page.

Viewing 4 posts - 1 through 4 (of 4 total)