S
S
Sherbatiy2016-09-25 22:58:26
Programming
Sherbatiy, 2016-09-25 22:58:26

Why is the layout crawling (Wordpress+Woocoommerce) when opening the showcase for the first time?

When you first open the woocoomerce showcase page, product cards are not correctly arranged.
Products display
incorrectly Products display incorrectly with DevTools enabled Refreshing
the page or resizing the screen via the toggle device toolbar in Chrome causes products to link correctly.
Correct display with DevTools on
Tested in different browsers and on mobile devices, the problem is relevant.
I use wordpress + woocoommerce, and as a PageBuilder template - Themify
Link to showcase
The screenshots show that if the card is not displayed correctly, the height of the list of elements = 331px.
And after updating 661px.
But I don't understand how to use this information and where to look for the problem.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Mercury13, 2016-09-19
Gleb @

This is on your computer. L2TP is the simplest form of tunneling and was once popular in home networks. Local traffic was free, the Internet was expensive, and it was necessary to make the Internet turn on and off at the request of the user. To do this, the user had two connections: a local network and a VPN, and the routing table indicated which traffic went to the local network and which went to the VPN.
What our L2TP is doing now, in 2016, I don’t know. Maybe, indeed, someone on your computer was hiding from the ILV ... True, for this you still need to enable IPSec, 12 years ago this simply did not exist.

A
Alexander Sisyukin, 2016-09-25
@Sherbatiy

ul element is worth

<ul class="products masonry-done" style="position: relative; height: 238.3px;">

and inside it are li
<li class="product-category product first" style="position: absolute; left: 0px; top: 0px;">
  <a href="http://lense26.com/product-category/acuvue/"><img src="http://lense26.com/wp-content/uploads/2016/07/acuvue-oasys-12pk-348x244.jpg" alt="Acuvue" width="348" height="244">		<h3>
      Acuvue		</h3>
    </a></li>

and since they fell out of the stream, the block does not expand automatically and remains as your plugin calculated it in my resolution, it was height: 238.3px with the firebug turned on, it was 173. as a way out, do not position li as an absolute, make it relative (as the fastest solution) and arrange as you please. Accordingly, with a relative, they will fall into the stream and the problem of collision will disappear.
ps
as a temporary gag
.product-category.product {
  display: inline-block;
  float: none !important;
  left: 0 !important;
  position: relative !important;
  top: 0 !important;
 vertical-align: top;  // в других разрешениях были на одной линии товары
}
.products.masonry-done {
  height: auto !important;
}

554b5fa252844d63a2358a7b839692f3.png

D
Denis Petrovsky, 2016-09-28
@Redjek

It's a style conflict between theme and voo

P
Pavel K, 2016-09-25
@PavelK

Maybe one of the plugins makes additional changes to css through JavaScript?

O
ommunist, 2016-10-03
@ommunist

woocommerce.css is loaded with the theme css, you don't need either of them. Define styles in one place, and disable the loading of the second, otherwise there will be no hassle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question