I have a WordPress Woocommerce e-shop.
In every product category, I want this to have a different top image.
The Woocommerce category pages are automatically created so I can't edit them individually.
I have managed to find a way to have my own image on top but I want this image to be different for different categories.
So I thought that if I could handle the images displayed inside this by referring to their URL this would solve the problem.
So let's say for URL
example.com/category/category1
display image-1 and so on.
Something like a CSS selector
div[this-url-1] {background-image:url(.image-1..);}
div[this-ur2] {background-image:url(.image-2..);}
You can use this plug in to do what you want.
https://wordpress.org/plugins/woocommerce-category-banner/
This will allow you to use custom images and positions of images for each category.
Related
How do I set the category image for WordPress? Specifically, I'm looking to update the woocommerce category images with new ones programmatically. I have the ID of the image already uploaded to WordPress, how do I make the connection and replace the existing category image?
WordPress itself does not implements featured images for categories.
The easiest way to achieve your goal is to use appropriate plugin. If you already can manage category images, we need to know what plugin/template you are using, because category images can be handled in many different ways by 3rd party software.
I'm working on a WordPress site where posts can belong to different categories.
I'm trying to make it so that every post in each category will include a certain image without it having to be done manually.
For example, if a post is created with category X, it should display image X. This should apply to every post in category X. If a post belongs to category Y, it should display image Y, and so on.
Any help would be much appreciated.
Yes it is easy.
You can use this plugins to get dynamic images for your each category.
https://wordpress.org/plugins/categories-images/
check its documentation to display on single page.
I have created two attributes for products in wordpress (Height and Width) having different variation in feet. Every variation has different cost. Everything is working file. My problem is variations are not displayed as drop down list rather they are displayed in the form of table like:-
Size
2ft2ft
2ft4ft
etc.
How to fix this?
please check this link
http://kb.oboxthemes.com/articles/woocommerce-how-to-setup-products-with-multiple-optionsvariations/
video :
https://www.youtube.com/watch?v=nw74z4UCke4
I am looking for a way to share properties over different products which belong to the same category.
Let me explain:
I have a couple of products which share the same properties, but the color. To avoid entering data over and over, I'd like to add common properties to their category and show these properties as a part of the product-details.
Example:
Let's say I have 'wireless headphones': They have different colors, sizes, etc... but they also share lots of identical properties. They're not product variations, but different products of the same kind.
Is there a way to add common properties of this category (e.g. 'stereo', 'wireless', 'frequency') to a single-product page?
Right now I am loading this data via Javascript from a .html template after the browser loaded the product. Works fine, but I guess there must be a better way, so I can handle these properties from within WooCommerce.
Any info/hint/pointer appreciated
This is what Attributes are used for. Once you have your Attributes setup when you go into a product you can add the attribute that you are looking. This video should help https://www.youtube.com/watch?v=7PX8MWBOAeo
I'm want to use the Recent Photos Plugin in my sidebar to show the last uploaded photos but instead of linking them to the bigger versions of the images I want to link to the post they were used in.
Can somebody tell me how I get the link of the last post an image was used in?
Thanks, udo
If you do a sidebar based on the posts and display the image you can display the image from a post then have it link to the permalink based on the post. If you do it based on the images like you are doing, there is no identifier that tells wordpress whether or not the image is part of any particular post. So in turn if you wanted, you can set a condition to pull posts and put it in a array and have it cross reference and descend the order by the date of upload per image.