- This topic has 27 replies, 4 voices, and was last updated 7 years, 8 months ago by
Tom.
-
AuthorPosts
-
July 10, 2018 at 12:25 pm #620519
Nikolaj
hello Tom,
last year you helped me with getting to show sideheader image on a woocommerce product page but now after updating your plugin and woocommerce it’s gone?Do you remember what we did to enable it?
This is critical to my site so hopefully you can help…
Nik
July 10, 2018 at 4:31 pm #620663David
StaffCustomer SupportHi there,
i can’t see this in your Topics, if it was a topic you raised here then click the Forum Profile button at the top of the page and it should be listed there.
If not can you provide some more detail regarding the ‘sideheader(?)’
July 10, 2018 at 4:46 pm #620670Nikolaj
the sidehead for giving a post (in this case a product) a sideheader image…
July 10, 2018 at 6:20 pm #620718Leo
StaffCustomer SupportLike a page header on the product page?
Would this help?
https://docs.generatepress.com/article/page-header-global-locations/#post-types-%E2%80%93-archivesJuly 12, 2018 at 6:43 am #621930Nikolaj
no not quite – I just want the ability to add an image (just like featured image) at top of a products page; New product = new image. Do you have a filter for enabling that? Tom helped me last year…
July 12, 2018 at 6:49 am #621931David
StaffCustomer SupportHi there, we can’t find any record of that topic, the Page Header option that Leo refers to sounds like the easiest method. It can be set to just display the products featured image.
If not can you remember whether the method provided used a PHP snippet?
July 12, 2018 at 6:51 am #621935Nikolaj
how to apply David’s method – in the backend or through the ‘page-header’ in admin?
Yeah I believe it was a php snippet…
July 12, 2018 at 7:28 am #621967David
StaffCustomer SupportPageheader:
1. Activate Page Headers in Dashboard > Appearance > GeneratePress. This will add a Page Header Menu to the dashboard.
2. Page Headers > Add New.
3. Go to content panel (don’t add an image). Add some content. use an empty element like<span><!---empty---></span>so the header displays.
4. Select Add Background image toggle, set your Containers to contained and add Top / Bottom Padding to suit your image height requirements. Then save
5. Page headers > Global Locations > Post Types – Single > Products and assign the header you just made.July 12, 2018 at 7:33 am #621973Nikolaj
no I want a specific image for each specific product; So when adding an image in the ‘sideheader’ menu below product detail I want it to be shown at the top of the productpage – just like a featured image does in a post.
http://www.casacoolkarma.dk/vare/svanen/
It worked before upgrading…
July 12, 2018 at 7:52 am #622067David
StaffCustomer SupportOk, little confused, so checked the email you sent to support, the image you provided for the ‘sidehoved’ is the old page header.
In GP 1.6 Page Headers were moved to the dashboard as said above, all the settings remain the same.
To assign them to an individual product, in the editor you need to look for the Layout meta:
July 12, 2018 at 7:59 am #622078Nikolaj
but I don’t want to add a sideheader! I want to add an image to the top of a products page throught the ‘sidehoved’ that has an image tab.
Besides using the method you suggest doesn’t work either; Please let Tom have a look at this – he KNOWS exactly what I mean and how to make it happen;)))
Nik
July 12, 2018 at 8:30 am #622108Nikolaj
just for fun when adding this img tag:

to the single-product.php file – the image is shown; Now I just need to make the path dynamic so it’s picked from the ‘sidehoved’ path – any idea?July 12, 2018 at 8:53 am #622133Nikolaj
something like:
<img src="product-<?php the_ID(); ?>">however I can’t find the param for the ‘sidehoved’ img…
July 12, 2018 at 9:38 am #622190Tom
Lead DeveloperLead DeveloperWhere would this image come from? Products don’t have a “Featured Image” option like regular pages.
July 12, 2018 at 9:41 am #622195Nikolaj
from the ‘sidehoved”billede’ in English ‘siteheader’ ‘image’ which is present below product details…
-
AuthorPosts
- You must be logged in to reply to this topic.