1. What’s the easiest way to hide related products on a single product page?
2. I’d like the images on single-product pages to be a bit smaller. The product images currently have a class of .four.units.single-product-main-image.alpha. I was playing around with the developer tools, and I changed the class to .three.units, which looks a lot better for my site. How can I make that permanent? found the answer here: https://kriesi.at/support/topic/product-image-size-6/
3. This question is an offshoot of question 1; my related products don’t seem to have anything to do with the product being viewed. Do you know how WooCommerce determines which products are related?
This topic was modified 12 years, 2 months ago by taliwalt. Reason: Located the answer to one of my questions
This is the correct and intended effect. What the image size selection does is let you choose what image size gets loaded in to that container. It will always be 2/3 the width of the content area because its in a 2/3 column.
If you want to change the size the image is viewed on the page then you would need to change its container size.
Yes, there is something interfering, a style declared by the theme, but you can disable it if you want, open css/base.css and look for the images section, around line 147:
I have problem with my ajax portfolio. My page is http://tinyurl.com/lzxgk7q. So I have 3 columns ajax portfolio when i click on first thumbnial we see opening portfolio big image with thumbnial above . Image size in gallery is 650×805 but looks not good poor quality, When you click on it in lightbox that image looks very good (size is extactly the same)
And second problem after upgrade wordpress when you resize window to 320px lightbox looks not good
1. The CSS distorted the image dimensions. I’m not sure why because I check the dimensions in Photoshop and they are proportionally correct. I even changed it to another proportionally correct dimension 200×80 and the same problem occurs.
2. Why would I have to add Quick CSS? Every time I am going to make an image change I need to add Quick CSS? Is there a way to get it to work the way it is designed to work in the layout builder? Is something interfering with it working correctly without CSS?
Thanks, Jas
This reply was modified 12 years, 2 months ago by Jasmer.
HI again
trying something out on this page: http://thisistouch.com/background-test/
but I want the text blocks to be at the top of the image
instead of the middle – what am I setting wrong?
thanks
The two image links aren’t working but from your description its because the resolutions are different. So the display of the content is different between the two devices.
Hello there! I have painstakingly gone through to add a featured image to all of my blog posts (back to 2006). However I can’t get them all done. I have several questions if you can help in Enfold theme (which is awesome-tastic by the way)
NOTE: I use a child theme and would love to make these changes in Quick CSS if possible:
1. Can i replace the current default image (white with an arrow) with my own image when NO feature photo has been selected? I want the site to look cleaner and branded.
2. Can I turn off the lightbox or click on image to increase it’s size? This is only for FEATURE image ( I have disabled other photos from reading posts here).
3. How can I have the featured photo underneath the header? So it would be
Header Title
Date / category / author
Featured Image
You can change the grid wrappers for the image and summary in config-woocommerce>config.php. Look for:
#
# wrap single product image in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_image_div', 2);
add_action( 'woocommerce_before_single_product_summary', 'avia_close_image_div', 20);
function avia_add_image_div()
{
echo "<div class='four units single-product-main-image alpha'>";
}
function avia_close_image_div()
{
global $avia_config;
$avia_config['currently_viewing'] = "shop_single";
get_sidebar();
echo "</div>";
}
#
# wrap single product summary in an extra div
#
add_action( 'woocommerce_before_single_product_summary', 'avia_add_summary_div', 25);
add_action( 'woocommerce_after_single_product_summary', 'avia_close_div', 3);
function avia_add_summary_div()
{
echo "<div class='eight units single-product-summary'>";
}
The div class wrapper is what gives the content its width within the layout in units that equal a total of twelve. So you can change the image from being four units and instead make it six but you would then also have to change the summary unit class name from eight to six as well so the total still equals twelve.
How can i have the background image on the color section move to left only when it’s on a tablet device portrait. Basically just need to see more of the background image in the color section.
Fantastically flexible theme! I encountered one issue though. I see that full screen mode for Royal Slider was able to be fixed by rectifying a z-index issue:
.html_boxed #main, .unit, .units, .content {
z-index: auto !important;
}
This works on a normal page, but not from within tabs. The same issue of the image getting trapped within the tab also happens with other plugins (leaflet, etc.) that use native full screen mode. Could just put the galleries on separate pages, but this is a peculiar issue that might need debugging.
Also, from within tabs, the width is initially wrong, but when resizing the window, it fits. Wondering if this hinges on when the function is called.
Your child theme style.css has a missing bracket so all the css after it is not actually being executed. You can, in the future, inspect your color section with dev tools in the browser and if the css isn’t showing as effecting the element then the css file has an issue.
In your case, look for this block:
/*fix header dissapearing on ipad */
@media only screen and (max-width: 1024px) {
/* Add your Mobile Styles here */
h1 {
font-size: 24px;
padding-right:30px;
}
It needs to have a closing bracket on the media query.
It isn’t something that has ever come up and while it seems handy I can’t see a real need for it since it would be better in almost all cases to set it up manually. Even if the user is an extremely active partner they would be putting up a few videos a day and the screenshots/featured image would be the only thing that would need to be created. Then its just adding a new post to WordPress with that featured image and a link to the video.
You can add the idea for support of a specific plugin to the feature request topic however.
I am having a problem with a 3 column portfolio – all the images are exactly the same size when the portfolio is set to 4 columns, but when I choose a 3 column portfolio, some of the image have a different height and are not cropped – how do I change this? Or what are the exact measurements that my pictures should have so that I can crop them manually?
No, it’s not possible at the moment, the only way to do this custom sliders would be to use LayerSlider, if you need some insight, please refer to this video: