ykarp on "[Plugin: Header and Footer] Header only on Home Page"

ساخت وبلاگ

Hi. I want to show a banner only on the home page above the top nav menu.

If I enter the code in the Header Footer tab > "Head section injection" > "Only home page" field, the header doesn't show on my site at all. But if I enter the same code in the "Every page" field, the header shows but on every page, including the Home page.

Here is my code:

<div class="black-bg">
<h2>Make your purchase count! Select a school or organization at checkout and we will make a donation to them on your behalf - no extra cost to you because it's on us!</h2>
</div>

How do I get the header to only show on the Home page?

Thank you.

https://wordpress.org/plugins/header-footer/

Hi the header and footer plugin is only to inject code in the head section of the page, not to add banner in the header. That should be a feature of your theme, if present.

Thanks for your reply. Can I inject code in the head section of the Home page only? It seems I should be able to because you have provided a field for it. If so, what code would work - HTML, PHP, something else?

Thank you so much for your help.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 300 تاريخ : يکشنبه 17 مرداد 1395 ساعت: 19:27