• hello I need to add a sidebar in the individual product section.
    How can I insert it, since I have tried in different ways and I have not been able to place the sidebar.

    It is only shown in the store, but I also want it to be shown in the individual section of each product.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dasilvadanij

    (@dasilvadanij)

    Acabo de darme cuenta que con este codigo ingresa el barra lateral y reduce el espacio en el de la tienda de woorpress pero ahora no se como hacerlo en el de productos solos.

    add_action (‘woocommerce_before_main_content’, ‘cartbox_woocommerce_wrap_start’, 22);

    función cartbox_woocommerce_wrap_start () {?>
    <div class = “ws-main-content”>
    <div class = “tr-container clearfix”>
    <div id = “primary” class = “content-area”>
    <main id = “main” class = “site-main” role = “main”>

    <? php
    }

    add_action (‘woocommerce_after_main_content’, ‘cartbox_woocommerce_wrap_end’, 12);
    función cartbox_woocommerce_wrap_end () {
    ?>
    </main>
    </div>
    <? php if (! is_single ()) {get_sidebar (); }?>
    </div>
    </div>
    <? php
    }

    Thread Starter dasilvadanij

    (@dasilvadanij)

    Pero todavía no se como hacerlo en la parte de producto individual de wooecomerce

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I need to add sidebar’ is closed to new replies.