[SOLVED] Atahualpa and Woocommerce 3.3.1
The latest Woocommerce 3.3.1 update has been causing me some problems (now there's a surprise!).
https://westerngeomancy.org/shop/ The shop page looks OK except that the payment options banner is now not centred, and when you go into a category or an item it is displaying with sidebars when it shouldn't. (Sidebars are disabled for the shop page in ATA options.) Also, the old 2.8.6 displayed a navigation hierarchy above the products, which has now disappeared (e.g. SHOP>courses> etc.) I have added the 'declare Woocommerce support' code as mentioned on their support forum here: https://github.com/woocommerce/wooco...port-in-themes - I just pasted the whole settings code into ATA > CSS inserts, but I can't say that it seems to have made any difference. The whole WC inserts section (including the part inserted by Juggledad to get ATA to work with Woocommerce originally) now look like this: PHP Code:
|
I’ll try to take a look this weekend but currently I just got back from a 3 hr round trip to pick up a sick 3yr old grandson after dropping the 5yr old cousin at school and grabbing the 3yr olds baby sister (11 months) and his older brother and in a few I have to put them both in the car again to pick up the 5 yr old and take the 5 and 6 yr olds to my sons and in 3 hours pick up the 7 yr old and drive him home.
Ohhh did I mention my wife is sick with a bug and I have a sore throat. Sigh...I hope I make it thru the day |
No panic JD, it's more important to look after yourself! I can send you a good hot toddy recipe for your throat if you like. :)
I recall now that there is some Woo code in the functions.php that relates to removing sidebars. Possibly that is causing issues with the new WC. |
try adding to the CSS Inserts
HTML Code:
div.post table {margin: 0 30%;} p.s. I now have the flu....and my bodies furnace has gone haywire. There are times I've got a fever and my hands are like ice. I've taken to wearing mittens at times....Fortunately I got on tamale within 24 hours and hopefully it won't be too bad... |
Quote:
Thanks for taking a look under less than optimal conditions! I hope your suffering has lessened a bit. I haven't had a great deal of time to play around with this, but I tried adding your suggested CSS insert, with and without the '1652' and with varying percentage values, but it hasn't made any difference. I also tried removing the WC code in the functions.php file but that didn't go well at all LOL. Another issue that I've just notices is that if you click on one of the category images, as well as having the sidebars it is showing all the comments from the entire site underneath. I'm getting well out of my comfort zone trying to fix things here... maybe it is time to look around at other themes. When I can find the time, that is. |
Quote:
|
1 Attachment(s)
Quote:
I tried swapping to 2017 theme, both sidebars were then present on the entire shop including the main shop page; although interestingly the left sidebar appeared underneath the main 'loop' content. See attachment for a section of the main shop page in 2017. I'm wondering if the code that was added to the functions.php to deal with the sidebar issue when I first installed WC has anything to do with it? I tried removing this but then lost the whole site to the dreaded white screen.. Code:
add_action('wp', create_function("", "if (is_archive(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") ); |
Ahhh the “products” category page! I was looking at the Wordpress category page and saw nothing wrong . I’ll take a lo.
One question, when you swapped to twenty seventeen, did the comments show up? |
Quote:
Something I missed when I took that screenshot earlier is that the left and right sidebars are switched around. |
Ok, I just went in and applied the two Atahualpa changes from the other thread (I've copied them in below) and I get no comments on a product category page, the right sidebar shows correctly and the footer exists where it should.
This leads me to beleive that (1) there is a conflict with the plugins you have or (2) you made an error is some editing of the atahualpa files. The only way I could determine the issue would be to get into your site and poke around and/or make a copy to play with on my local machine. Oh, the reason the screen when blank when you removed the code at the bottom of function.php is because you must not have replaced the line they replaced. The file must end with the line: HTML Code:
?> Here are the only changes I made: footer.php: change line 3 from HTML Code:
if (!isset($bfa_ata)) HTML Code:
if ((!isset($bfa_ata)) or (class_exists('Woocommerce')) ) HTML Code:
?> HTML Code:
add_action('wp', create_function("", "if (is_archive(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") ); |
Hi JD,
Both of those changes had already been applied to footer.php and functions.php from when I first installed WC. I'd appreciate it if you have time to have a poke around. I've set up an account for you. |
send me a PM with the login info
|
Many thanks for your help on fixing those issues, JD. This is one of the reasons why I still love ATA as a theme !:)
|
All times are GMT -6. The time now is 05:42 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.