How to Set Category Image for WordPress? - wordpress

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.

Related

How to customize specific page or list of posts on Wordpress

I want to list specific information on a Wordpress page or category page, but I don't know how to do it, it's very simple information like this page, I don't know if I need a plugin to do that or if I just need to modify the way wordpress list my posts of a specific category.
I need to understand better how can I modify things, because I'm new with Wordpress, I kno HTML, CSS, Javascript but I don't have those options.
I need 2 'pages' to save and list information like photo, email, name and another to list courses with information like title, date, description, etc.
Use the Advanced Custom Fields plugin to take full control of your WordPress edit screens & custom field data.
https://wordpress.org/plugins/advanced-custom-fields/

Change category image thumbnails to title text

I'm working with Wordpress plugin Fancy Product Designer v3.9.5 and when I create categories and assign products to categories I get thumbnails of products. What I am trying to achieve is replace those thumbnails with titles of products.
I allready searched for code that I could change but unfortunally no success. I was also looking if there is an option in settings but no such luck..
Found a solution;
posting it here for anyone in future
in file FancyProductDesigner-all-min.js change
{"class":"fpd-item fpd-tooltip "+h,"data-title":e,"data-source":c,html:'<picture data-img="'+c+'"></picture>'}
to this
{"class":"fpd-item fpd-tooltip "+h,"data-title":e,"data-source":c,html:'<p>'+e+'</p>'}

Wordpress different products category pages with different widgets

I am making this wordpress based website ( https://naujas.pacopac.lt/ ), it is for company with multiply product categories and in every category page I want to have filter system by different attributes.
I tried to create page for every category, but the problem is that I can add products of certain category, but I can not filter them then. Also I can only add filtering through widget.
So the way i see to make it is by directing people to product category page, like https://naujas.pacopac.lt/product-category/“name of category”/. For example https://naujas.pacopac.lt/product-category/pakuotes/ , add widget with filtering and then it works. BUT every category has to be filtered with different attributes, and I am only able to add one same widget to all categories pages and I can not find a way in WordPress to edit every each of these category pages, also I can only make one side widget.

So in short the problem is, how can I make different Side widgets and edit every each of product category pages with different widgets? I am using uncode theme with woocommerce and visual composer, would like to avoid coding, but also have basic knowledge in it so something not too complicated could be done.

Thank you very much guys!
Solved with Widget Logic plugin, able to show widgets on certain pages and hide others

Display different image for different url

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.

css formatting for a certain content

The thing (wordpress) is how can I make wordpress to format in a specific way (diferent from others) posts related to a certain category (it was in loop-single right?)
Does anyone have a nice link about this?
THX!
You'll want to use WordPress' Category Templates. For example if you have a category named news you can create template file named category-news.php (make sure you have permalinks enabled) or you can use the category ID. From there modify the contents of the category-news.php using CSS classes or IDs to display the styling you want for the category.

Resources