Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Altisu

    (@altisu)

    Hello, Manoj! Thanks for the link! (:

    The problem is already solved! I had incorrect codes in style.css and functions.php files in the main directory of the child theme.

    The proper code of the style.css (in child theme folder) looks like this:

    /*
    Theme Name: Hive Lite Child
    Theme URI: https://pixelgrade.com/themes/hive-lite/
    Author: Pixelgrade
    Author URI: https://pixelgrade.com
    Description: Дочерняя тема
    Template: hive-lite
    Version: 1.0.5
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: hive-lite-child
     */

    And proper code of the functions.php (child again) file:

    <?php
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
        
    function enqueue_parent_styles() {
       wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    ?>

    Hope this can help someone with the same problem and to create child theme correctly! Good luck, folks! (:

    • This reply was modified 7 years, 2 months ago by Altisu.
    Thread Starter Altisu

    (@altisu)

    I’ve just found the solution by myself! ;D

    Here is the proper code of the search widget:

    <!-- Search -->
                        <div class="pc-header-layout-4__search">
                            <div class="search-overlay"  data-search-overlay-scope>
                                <button class="search-overlay__btn" type="button" data-search-overlay-btn>
                                    <i class="search-overlay__icon">
                                        <svg class="svg-icon  "><use xlink:href="https://goodlook.premmerce.com/wp-content/themes/saleszone-premium/public/svg/sprite.svg#svg-icon__search-thin"></use></svg>                                </i>
                                </button>
                                <div class="search-overlay__overlay hidden" data-search-overlay-overlay></div>
                                <div class="search-overlay__search hidden"  data-search-overlay-search>
                                    <div class="widget woocommerce widget_product_search"><div class="product-search"
         >
        <!-- site-search -->
        <form class="product-search__form woocommerce-product-search"
              role="search"
              method="get"
              action="https://goodlook.premmerce.com/">
            <div class="product-search__input-group">
                <input class="product-search__form-control search-field autocomplete__input"
                       id="woocommerce-product-search-field-0"
                       autocomplete="off"
                       type="text"
                       placeholder="Search products"
                       value=""
                       name="s" />
    
                <div class="product-search__input-group-btn">
                    <button class="product-search__submit" type="submit">
                        <i class="product-search__submit-icon">
                                                        <svg class="svg-icon  "><use xlink:href="https://goodlook.premmerce.com/wp-content/themes/saleszone-premium/public/svg/sprite.svg#svg-icon__search-thin"></use></svg>                                            </i>
                    </button>
                </div>
            </div>
            <input type="hidden" name="post_type" value="product" />
        </form>
    
        
    </div></div>                            </div>
                            </div>
                        </div>

    You just need to paste it in the header-layout_4.php and replace three lines with your site info.

    Here:
    <use xlink:href="https://goodlook.premmerce.com/wp-content/themes/saleszone-premium/public/svg/sprite.svg#svg-icon__search-thin">

    Here:
    action="https://goodlook.premmerce.com/">

    And, finally, here (yeah, the same as the first):
    <use xlink:href="https://goodlook.premmerce.com/wp-content/themes/saleszone-premium/public/svg/sprite.svg#svg-icon__search-thin">

    Hope it could help. Enjoy (:

    • This reply was modified 7 years, 4 months ago by Altisu.
    • This reply was modified 7 years, 4 months ago by Altisu.
    Thread Starter Altisu

    (@altisu)

    And is there any way to show it, to make it visible?

    Thread Starter Altisu

    (@altisu)

    Oh, Tut, thank you SO MUCH!!! Finally, the problem is solved! (:
    PS. Could you tell me, pls, why that icon is so naughty? Have a great New Year, buddy! (;

Viewing 4 replies - 1 through 4 (of 4 total)