Here you find the instructions:
Here you find the instructions:
Almost.
since I have hundreds of products and more than 20 producers (brands), actually instead of a fixed image link, I need to have a piece of code that retrieves the brand logo image. (I think something like the code you’ve used to retrieve the brand logo in the single product page sidebar). This way each product should have it’s own brand logo image as swap image.
Hi Eva, thanks for the reply.
Is there a way to do that with a bit of PHP? I have hundreds of products and do that for each single item could take a lot of time.
Something in \woocommerce\content-product.php ?
Unfortunately I can’t provide FTP credential, is a shared server of one of my clients, I’m not allowed to share credential. I can give you WP credential, not FTP. Anyway as already stated this is not an issue related to my site or this specific server, your demo site has the same exact issue, so I don’t see the point to give you FTP access.
Thanks
Simply browse the site with safari and try to scroll full up, in order to get the classic spring effect in safari. You should be able to see this issue. Actually you get the same problem even on your demo site as well. I think a rule in the CSS to hide the mobile menu until in the right dimension should be added.
Eva the code you suggest for description only works for Categories, not for Brands. (I’m using the Royal theme). Is there anything I miss?
Hi,
I’ve used the code you suggest in Royal theme, and it works. But It doesn’t work for Brands, only categories description is displayed (I guess it’s due to the shortcode ($cat->description) that probably works only for categories).
So, is there any shortcodes that retrieves both category and brand description?
Or, could it be possible (for the royal theme) have a “Custom header” for brands, like the one we have in categories?
Right now, in the page layout options when we choose the breadcrumb style parallax or “with background” we can’t choose which image will be used as background in the heading of the page. This image is actually selected from the 8theme theme options.
I would like to change the behaviour of the theme, adding a snippet that should read the featured image for the page currently displayed, and use it as the background of the heading section. This would allow to have different background for each pages.
I guess the easiest way would be to have a bit of code that retrieve the featured image url
something like
if ( has_post_thumbnail() ) {
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
and create a css rule
something like
echo ‘<STYLE type=”text/css”>
.bc-type-3, .bc-type-4, .bc-type-5, .bc-type-6 {
background-image: url(‘. $large_image_url[0] .’);
}</STYLE>’
Ok, actually I want to modify the way the heading background is selected. Basically I need to implement a php that set the CSS property of “.bc-type-5, .bc-type-6 ” to something like: background-image= the_post_thumbnail();
Are you sure? on that file I can only find code for what is inside the div “header-wrapper”, while I think I should modify the content of the div “.page-heading”. Isn’t it?
oh. I see.
Since I would like to have a custom header background in an easier way, I think I should modify the code in order to take the featured image of the page, instead of the one chosen in the theme settings. Could you tell me which file is responsible for the header?
is it possible or not?
Unfortunately I can’t give you FTP credentials.
Yes, you’re right, I’ve changed the way the image is displayed and now it’s cropped and zoomed even in firefox. Is there a way to have the image shown right?
OK, I’ve found a solution for the first issue, now the size guiding appears in both languages, but still can’t find a way to show 2 different images, one for each language.