I have a problem with the page jumping down when product variations are loaded (i noticed it scrolls to the end of the container).
I tried disabling all plugins + all custom CSS I made. The page still jumps down randomly when the images are loading on attribute change.
To encounter this issue you have to scroll down a little bit. It only happens when the site isn't full on top. If you scroll down to mid of the site (the right column is sticky) and then choose variation it will do like in the below video:
https://www.loom.com/share/ea6fed87d0394c7eb6ea0effd02836d3
Is it possible to add a function, that when the product images are loaded the site automatically scrolls to the top? I thought about something like window.scrollTo(xCoord, yCoord); (scroll to top)
Thanks in advance, I have no idea what could I do now.
Related
I have a problem with Sticky Add To Cart, i have Astra theme and Woocomm rce installed. Namely, after scrolling down the page, the bar appears, but when I scroll to the very top of the page, the bar does not hide. What could it be caused by? I have to refresh the page and only then Add to cart disappears. I noticed that if I make a popup in Elementor that pops up the same way as the Add to cart sticky (when scrolling), a similar problem occurs. The bar appears, but when moving to the top of the page, the bar does not disappear. Thanks in advance for your help! Because I’m starting to give up. The page address is: HTTPS://warmener.pl
Sticky Add to cart will dissapear when i scroll to the top.
sticky-add-to-cart.js(unminified) and sticky-add-to-cart.js(minified) both files have a code line to get the button offset.
This is that line document.querySelector( '.product .single_add_to_cart_button' ).offsetTop
Right now, it's returning the value for some reason, maybe conflicting with elementor HTML tags or maybe because of some other reasons.
To fix the issue you'll have to use getBoundingClientRect().top instead of using offsetTop
so you'll have to modify both files and replace
document.querySelector( '.product .single_add_to_cart_button' ).offsetTop
with this next line:
document.querySelector( '.product .single_add_to_cart_button' ).getBoundingClientRect().top
It will solve your issue.
Note: Purge/Clear the cache after file changes and force reload the page then test.
I'm building a website for a client in Wordpress using the Avada Theme and for some reason, my nav bar anchor links are not working at all on mobile (when I click on one of the items in the dropdown either using Firefox's responsive view or my actual phone, it just goes to the top of that page, not to the section where the ID is), even though it works fine on desktop.
This is the website in question: http://harcourt.epicdev.co.za/
It's the items under What We Offer that I'm trying to get to work, and unfortunately the Avada forums are no help whatsoever.
Thanks in advance!
in avada you need to add an element anchor to the position where it should scroll to and give it a name.
Avada have this ability so you can adjust the exact position of an anchor accordingly to your needs. simply add the anchor element into your page wherever it should scroll to on click in menu, and its done. works in every browser. even IE.
i use the same procedure in my crypto lexikon.
I'm unsure if this question is relevant on stackoverflow, but I've looked almost everywhere else.
I'm looking to create a a product display, containing 6 products, on the right hand side of a picture like this example.
I'm hoping some of you have some know-how you'd like to share with me on this.
Thanks in advance
A.P.
The easiest way to do that is add a left sidebar to your shop page, which can be typically done through your theme, and then add an image widget to that sidebar. The last thing to do is change the CSS code of your shop to make the whole page full-width and then make the sidebar 50% of the parent div.
This approach has the advantage that the sidebar is showed after the products in mobile mode (by default), so mobile visitors will first see the products.
I want to create a landing page on which users have to scroll down to then display the first page of the site.
Similar to this: http://www.georgeandharrison.nl/
As you can see, the nav bar is hidden until you scroll past a certain point. I've tried googling about for it, but in all fairness, i have no idea what this technique is called.
I think this is what you are looking for: Link
The header will scroll down at a certain point
I'm making a WordPress website with WooCommerce and I need to resize the product thumbnails in the display products (category) page.
In particular I have this situation:
And I'd like to have a page like this:
Is it possible? I've checked that the CSS class should be img.attachment-shop_catalog.wp-post-image and I've tried with -webkit-transform:scale(1.2); but my product image thumbnails overlap. It's not a problem of WooCommerce images settings (the "force hard crop" option is disabled), so I think I have to add a custom CSS. Could you help me to fix this?
Thanks in advance!
I would have checked all surrounding classes cause it is probably limited by them, or there is padding-right set on outer container.
I would have tried to find (using Chrome possibilities) and try first to locally resize them and product container in CSS.