I defined a category and uploaded an image for Background Image or Pattern and another image for Header Background Image: they do not work. When I click on menu related to that category, I see the header background image loaded for another category.
I have looked at WP database by phpMyAdmin and the background header image for each category is correctly stored in wp_options database, however, when I inspect #mgm-header-opacity the background header image used is always that of the FIRST category. The background header images of the other categories are completely ignored.
I made additional tests and it looks like that the theme ignores completely the setting of all categories but the first one. In fact, not only the background header image is always the one associated to the first category, but the color is always the same. Even if in the database the options are correct: each category is associated to a different color & header image. I need some help. I cannot understand what\'s wrong.
I\'m kinda confused about this one. Please consider that the category customizer is meant for parent categories, customizing a sub-category differently than its parent may lead to undesired effects.
If that\'s not the issue kindly provide admin access and possibly describe the steps to replicate this, and I\'ll take a peek.
You don\'t need necessarily an e-mail address when a user with admin privileges creates a new account. Just enter any data and uncheck the option \"Send this password to the new user by email.\"
I can\'t see no content in your categories, hence the colors cannot be verified as clicking the category will take you to the 404 page (which doesn\'t have any category or color).
I\'ve published a test post in the \"Giochi\" category and now it turns orange as expected.
I had to remove all posts. Sorry but it was necessary and I did not know when you was going to perform a test. I let you know when all posts will be back., and what to do to replicate the problem. It will take a couple of days. I will message you gere when ready.
Hi, any news? I had to stop the development of site because of the problem. I have no idea why it does not work. Is it a bug? I had not added images this time, only colors, so it is easier for you to troubleshoot the problem. Thank you in adavnce.
the colors \"confusion\" is happening when a certain category has posts in two (or more) parent categories that has different color set.
For example the Giochi category gets green instead of yellow because it has posts from the Fumetti category as well, having the Fumetti cat a lower ID than then the Giochi category, it takes precedence over it.
A possible workaround (without having to control ID\'s) could be to enter some custom CSS (targeting the category ID class that is added to the body element) to force the category page to have a specific color regardless categories of posts. Since you\'re using a child theme this should be easier then using the Custom CSS textarea.
PS: Thanks for explaining the rating thing, I was very surprised when I saw that! By the way if you wish you can easily change it from the Downloads section of your ThemeForest dashboard.
Thank you for hint about review. I changed the rating. I did not know that it was editable. I am a little bit confused by your explanation (my fault, of course). I thought that colors were associated to categories, not posts. Since a post may belong to more than one category (for example, an article about SpiderMan can belong to both Cinema and Comics), I expect that the color is inherited from the selected category. So, when the page is related to category Cinema, everything should be red, when is related to category Comics, it should be green. Is the Theme logic different? Can you help me to better understand the workaround you suggest? Yes, a child theme allows me a lot of flexibility. Let me just understand what should I do to say: \"hey, everything in this page should be blue!\". I also would like to change the admin panel for categories to use for images the same approach you used for logo (a small bar to cancel the association with an image, a button to upload). I always forget that uploading a new image REMOVE the previous one with no warning.
Surely it does, even if I am not an expert of LESS. I am used to use directly CSS, so I have to give a look at LESS and understand how to use it. Just a question: can I do that in child theme? I do not want to change the main one, of course.
Uhm it should work but I didn\'t test it out, you could also avoid LESS if you need to look into it and include it in a child theme. It will result in a longer code but it will save you time.
With traditional CSS, you\'d need to prepend the .category-fashion class to each subcategory, basically after every comma, as such:
OK, I\'ll try... really a pity there is not a simpler way to do it. That is really a long list of css classes to manage... but what do you do in your code exactly? Do you use this approach? Can you tell me in which file you assign category colors? I might give a look at your code to inspire for a better solution... Thank you in advance.
Hi, I don\'t use this approach, as my category structure is usually different and I try not to give a post several parent categories. In case I have to, I wouldn\'t use category colors as they might will result confusing to the user seeing the same post having different colors. In my view category colors should be used to create some sort of network and colors should separate topics that are unrelated to each other.
This is some kind of workaround I provided to achieve what you wanted.
By the way, category colors are handled partials/part-cat-options.php
I defined a category and uploaded an image for Background Image or Pattern and another image for Header Background Image: they do not work. When I click on menu related to that category, I see the header background image loaded for another category.
I have looked at WP database by phpMyAdmin and the background header image for each category is correctly stored in wp_options database, however, when I inspect #mgm-header-opacity the background header image used is always that of the FIRST category. The background header images of the other categories are completely ignored.
Hi. Is there anybody? I need support!
I made additional tests and it looks like that the theme ignores completely the setting of all categories but the first one. In fact, not only the background header image is always the one associated to the first category, but the color is always the same. Even if in the database the options are correct: each category is associated to a different color & header image. I need some help. I cannot understand what\'s wrong.
I looked at part-cat-options.php but I cannot fond anything wrong. I have no other ideas how to troubleshoot this.
Hi there,
I\'m kinda confused about this one. Please consider that the category customizer is meant for parent categories, customizing a sub-category differently than its parent may lead to undesired effects.
If that\'s not the issue kindly provide admin access and possibly describe the steps to replicate this, and I\'ll take a peek.
Regards
djwd
Regards
djwd
Hi there,
you can provide them here by marking the posts as \"Private Reply\".
I would need admin access, you can create a temporary one. Kindly also post the steps to replicate the issue, thank you.
Regards
djwd
Regards
djwd
OK, before giving you access we need to fix the problem related to missing first_post_image() function (I submitted a ticket for that).
The issue was addressed in the related ticket.
Regards
djwd
Regards
djwd
Hi there,
You don\'t need necessarily an e-mail address when a user with admin privileges creates a new account. Just enter any data and uncheck the option \"Send this password to the new user by email.\"
Regards
djwd
Regards
djwd
HI there,
I can\'t see no content in your categories, hence the colors cannot be verified as clicking the category will take you to the 404 page (which doesn\'t have any category or color).
I\'ve published a test post in the \"Giochi\" category and now it turns orange as expected.
Hope it helps
Regards
djwd
Regards
djwd
I had to remove all posts. Sorry but it was necessary and I did not know when you was going to perform a test. I let you know when all posts will be back., and what to do to replicate the problem. It will take a couple of days. I will message you gere when ready.
Alright no problem, keep me posted.
Regards
djwd
Regards
djwd
Hi, any news? I had to stop the development of site because of the problem. I have no idea why it does not work. Is it a bug? I had not added images this time, only colors, so it is easier for you to troubleshoot the problem. Thank you in adavnce.
Hi there,
the colors \"confusion\" is happening when a certain category has posts in two (or more) parent categories that has different color set.
For example the Giochi category gets green instead of yellow because it has posts from the Fumetti category as well, having the Fumetti cat a lower ID than then the Giochi category, it takes precedence over it.
A possible workaround (without having to control ID\'s) could be to enter some custom CSS (targeting the category ID class that is added to the body element) to force the category page to have a specific color regardless categories of posts. Since you\'re using a child theme this should be easier then using the Custom CSS textarea.
PS: Thanks for explaining the rating thing, I was very surprised when I saw that! By the way if you wish you can easily change it from the Downloads section of your ThemeForest dashboard.
Regards
djwd
Regards
djwd
Thank you for hint about review. I changed the rating. I did not know that it was editable. I am a little bit confused by your explanation (my fault, of course). I thought that colors were associated to categories, not posts. Since a post may belong to more than one category (for example, an article about SpiderMan can belong to both Cinema and Comics), I expect that the color is inherited from the selected category. So, when the page is related to category Cinema, everything should be red, when is related to category Comics, it should be green. Is the Theme logic different? Can you help me to better understand the workaround you suggest? Yes, a child theme allows me a lot of flexibility. Let me just understand what should I do to say: \"hey, everything in this page should be blue!\". I also would like to change the admin panel for categories to use for images the same approach you used for logo (a small bar to cancel the association with an image, a button to upload). I always forget that uploading a new image REMOVE the previous one with no warning.
Hi there,
The system may not be perfect but that is how WP handles category archives.
These are the css classes affecting the category color:
If you\'re editing directly the less files, you could filter them by using the classes wordpress give to the body, for example:
And force a specific category to have a specific color regardless posts.
Hope it helps
Regards
djwd
Regards
djwd
Surely it does, even if I am not an expert of LESS. I am used to use directly CSS, so I have to give a look at LESS and understand how to use it. Just a question: can I do that in child theme? I do not want to change the main one, of course.
Uhm it should work but I didn\'t test it out, you could also avoid LESS if you need to look into it and include it in a child theme. It will result in a longer code but it will save you time.
With traditional CSS, you\'d need to prepend the .category-fashion class to each subcategory, basically after every comma, as such:
You could also use .category-ID (e.g. category-13 ) instead of .category-slug as per the example.
Regards
djwd
Regards
djwd
OK, I\'ll try... really a pity there is not a simpler way to do it. That is really a long list of css classes to manage... but what do you do in your code exactly? Do you use this approach? Can you tell me in which file you assign category colors? I might give a look at your code to inspire for a better solution... Thank you in advance.
Hi,
I don\'t use this approach, as my category structure is usually different and I try not to give a post several parent categories. In case I have to, I wouldn\'t use category colors as they might will result confusing to the user seeing the same post having different colors. In my view category colors should be used to create some sort of network and colors should separate topics that are unrelated to each other.
This is some kind of workaround I provided to achieve what you wanted.
By the way, category colors are handled partials/part-cat-options.php
Regards
djwd
Regards
djwd