In some of my portfolio items, on the main grid, some items have a grey line showing and others do not. It looks like it’s the border but moved up. And at first I thought it was the length of the title because for the first couple of rows, items with a long title that went onto a second line didn’t have it, and short titles did. However scrolling down further I found several single line titled items with no grey line. All the images appear to be the same size.
So now I’m stumped. What are we doing that results in some items showing a grey line and some do not. We don’t mind if it shows or it doesn’t. We just want them all to be the same.
Thanks in advance for any insights you can offer.
Hey Enfold
I am about to build a graphic “value-house” of flip boxes, but I can not adjust the height of the flip box, I made for testing.
I am using a background image, which the flip box crops vertically.
I’ve tried all options available for adjusting the height but the flip box do not respond…
Would you by any chance look at it?
Data in private.
Best regards
PS: “Sektion Mindesthöhe
Definiere eine Mindesthöhe für den Abschnitt. Der Inhalt wird vertikal innerhalb des Abschnitts zentriert”
Your solution forces the user to read out the height of the image to set the height of the section otherwise he wont see it.
You consider this beeing a good usability?
Hi
“Would you mind providing a screenshot of the layout you’re trying to create?”
What was unclear about my question?
“How to make a single image full width?”
marcus
i understand – but what about showing me the demo-page what was the base of your page.
f.e.: https://kriesi.at/themes/enfold-law/practice-areas/#av_section_2 – and my question if it is a background-image or as an image element?
Hey Ismael
That looks like it works nicely! Thank you very much!
The steps to get this working for a new person coming across this long thread:
If using the Enfold’s Advance Layout Builder (ALB) then the following needs to be done to get a single product image to change on hover. This will need to manually be done for each image and can not be done automatically from the approach Ismael showed.
————–
Go to the product image in the backend.
Click the main image and go to Advanced -> Animation -> Parallax Rules and Image Hover Effect and switch it to “Fade to another image” a little further down select which image it should switch to. Save the product and check the frontend. Hovering over the product image should now switch to the image that was selected.
——
Ismael I got one more thing to ask…
Can you also update the older thread showing the code needed? So that anyone whom comes across it can see the code snippet needed to get the general WooCommerce hover product (single, shop, archive) switch to another image.
Thank you again!
can you post the link (of your page) or to the law demo page based on your page attempt?
That pic in your 2/3 column is placed as background-image or as an image element?
In general, if an image is to respond to screen width and completely fill the surrounding container, the container height must match the image’s aspect ratio.
I don’t know if your company has to comply with the GDPR; I would prefer the self-hosted fonts option. Not least because then I can be sure that I am using woff2 fonts (no idea if it is not just ttf via Google). woff2 can be used in all common modern browsers and is much smaller in data volume due to Brotli compression.
If your question only belongs to the heading element, the DOM structure is as shown in the image above. And the CSS ruleset will then work as described above.
Can I see the page in question? – and that heading you like to have as Sacramento Font.
Hi,
Thanks for the update. Please try replacing enfold/framework/php/class-responsive-images.php with this file: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_7_0/framework/php/class-responsive-images.php
Best regards,
Rikard
OK thanks, then the Isotope script is not very logically structured if it is not sorted by date, there are not different sized images but one large one and two small ones next to it and vice versa.
Hey bur2000,
Thank you for the inquiry.
Unfortunately, it’s not possible to control the order of the items in the grid, especially when the size of the images varies. The sorting is dynamically calculated by the Isotope script, which is also used to sort the items by category. Have you tried using multiple Masonry elements?
Best regards,
Ismael
Hi,
I see there is no option to which image it should switch to though.
You can upload the image using the Alternate Fade Image option. Please check the screenshot below.
View post on imgur.com
We selected a temp image from the Media > Library.
View post on imgur.com
Best regards,
Ismael
Hey Aram,
Thank you for the inquiry.
We temporarily disabled the Enfold > Performance > File Compression settings, and this seems to have fixed the issue with the blog page. We are not yet sure why the background image of the color section is not displaying. It worked fine on a test page we created (see the private field).
Please try to remove the current color section and delete the related background image from the Media > Library, then add the color section again and re-upload the image. Let us know how it goes.
Best regards,
Ismael
Hi,
Try to add this code in the functions.php file to add a custom sales badge above the product image.
add_filter('woocommerce_sale_flash', 'avf_woocommerce_sale_badge', 10, 3);
function avf_woocommerce_sale_badge($badge, $post, $product) {
if ($product->is_on_sale()) {
return '<span class="av-custom-sale-badge">Sale!</span>';
}
return $badge;
}
Then apply this css code:
.av-custom-sale-badge {
position: absolute;
top: 10px;
left: 10px;
background: #7E9A47;
color: white;
padding: 5px 10px;
font-size: 14px;
font-weight: bold;
border-radius: 5px;
z-index: 10;
}
Best regards,
Ismael
Hey ausgesonnen,
Thank you for the inquiry.
That is the default border of the color section in the footer page — not a bug. To remove the border and add spacing below the first color section with the background image, you can add this css code:
.footer-page-content #av_section_3 {
border: 0;
}
.page-id-31 #av_section_1 {
padding-bottom: 50px;
}
View post on imgur.com
Best regards,
Ismael
Hi, Please help me with the issues that I face after updating the enfold.
Color section background image is not showing (cache is cleared and incognito browser is used).
There are unnecessary symbols on blog page and also in Advanced Layout Builder.
Thank You in advance!
Hi Ismael
Thank you.
In the steps that Mike added I stopped after adding the code snippet to a code snippet plugin.
I now went to this product: https://labhuset.no/product/fiocchetti-plasma-freezer-10-20c-glass-door/ and in the backend ALB I clicked the main image and went to Advanced -> Animation -> Parallax Rules and Image Hover Effect and switched it to “Fade to another image”. I see there is no option to which image it should switch to though.
Went to check out the product on the frontend and noticed no hover effect.
Hallo,
ich habe Probleme mit der Darstellung des Portfolio Masonry.
Ich arbeite mit Landscape- und Portrait-Tags um einige Bilder größer anzuzeigen.
Alle Portfolio featured Images sind in einer Größe angelegt.
Das Problem ist, das die Sortierung nach Datum nicht stimmmt.
Ich möchte 2 Spalten, mit einem grosses Bild und daneben 2 kleine untereinender.
In der nächsten Zeilen möglichst umgekehrt – und genau dies macht die Taxonomie leider nicht.
Die großen Bilder setzt er alle untereinenander, nicht versetzt.
Enfold setzt dazwischen einfach andere Bilder (älteren Datums) oder er hält die reihenfolgen der großen Bilder nicht ein.
Ich habe alles ausprobiert auch mit Seitenreihenfolge, bin aber mit meinem Latein am Ende. :-)
Gibt es Hilfe?
———–
Hello,
I have problems with the display of Portfolio Masonry.
I work with landscape and portrait tags to display some images larger. (double size)
All portfolio featured images are set up in one size.
The problem is that the sorting by date is not correct.
I want 2 columns, with a large image and next to it 2 small ones, one below the other.
In the next row, if possible, the other way round – and unfortunately this is exactly what the taxonomy does not do.
He places the large pictures one below the other, not offset.
Enfold simply puts other images (older dates) in between or it does not maintain the order of the large images.
I have tried everything, including the page order, but I am at my wits’ end. :-)
Is there any help?
-
This topic was modified 1 year, 1 month ago by
bur2000.
-
This topic was modified 1 year, 1 month ago by
bur2000.
hello,
how do I achieve 3 images over 2 image all centered in the window, I have attached an image. We are looking for this layout to stay 3 over 2 always, not expanding to 2 or collapsing to 1.
It needs to have an full width image background as well.
Thank you
Hi,
I want to create a gallery with Custom Field image. If I insert more images into the field ( like: {wp_custom_field:_thumbnail_id}, {acf_field_67cffccfbfe35:Anzeigenbild 1}, {acf_field_67cffd4abfe36:Anzeigenbild 2}, {acf_field_67cffd61bfe37:Anzeigenbild 3} ) there are displayed any images, but not the images supposed to !! What am I doing wrong here?
Thank you for helping
A small black line appeared under the content box above the footer. what is this? How can I achieve, that instead of the black line, that there is some space there instead, so that the background image is visible between footer and content box for 20px? https://imgur.com/a/hUJzVcs
Hello, the background image in the color section should not be visible on small screens. To achieve this, I have made 2 color sections ad set the element visibility under responsive accordingly, one for large creen, one for small screens. For the small screens the background image is not included anymore. Yet it still shows when I look at it on my mobile. Other changes like text changes show up. Why is the image still there?
Hey dradoering,
Thank you for the inquiry.
Have you done any page speed optimization to the site? If you haven’t, please review the following articles:
— https://kriesi.at/support/topic/pagespeed-100100/
— https://gtmetrix.com/wordpress-optimization-guide.html
You can start by installing a cache plugin such as WP Super Cache or WP Rocket and compressing the images. The LCP should improve once you’ve completed the steps above.
Best regards,
Ismael
Hey ballindigital,
Thank you for the inquiry.
It looks like you have already applied the adjustments. If you’d like to increase the image size further, you can add this css code:
#top.single .single-product-main-image {
width: 50%;
float: left;
margin-right: 50px;
overflow: hidden;
padding-bottom: 50px;
}
#top.single .product div.images img {
width: 100%;
height: auto;
max-height: unset;
margin: 0 auto;
}
Best regards,
Ismael
Hi,
Thank you for the info.
In the style.css file, you have the following css rules that target specific widgets using #custom_html-2 or #custom_html-3. These rules don’t apply to the EN version because the widget there has a different ID, #custom_html-4.
body #header_main #custom_html-2 .col.btn a, body #header_main #custom_html-3 .col.btn a {
display: block;
background-image: linear-gradient(#d9c596, #b39b60);
padding: 0 25px 0 25px;
color: #050607;
font-size: 14px;
font-weight: 700;
border-radius: 25px;
max-height: 40px;
line-height: 40px;
text-transform: uppercase;
margin-top: 5px;
}
Please update the css to include the widgets in the EN version.
Best regards,
Ismael
Hey!
Thank you for the update.
Please note that the modification from the previous thread is for the default editor and the main/featured product image. It’s not going to work when the Advance Layout Builder (ALB) is active. This is still possible with the ALB, but you’ll have to use the Image element. Go to the Advanced > Animation panel, then set the Image Hover Effect settings to Fade to another image.
Let us know if you need additional info.
Cheers!
Ismael
Hey Mike
Thank you for the code walk through here but it is not what I have been asking about.
1.
The client does not want the gallery image to show on the frontend.
2.
The client wants to be able to hover the product image and have it switch to the first gallery image which is not seen on the frontend. The gallery image is only added to the backend product screen.
They want it seen like this: https://www.fiocchetti.com/en/products/bloodbanks-4degc?e=275 (on the Single Product image screen.)
There is this older support thread here: https://kriesi.at/support/topic/change-single-product-image-on-hover-with-gallery-first-image/
If Ismael is around can he add the needed code to the older support thread and also add the needed code in this thread?
-
This reply was modified 1 year, 1 month ago by
SHR Design. Reason: Adjusting
Hi,
How do I adjust the image size here so that the actual image fits perfectly?
As you can see in this example, the image appears to be smaller than the box.
View post on imgur.com
The red areas that I’ve highlighted is the wasted space.
Our product images are 600 x 600.
Thanks,
Harvinder
Hi,
Is there a way to align the categories and products so that the images and buttons are aligned instead of staggered like this?
I would like the buttons (add to cart and shop now) to be next to each other.
View post on imgur.com
Thanks!