Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] Woocommerce sidebar and footer fixes not working in 3.7.13


  #1  
Old Dec 13, 2013, 07:45 AM
stevinoz
 
60 posts · Sep 2012
Send a message via Skype™ to stevinoz
once I updated to Atahualpa 3.7.13 and put the fixes previously used in the functions.php they did not work so need new fixes for woocommerce making sidebar and footer not work properly
also using WP 3.8 -> very impressed.
  #2  
Old Dec 13, 2013, 07:48 AM
juggledad's Avatar
juggledad
 
23,492 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
to keep me from having to dig, please point to the thread giving the previous fix.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 13, 2013, 07:59 AM
stevinoz
 
60 posts · Sep 2012
Send a message via Skype™ to stevinoz
haha! I just knew you were going to say that, searching this forum is getting harder, what I can do quickly is paste the notes I made about it:

changed functions.php to deal with double sidebar in woocomm pages added:
edit the atahualpa file public_html/wp-content/themes/atahualpa/function.php:

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);
before closing ?>

The search for these fixes took some time so let me know if I still need to find the original posts and I'll get back to you in a day or so.
  #4  
Old Dec 13, 2013, 08:00 AM
stevinoz
 
60 posts · Sep 2012
Send a message via Skype™ to stevinoz
oops, missed one:

fix footer after woocommerce breaks it

edit /public_html/wp-content/themes/atahualpa/footer.php and change line 3 from:

if (!isset($bfa_ata))
to:
if ((!isset($bfa_ata)) or (class_exists('Woocommerce')) )
  #5  
Old Dec 13, 2013, 09:28 AM
juggledad's Avatar
juggledad
 
23,492 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you make sure any caching plugin was turned off?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Dec 13, 2013, 09:48 AM
juggledad's Avatar
juggledad
 
23,492 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this
1) remove the changes from function.php - they are not needed
2) edit footer.php and change line 3 from
HTML Code:
if (!isset($bfa_ata))
to
HTML Code:
if ((!isset($bfa_ata)) or (class_exists('Woocommerce')) )
create a file 'sidebar.php' and put it in the theme folder and put this in it
HTML Code:
<?php 
// ---------------------------------------------------------------------------
// dummy sidebar.php that calls get_footer() to handle oddity in Woommerce 
//
// ---------------------------------------------------------------------------
get_footer(); 
?>
and see if that works.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jan 14, 2014, 07:32 PM
stevinoz
 
60 posts · Sep 2012
Send a message via Skype™ to stevinoz
that has worked thanks

Bookmarks

Tags
footer, sidebar, woocommerce

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Don't Display Sidebar Not Working - WooCommerce? NightOwl Sidebars & Widgets 7 Jul 4, 2013 04:20 AM
[SOLVED] Atahualpa and Woocommerce issue with sidebar and footer.. tharavens22 Plugins & Atahualpa 7 Mar 30, 2013 06:16 PM
[SOLVED] Atahualpa &amp; Woocommerce Footer/Sidebar emillian eCommerce & Atahualpa 2 Feb 14, 2013 06:11 AM
Sidebar/Footer-problem with Atahualpa and WooCommerce owc eCommerce & Atahualpa 2 Oct 26, 2011 08:00 AM
Sticky footer issues even after bug fixes nickmoreton Post-Kicker, -Byline & -Footer 6 Oct 11, 2011 09:16 AM


All times are GMT -6. The time now is 09:40 AM.


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