HomePage Forums Themeforest Organey – Organic Food WooCommerce WordPress Theme HTML changes to some of the elements

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6728
    AvatarMatija
    Support Expired

    Hello,

    would you be so kind and tell us how to change the HTML of some of the elements, for example the HTML of mini-cart?

    We’ve tried changing the following files (with no success):

    – wp-content/plugins/woocommerce/templates/cart/mini-cart.php
    – wp-content/themes/organey/woocommerce/cart/mini-cart.php
    – wp-content/themes/organey-child/woocommerce/cart/mini-cart.php

    How could we add some wrappers to the HTML?

    Thank you and kind regards.

    Matija

    #6730

    Hi,

    Please override the following function in the child-theme, then add the wrappers or html you want:

    function organey_header_cart_side() {
            if (organey_is_woocommerce_activated()) {
                ?>
                <div class="site-header-cart-side side-wrap">
                    <a href="#" class="close-cart-side close-side"></a>
                    <div class="cart-side-heading side-heading">
                        <span class="cart-side-title side-title"><?php echo esc_html__('Shopping cart', 'organey'); ?></span>
                    </div>
                    <?php the_widget('WC_Widget_Cart', 'title='); ?>
                </div>
                <div class="cart-side-overlay side-overlay"></div>
                <?php
            }
        }

    For the content cart part, you need to override the mini-cart file in the child-theme and edit the html markup as you did above.

    #6773
    AvatarMatija
    Support Expired

    Thank you for your answer!

    Matija

    #6789

    Ok, let me know if you need to help.

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

You must be logged in to reply to this topic.