Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » eCommerce & Atahualpa »

[SOLVED] Woocommerce and Atahualpa


 
Prev Previous Post   Next Post Next
  #12  
Old Oct 15, 2012, 04:30 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
This is an issue with woocommerce. If you had done a google search you would have discovered it.
1) delete the file footer-shop.php that I told you to create.
2) edit the atahualpa file 'function.php'
3) change the last line from
HTML Code:
?>
to
HTML Code:
add_action('wp', create_function("", "if (is_archive(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") );
//Unhook (remove) the WooCommerce sidebar on individual product pages

add_action('wp', create_function("", "if (is_singular(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") );
//Unhook (remove) the WooCommerce sidebar on all pages

remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
?>
try it out. You will have to do this each time the theme is updated, so take good notes.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 4, 2013 at 07:24 AM.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sidebar/Footer-problem with Atahualpa and WooCommerce owc eCommerce & Atahualpa 2 Oct 26, 2011 08:00 AM


All times are GMT -6. The time now is 07:41 AM.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.