Home › Forums › Mikmag WordPress theme › iphone and ipad
Tagged: ipad, iphone, responsive
- This topic has 1 reply, 5 voices, and was last updated 12 years, 1 month ago by Curt Montgomery.
-
AuthorPosts
-
-
at #9286KevinMember
On the themeforest demo when I go to the store using an ipad or iphone while in responsive mode, I can not link to the product description or add to cart. I can see the products listed and the 2 black bars display but no link. Can you provide me with a solution to this problem? I know this is not a woocommerce issue but a theme issue and need this to work on mobile devices. If anyone has figured it out please share.
Since this is a problem on the actual demo you used to market this theme, I posted this on the themeforest site and was given instructions to look on this site for answers. I did not find any. So, I would like to know why I can go to woocomerce themes and use an iphone and see details of products from the shop on their demo themes and i can not do it with Mikmag a responsive theme. Being a responsive theme it is important to have business critical functions like viewing products and adding to the cart on mobile devices. I am speaking in this manner because I saw a reply that says woocommerce does not support iphone or ipad on the themeforest support. I also do not see this as a support issue that should require to pay for additional support. If you provide instruction to the code that is needed to be changed I will be happy to do it myself.
-
at #9302Curt MontgomeryMember
Woocommerce works fine with iPhone and iPad, I have several Woo-based sites that work as they should. It’s definitely a theme issue, I’m digging through the code now to see what I can find. This is just the most recent of many bugs I’ve found with this theme (and it’s a biggie). I love the MikMag theme but I’ve damn near had to become a PHP developer to get it working right, and I have too much time (and money) invested in it now to move on to something else.
TD – any response to this issue?
-
at #9303Curt MontgomeryMember
Man, I should be on TD’s payroll. The problem is in the theme.js file. Particularly this section:
// WooCommerce product items
//
jQuery('ul.products .product').each(function(index, element) {
var element = jQuery(element);
var imgEl = element.children('img');
var container = element.find('.product_hover_container');var ANIMATE_SPEED = 800;
// Hover effects
container.hide();
container.css(‘visibility’, ‘visible’);if (isTouch) {
var startEvent = ‘click’;
var endEvent = ”;
} else {
var startEvent = ‘mouseenter’;
var endEvent = ‘mouseleave’;
}element.bind(startEvent, function(event) {
container.css(‘top’, (imgEl.outerHeight(true) / 2 – container.height() / 2) + ‘px’);
container.css(‘left’, (imgEl.outerWidth(true) / 2 – container.width() / 2) + ‘px’);container.stop(true, true).fadeIn(ANIMATE_SPEED / 2);
event.preventDefault();
return false;
});
if (endEvent !== ”) {
element.bind(endEvent, function(event) {
container.stop(true, true).fadeOut(ANIMATE_SPEED);event.preventDefault();
return false;
});
}
});This applies to the product listing page and is trying to tell the touchscreen how to handle the touch events. I’d be lying if I said I knew where the error was in the coding, but obviously there is one.
What I do know is by stripping that section out of the theme.js file, as well as the fancy “black bars” overlay on product thumbnails from content-product.php, I now have iPhone clickable links to products. I’ve lost the black bars overlay functionality, but I was planning on getting rid of that as most products on my site are variable and can’t be directly added to the cart anyway, so no loss there. It’s definitely an issue that needs to be fixed though.
-
at #9305KevinMember
I am going to work it in and hope to have the same success the bar can go so long as the function is working. Let you know How it comes together for me. Thanks for the update.
-
at #10806Marc AndersonMember
Kevin, have you made headway with this issue? I’m dealing with the same thing.
-
at #10814AnonymousInactive
Hi Marc,
Are you getting this problem on the latest version of mikmag?
I’ve just tested our demo site on my ipod touch and it appears to work properly.
Kevin
-
at #10824Marc AndersonMember
yes. this is the latest version. and the demo site is not responsive, is it?
-
at #10825DustyMember
I was having the same problem with the Empress theme. Interestingly, making the start and end events in the Touch section of code the same seems to make it work on ipad and iPhone. Eg:
if (isTouch) {
var startEvent = ‘mouseenter’;
var endEvent = ‘mouseleave’;
} else {
var startEvent = ‘mouseenter’;
var endEvent = ‘mouseleave’;
}Removing the if statement altogether would work too I assume. Question is, will this break anything else? Seems fine on desktop so far!
Perhaps someone with more JS experience can give us more insight.
-
-
AuthorPosts
- You must be logged in to reply to this topic.