Add banner in header area - by girlnui - on WordPress WooCommerce support

This topic has 7 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Rose Tyler

  • Avatar: girlnui
    girlnui
    Participant
    March 9, 2017 at 07:59

    I tried to add free shipping banners to head area.
    and, I add code in file header.php
    But it does not show. Where do I go to add it?

    view image
    https://www.hulaflowers.com/wp-content/uploads/2017/03/9-3-2560-13-55-58.jpg

    Please help me

    6 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 9, 2017 at 11:08

    Hello,

    Have you edited original theme files?
    We recommend to make changes in the child theme https://codex.wordpress.org/Child_Themes because you’ll lose all modifications after each theme update.
    Try to use Header custom HTML to add your banner.

    Regards,
    Rose Tyler.

    Avatar: girlnui
    girlnui
    Participant
    March 9, 2017 at 12:04

    yes, I changes all in the child theme

    I add this code in header.php Next to the logo

    <div class=”free-ship”>

    </div>

    But it does not show anything at all.
    So I deleted that code.

    Is that i write Is the code incomplete?

    Avatar: girlnui
    girlnui
    Participant
    March 9, 2017 at 12:05

    this code

    <div class="free-ship">
    <img class="alignnone size-full wp-image-30434" src="/wp-content/uploads/2017/03/freeshipping-small.gif" alt="" width="350" height="85" />
    </div>	
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 9, 2017 at 13:37

    Hello,

    I’ve copied your header-structure-3.php in child theme /themes/royal-child/headers and added this code

    <div class="free-ship" style="width: 350px;">
    	<img class="alignnone size-full wp-image-30434" src="https://www.hulaflowers.com/wp-content/uploads/2017/03/freeshipping-small.gif" alt="" width="350" height="85" />
    </div>	

    Please, check it now.

    Regards,
    Rose Tyler.

    Avatar: girlnui
    girlnui
    Participant
    March 9, 2017 at 17:15

    it ok.
    Thank you very much for your help

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 10, 2017 at 10:29

    Hello,

    You’re welcome!

    Regards,
    Rose Tyler.

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Add banner in header area’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.