vendredi 10 juin 2016

Change order of items in Storefront Theme Header

I am using a child theme of the Wordpress, WooCommerce theme Storefront.

Storefront header hooked functions are ordered this way:

<?php
        /**
         * Functions hooked into storefront_header action
         *
         * @hooked storefront_skip_links                       - 0
         * @hooked storefront_social_icons                     - 10
         * @hooked storefront_site_branding                    - 20
         * @hooked storefront_secondary_navigation             - 30
         * @hooked storefront_product_search                   - 40
         * @hooked storefront_primary_navigation_wrapper       - 42
         * @hooked storefront_primary_navigation               - 50
         * @hooked storefront_header_cart                      - 60
         * @hooked storefront_primary_navigation_wrapper_close - 68
         */
        do_action( 'storefront_header' ); ?>

I would like to change the order so the product_search comes before the secondary_navigation.

I have been through the storefront files and cannot find where this order is set, only the items individually.

Can anyone please help me to hook or do what is needed to change the order please?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire