|
#1
Oct 12, 2012, 04:48 AM
|
|
Hello,
I tried to use the plugin Woocommerce
This plugin has been realized and Atahualpa do not work well together.
The menu and the footer of Atahualpa Disrupted.
http://www.billieshimoni.co.il/?post_type=product
There is a way to fix this? Maybe I can add some code?
I tried to contact help in Woocommerce, but no one to talk there.
Thank you.
|
#2
Oct 12, 2012, 06:06 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
what page are you seeing a problem on? when I follow the link it looks fine in Safari.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Oct 12, 2012, 07:58 AM
|
|
In Store page - all pages of products, down a menu should not appear and footer distorted.
I checked it does not look good in all browsers.
thank you.
|
#4
Oct 12, 2012, 10:14 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
you could try this 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')) )
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Oct 12, 2012, 10:51 AM
|
|
You are amazing! Now Footer looks great!
But the problem still remained in the right menu, the menu appears again under products
How can I fix this?
Thank you very very much
|
#6
Oct 12, 2012, 01:48 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
This is a Woocommerce 'issue'. They are calling the footer passing a parameter that should make it run the file 'footer-shop.php' but they don't have one so it just defaults to 'footer.php' and then Atahualpa runs 'footer.php' as it should.
here is a possible fix, create a file called 'footer-shop.php with the following in it
HTML Code:
<?php
// dummy footer-shop.php file to get around Woocommerce bug of a missing file
?>
save it and put it in the theme folder.
__________________
"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; Mar 30, 2013 at 06:44 PM.
|
#7
Oct 13, 2012, 11:31 AM
|
|
I did what you said, but did worse, the footer completely disappeared from the products page and the menu still appears under products.
In my opinion the code you said earlier placed in fooer is excellent and solved the problem of Disruption footer, but did not solve the problem of the menu that appears under products.
Maybe to check the header.php? maybe there is a possible problem of the menu and put some code?
Thank you.
|
#8
Oct 13, 2012, 11:48 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
i see no difference between the header on the home page and the header on the product page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#9
Oct 14, 2012, 05:48 AM
|
|
So I have no way to fix it?
|
#10
Oct 14, 2012, 12:31 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
can you send a screen print showing the difference?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Oct 15, 2012, 04:02 AM
|
|
I do not know whether there is a difference between them, unfortunately I do not know very much about the field. There must be a reason that causes this disruption so I thought maybe the reason lies in header.
Well if there is no way to help fix it, thanks anyway for the help.
|
#12
Oct 15, 2012, 05:30 AM
|
|
|
|
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
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 08:24 AM.
|
#13
Oct 15, 2012, 07:38 AM
|
|
Yes yes yes it works!
Thank you very much! You made me happy
|
|