Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17358

    Hi,

    I would like to start with a slider or image at a product archive page but nohting worked. http://www.superfoodkitchen.nl/shop/

    Can you help me? Thanks!

    Best regards, Anita

    #95185

    Hi,

    Try to use the Template Builder then supply the template on the shop page. Don’t forget to add the post/page content or the Product element.

    Regards,

    Ismael

    #95186

    Hi Ismael,

    Unfortunately that is not working. The slider and the right sidebar are not coming up. So I have to use default, than the right side bar is working. If I choose for a normal page instead of a product archive, I will have a slider and right sidebar, but then the price filter will not work. Woocommerce says that the price filter only works in product archives…. Difficult, what to do?

    This is a normal page: http://www.superfoodkitchen.nl/categorieen/superfoods-rawfoods/ (in the top menu)

    This is a products archive: http://www.superfoodkitchen.nl/product-categorie/hoofdcategorie/superfoods-rawfoods/ (in the right menu when you use the shop page: first http://www.superfoodkitchen.nl/shop/)

    Best regards

    Anita

    #95187

    Unfortunately it’s not easily possible to add a dynamic slideshow or images to the archive pages but you can “hardcode” one image into the archive content container. Open up config-woocommerce/config.php and search for following function:

    avia_woocommerce_before_shop_loop()

    .

    You can insert your image after following line:

    echo "<div class='template-shop content'>";

    - eg replace it with:

    echo "<div class='template-shop content'>";
    echo '<img src="http://my-image-url" alt="alt text" title="image title" />';

    and change the src, alt and title attribute values.

    #95188

    Hey, it does not work, big error. If you can think of something else, please let me know. I think that the shopping pages are a bit boring or monotonous. I appreciate your help, thank you!

    Best regards, Anita

    #95189

    Hi!

    I corrected the code :)

    Best regards,

    Peter

    #95190

    Hi, you put some ‘; after the code? I already tried that :-( , not working. With this code I have on every shop page the same picture? I would like to have a different picture on every shop category. Well, let me know if there is a solution. I also asked WooCommerce, maybe they will come with an answer. I will let you know. Success!

    Anita

    #95191

    Hey!

    Yes, this code will just add the same image to all shop archive pages.

    Best regards,

    Peter

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘slider / image at product archive page’ is closed to new replies.