Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    • This topic was modified 1 year ago by xeovision.
    • This topic was modified 1 year ago by xeovision.
    • This topic was modified 1 year ago by xeovision.
    • This topic was modified 1 year ago by xeovision.
    #1421772

    Hey Sebastian,
    Try this solution.

    Best regards,
    Mike

    #1421775

    Hi 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/LCXLWX3

    I 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 ago by xeovision.
    #1421809

    Hi,
    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,
    Mike

    #1421814

    MEGA .. 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.

    #1421815

    Hi,
    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,
    Mike

    #1421819

    Yes, 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

    #1421826

    Hi,
    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,
    Mike

    #1421832

    i see… ok.
    Many Thanks Mike for support

    #1421835

    Hi,
    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add area image to shop pages’ is closed to new replies.