Search Home Page – remove element - by Redgall

This topic has 17 replies, 4 voices, and was last updated 4 years, 9 months ago ago by John Holden

  • Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 17:21

    I copied this “woosearchform.php” file into the child theme for changes to the search bar at the top of the layoput but it seems to have no effect. Because?

    Thank you

    https://prntscr.com/qv5pze

    https://prntscr.com/qv5qyw

    16 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 30, 2020 at 18:01

    Hello,

    You have no effect because that form is not for the header builder element. Header builder elements are located at XStore core plugin.

    1) To disable categories go to Theme Options > Header builder > edit search element and disable Search by category https://gyazo.com/09eaad53f4f2aca5d2aa27c0eca33c75

    2) Add the following code to Theme Options > Custom CSS to get search title instead of the icon

    .et_b_header-search.et_element-top-level .input-row .search-button:before {
    	content: 'Search';
    	padding: 0 20px;
    }
    .et_b_header-search.et_element-top-level .search-button svg {
        display: none;
    }
    .et_b_header-search.et_element-top-level .search-button {
        width: auto;
    }

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 18:02

    Thanks for this solution but I would like to modify the .php file is it possible? Can you say where?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 30, 2020 at 18:17

    Hello,

    et-core-plugin/app/models/customizer/templates/header/parts/search.php file in the XStore core plugin but we don’t recommend you editing of that file because we release regular updates for the core plugin and you will lose your customization after plugin update.

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 18:24

    OK! I got it.

    Also to modify “Categories” from the mobile menu with another item, I can’t do it on .php?

    https://prnt.sc/qv6sjy

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 30, 2020 at 18:27

    Hello,

    It’s also part of the header builder. Do you want to change the title “Categories” or content that you get under this tab of the mobile menu or you want just disable it?

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 18:28

    I would like to change the title

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 30, 2020 at 18:31

    Hello,

    Use translation files of the XStore core plugin. Follow the instructions https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/ , use Loco Translate plugin and instead of translation core plugin to another language create the translation for your language and change the categories to anything you need.

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 18:44

    I don’t understand … Isn’t it enough just to take one of these files you provide and send via ftp to a folder? If yes, where?
    https://prnt.sc/qv73gs

    Avatar: Redgall
    Redgall
    Participant
    January 30, 2020 at 21:45

    I tried to upload the files you provide in the “language / themes” folder but nothing happens. Do you know why? I am using child theme
    https://prnt.sc/qv9nv7

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2020 at 08:47

    Hello,

    What is the language of your site (Dashboard > Settings > General > Site Language)?
    Install Loco translate plugin, you will be able to disable the plugin once translation/changes will be done. The plugin is required to sync existing translation files https://www.8theme.com/documentation/xstore/theme-translation/translation-files-update/ It is not enough to just place files to the folder, go to Loco translate > Themes > XStore > open translation of your language > sync translation > find and translate strings > Save changes. As was mentioned “Categories” should be changed via translation of Core plugin, so go to Loco translate > Plugins > XStore Core > create translation to your language (languages/plugins folder) > http://prntscr.com/qvg90j
    If you need any further assistance, provide URL of your site and temporary FTP access.

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 31, 2020 at 10:11

    I have problems as you can see from the image. I sent site and ftp access.
    https://prnt.sc/qvhj3s

    Tank

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2020 at 10:43

    Hello,

    CMB2 and Core are 2 different plugins. I’ve created a translation for Core plugin on your site. Please check – http://prntscr.com/qvi3xo > http://prntscr.com/qvi45t

    Regards

    Avatar: Redgall
    Redgall
    Participant
    January 31, 2020 at 10:53

    Thanks Rose, great!
    Can you make me understand how you proceeded? I would not like to request again.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2020 at 11:18

    To continue the translation of the Core plugin follow these screenshots – http://prntscr.com/qvinwx > http://prntscr.com/qvio2c > http://prntscr.com/qviodi
    For the theme – http://prntscr.com/qviomq > http://prntscr.com/qviosh > http://prntscr.com/qvip2h
    Let us know if you need any further assistance.

    Regards

    Avatar: Redgall
    Redgall
    Participant
    February 2, 2020 at 20:16

    ok tank. There are other parts that we can’t translate. I open another Post so as to be of help to other users.

    Avatar: John Holden
    John Holden
    Support staff
    February 3, 2020 at 04:42
  • Viewing 17 results - 1 through 17 (of 17 total)

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

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