Change Search bar location - by tlloyduk

This topic has 5 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Olga Barlow

  • Avatar: tlloyduk
    tlloyduk
    Participant
    September 30, 2016 at 15:38

    Hi Support,

    I’m sorry if this has been asked before, but the Search option on the forum is so hard to use I can never find anything 🙂 Any way to make it more “normal” ?

    Anyway, my question…

    I am using the latest version of X-Store theme. I would like to make my own variant of the header which is upgrade safe e.g. “Variant Center” which has the search option like in “Variant Centre2” but the layout of the logo, navbar, etc the same as “Variant Center”. Another option would be to have the same full search box, but aligned to the left of the Wishlist icon.

    Could you please point me in the right direction ?

    Thanks

    4 Answers
    Avatar: tlloyduk
    tlloyduk
    Participant
    September 30, 2016 at 15:53

    I did some investigation and found the headers folder containing centre.php, centre2.php etc so I can mark up what I want, I could just do with being told how to make my new PHP file available as an option in the Customizer or 8Theme options ?

    Also, would be good to confirm adding a new file here is ‘upgrade safe’

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 2, 2016 at 16:45

    Hello,

    If you want to change any template files and avoid problems with next theme update you need to use child theme. XStore child theme archive you can find in theme package. Detailed information how child theme works you can find here https://codex.wordpress.org/Child_Themes You just copy theme file of header structure in child theme (into the same folder as it is in parent theme) and do the necessary changes. If you need to change any theme functions copy these functions in child theme functions.php

    Regards

    Avatar: tlloyduk
    tlloyduk
    Participant
    October 23, 2016 at 14:57

    Thanks for the link, and for the reply.

    Do I base the child theme on themes/xstore folder or the themes/xstore/theme folder ?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 24, 2016 at 13:46

    Hello,

    Child theme should be located in wp-content/themes folder.

    Regards

  • Viewing 5 results - 1 through 5 (of 5 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.