-
AuthorPosts
-
October 6, 2023 at 4:55 pm #1421674
Hallo,
i have added an area image in each pag but the shop pages in woocommerce have no such option. How can i add an image and breadcrumb here? I think it should be possible by functions code.
Andy ideaS?October 7, 2023 at 7:44 pm #1421772Hey Sebastian,
Try this solution.Best regards,
MikeOctober 7, 2023 at 8:07 pm #1421775Hi Mike,
i supposte that is not thta what i need. I am using the slide block for area image on each page and below the breadcrumb .. here a screenshot
https://ibb.co/LCXLWX3I know that is it also possible to add the function code for each page like blog or woocommerce. Your description is using the page description which insert the image into the content area, not below header.
- This reply was modified 1 year, 1 month ago by xeovision.
October 8, 2023 at 2:29 pm #1421809Hi,
Thank you for the link to your site, I added this function in your child theme functions.php:function add_custom_header_image_to_products() { if ( is_product() ) { ?> <div class="single-header-image"><br><br></div> <div class="breadcrumbrow" style="background-color: #f8f8f8;"><div class="container" style="padding-top:3px;"> <?php echo do_shortcode('[av_breadcrumbs]'); ?></div></div> <?php } } add_action( 'woocommerce_before_main_content', 'add_custom_header_image_to_products', 10 );
Please check the product page linked below.
Best regards,
MikeOctober 8, 2023 at 3:16 pm #1421814MEGA .. many many thanks, search for such solution so long.
Last question here, would it be also possible to place it inside the overview page, the first place on main link? Area image is added in backend but not shown in front end.October 8, 2023 at 3:21 pm #1421815Hi,
I believe this was another thread and I just did it, please check the link below.
If this is not what you mean, please link directly to the page, and please explain in detail.Best regards,
MikeOctober 8, 2023 at 3:48 pm #1421819Yes, that was bcs the link color in main menu disappeared in the detail pages when it was not set as blog page. But works now, thx .. what change have you made? I need to set this change also in the Gallery page
October 8, 2023 at 5:16 pm #1421826Hi,
Please see the explanation here.
I believe that your “Gallery page” is actually the woocommerce shop page so to add the image and shortcode breadcrumb there you will need to edit the new function that I added above.
You would add is_shop() I did this for you, please check.Best regards,
MikeOctober 8, 2023 at 6:06 pm #1421832i see… ok.
Many Thanks Mike for supportOctober 8, 2023 at 6:24 pm #1421835Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Add area image to shop pages’ is closed to new replies.