Get_sidebar

Hi, I need to lớn remove sầu the automatically generated sidebar (get_sidebar( "shop")) và replace it with my own sidebar


*

Hi there thank for your answers... Maybe more details could explain what i"m really looking for...

Bạn đang xem: Get_sidebar

I"ve sầu phối up a wordpress page và i"m trying to display products from woocommerce (via archive-product). everything ok so far...

But it seems lượt thích woocommerce is generating his own sidebar which I need to replace with a custom one.Here the automaticcally generated sidebar: http://www.tecbuima.com/catalogue/Here the one I need khổng lồ be displayed: http://www.tecbuima.com

I unsuccessfully tried to update the sidebar.php from woocommerceget_sidebar( "shop" ); ?> lớn custom one get_sidebar( "woo" ); ?> but nothing happens

also tried to lớn remove sầu the hook .. do_action( "woocommerce_sidebar" ); ... from archive-product.php và replace by a new one.... does not work as well

Moreover, I could not find the automatically generated "shop" sidebar in woocommerce....

Xem thêm: Sách Hướng Dẫn Sử Dụng Máy Tính Casio Fx 570Vn Plus Để Giải Toánthpt

so... hope this will help you to lớn help me...

Xem thêm: Twenty Seventeen

thanks in advance


3 Answers


*

oxanaox 16,295 Points
oxanaox
oxanaox 16,295 Points
January 5, 2016 10:38pm

Hi,Is this sidebar


in your archive.php file?If yes, you need to replace it with your own sidebar, like


và you have sầu lớn register your custom sidebar in functions.php in your theme-thư mục with the following:


register_sidebar ("custom"); } ?>
Please note, that the tệp tin name of your custom sidebar should be sidebar-custom.php You can also refer to this documentation on Wordpress Codex about custom sidebars: here

Hope it helps.


*

PRO
Damian Reilly Pro Student 4,533 Points
Damian Reilly
Damian Reilly Pro Student 4,533 Points
January 6, năm nhâm thìn 9:00am

You may want lớn consider using the is archive conditional tag. For example:


*

ernestinembak 272 Points
ernestinembak
ernestinembak 272 Points
January 6, năm nhâm thìn 9:04am
where? on functions.php?Thanx


*

PRO
Damian Reilly Pro Student 4,533 Points
Damian Reilly
Damian Reilly Pro Student 4,533 Points
January 6, năm nhâm thìn 1:00pm

Hi Ernestine,

Inside your theme thư mục, once you create a new widget area in your function.php file , go to your sidebar.php file and try adding the following code:


div id="primary" class="widget-area"> div class="xoxo"> div> div> div id="primary" class="widget-area"> div class="xoxo"> div> div>
Posting lớn the diễn đàn is only allowed for members with active accounts. Please sign in or sign up lớn post.


Treehouse Logo Our mission is to lớn bring affordable công nghệ education lớn people everywhere in order to help them achieve sầu their dreams and change the world. Company Careers Contact Library Tracks Community Stories Perks tiếp thị liên kết Program Treehouse for Libraries Topics HTML CSS Design JavaScript Ruby View all 24 Topics Tracks Front End Web Development Full Stack JavaScript Beginning Pyhẹp UX: Interaction Design Digital Literacy View all 42 Tracks © 2021 Treehouse Islvà, Inc.

Chuyên mục: Theme wordpress