What .php file is used to edit the header of the theme?

This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago ago by Rose Tyler

  • Avatar: freeman97
    freeman97
    Participant
    June 29, 2018 at 09:17

    I am trying to insert an Advanced Woo Search search box into the header of my website.

    I am using header type 6 so have therefore copied the parent header-type-6.php file and made a child version.

    I have tried inserting the following code after line 28:

    <?php echo do_shortcode( ‘[aws_search_form]’ ); ?>

    But the search form does not appear, what am i doing wrong?

    Regards,
    Ellis

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2018 at 10:42

    Hello,

    You can edit header structure in header-structure file (/wp-content/themes/woopress/headers).
    admin – file
    1 – 1
    2 – 1
    3 – 1
    4 – 1
    5 – 1
    6 – 2
    7 – 2
    8 – 3
    9 – 1
    10 – 4
    11 – 4
    12 – 4
    13 – 5
    14 – 5
    15 – 1
    16 – 1
    17 – 6
    18 – 2
    I would recommend you to do all changes in template files via child theme – https://codex.wordpress.org/Child_Themes

    Regards

    Avatar: freeman97
    freeman97
    Participant
    July 4, 2018 at 12:22

    Hello,

    Sorry but I don’t understand. What are these numbers meant to mean?

    I am using header type 6 so what php file do I need to edit to insert shortcode for an Advanced Woo Search search box?

    Regards,
    Ellis

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 4, 2018 at 14:15

    Hello,

    Thanks for the reply.
    You need to edit header-structure-2.php file.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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