Ibby
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Adding add-to-cart Ajax after replacing loopI’ve tracked down the parent theme hook that generates the add-to-cart button. The corresponding code is as follows:
if ( ! defined( 'ABSPATH' ) ) { exit; } global $product; echo apply_filters( 'woocommerce_loop_add_to_cart_link', sprintf( '<a rel="nofollow" href="%1$s" data-quantity="%2$s" data-product_id="%3$s" data-product_sku="%4$s" class="%5$s btn btn-just-icon btn-simple btn-default" title="%6$s"><i rel="tooltip" data-original-title="%6$s" class="fa fa-cart-plus"></i></a>', esc_url( $product->add_to_cart_url() ), esc_attr( isset( $quantity ) ? $quantity : 1 ), esc_attr( $product->id ), esc_attr( $product->get_sku() ), esc_attr( isset( $class ) ? $class : 'button' ), esc_html( $product->add_to_cart_text() ) ), $product );Is it possible to simply remove the esc_attr that evaluates the quantity?
- This reply was modified 9 years, 3 months ago by Ibby.
Forum: Developing with WordPress
In reply to: Woocommerce Flat Shipping using discounts by order totalThank you Steve.
In the end, I managed to solve it myself.
Turns out I was attempting to reinvent the wheel!
Forum: Plugins
In reply to: [Smart Slider 3] Responisve IssueThank you very much, that fixed it!
I can’t believe I missed it. π
So does the fluid responsiveness not work if the main page container is aligned to a side? Interesting to note for the future if that’s the case.
- This reply was modified 9 years, 8 months ago by Ibby.
Forum: Plugins
In reply to: [Smart Slider 3] Responisve IssueForum: Plugins
In reply to: [Smart Slider 3] Responisve IssueHi Ramona,
Thanks for taking the time to get back to me.
Yes, I’ve just checked and the responsive mode is set to ‘auto’ and both upscale and downcale are enabled. The slider height is set to 0-3000px and the max width is set to 3000px.
For some reason, as I resize my browser window, the slider doesn’t fluidly resize, but at certain points, it jumps to a certain size. I have a hunch that this is because of the ‘maximum screen width’ setting of the general slider settings (so it seems to be resizing based on the widths defined as ‘desktop portrait’, ‘tablet portrait’, ‘mobile portrait’ etc.
Forum: Plugins
In reply to: [Contact Form 7] DIV Styles not AppearingHi,
Sure, you can find the link here.
Forum: Plugins
In reply to: [Contact Form 7] DIV Styles not AppearingHi William,
Thanks for your reply and help on this issue, it is driving me a bit bonkers!
I appreciate your advice above regarding my markup. One thing I would like to point out is that the classes that I am using are unique class elements targeted only at the divs in my contact form. If what you said is the case, shouldn’t the styles show up in debug? When I inspect the div elements using firefox dev tools, although the divs show up with the correct classes, there is no sign of the styles I apply to them not even as overridden styles. They’re just simply not there.
I have read through that link for stlying CF7 forms multiple times, but I can’t find anything in there that suggests that styling div elements in style.css shouldn’t be applied in the contact form.
Or am I completely misunderstanding something?
Forum: Hacks
In reply to: jQuery ScrollifyThank you bcworkz. I was looking for a quick fix, but I guess there really is no working around it.
I’ll try it.
Forum: Plugins
In reply to: [Page scroll to id] [ps2id] Manual OffsetBrilliant, thank you!
Is there any way to apply to individual section selectors? I’d like to apply offsets to specific sections (as they are different heights).
Thank you very much for the support, by the way. My client is very happy with the site and in many ways this is all down to your work!
As a small suggestion, it would be really good if mousewheel autoscroll was added to the WP plugin by default. Do you have any plans to do so?
Forum: Plugins
In reply to: [Page scroll to id] Mouse Wheel ScrollPerfect!
It worked flawlessly. I’m a bit confused why I needed to duplicate the .next() and .prev() tags though. Could you please explain why this is the case?
I’m still quite an amateur at JS so please bare with me.