Home › Forums › WoodMart support forum › Child categories inherit parent image
Child categories inherit parent image
- This topic has 28 replies, 2 voices, and was last updated 2 years, 9 months ago by
Elise Noromit.
-
AuthorPosts
-
June 17, 2022 at 9:56 pm #384225
ninjaParticipantHi guys
change log says:
FIXED: Child categories did not inherit the image from the parent.(https://xtemos.com/forums/topic/header-image-cat/)
our problem start here:
we are using preset for define subcategories title background COLOR but now all these subcategories inherit parent background PICTURE by force.
when we use color then there should be no image inheritance from parent categories.isn’t this?
screenshot attachedkeep up the good work .
Attachments:
You must be logged in to view attached files.June 18, 2022 at 12:54 am #384261
Elise NoromitMemberHello,
You need to enter each category and set its own image: https://xtemos.com/docs-topic/product-category-menu/
If you have any questions please feel free to contact us.
Best Regards
June 18, 2022 at 7:22 am #384270
ninjaParticipantit seems our issue is not clear or not described well .
kindly we don’t ask how to set subcategory picture.
we set COLOR for each subcategory by preset but they inherit parent picture (background image)June 19, 2022 at 4:04 am #384393
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
June 19, 2022 at 8:46 am #384399
ninjaParticipantHi
info attachedJune 20, 2022 at 1:45 am #384476
Elise NoromitMemberHello,
Please provide the login URL as well.
Best Regards
June 20, 2022 at 11:13 am #384564
ninjaParticipantsorry
pelkat.comJune 21, 2022 at 1:47 am #384793
Elise NoromitMemberHello,
I do not have access to the Product categories: https://gyazo.com/c046bcbf065a9a5ed821c4ade51ff7eb
Please provide the same.
Best Regards
June 21, 2022 at 12:07 pm #384942
ninjaParticipantnow refresh and login please
June 22, 2022 at 1:07 pm #385284
Elise NoromitMemberHello,
You have inserted the featured image and you need to upload the image for the title: https://gyazo.com/254af636bd5d666a9c3006306147e91d
Please check this manual: https://xtemos.com/docs-topic/product-category-menu/
Best Regards
June 26, 2022 at 7:56 am #386295
ninjaParticipantthere is a clear issue which raised after recent update. and i don’t know how to describe it.
this is the scenario that was working with no problem before update:
1-i have a parent category with many subcategories
2-i have to set an image for parent category page title and set color(not image) for subcategories page title background
3-i set “image for the category page title” through Dashboard – > Products – > Categories – > Select and edit parent Category
4-define a preset for whole subcategories and set page title color by Dashboard – > Theme setting – > Page title– > Page title Background and uncheck inherit and set a color in Select Color option
now after update the step 4 has no more effect.
theme has the ability to use page title color by preset but i am forced to make square image 1×1 pixel of colors and set for hundred subcategories because of last update.
manual says:
” by default, the category page would inherit the settings from the shop page.”
but why preset wont work on this default?June 28, 2022 at 1:52 am #386691
Elise NoromitMemberHello,
Please apply this patch 386491
You can find the documentation here: https://xtemos.com/docs-topic/automatic-patcher/
Then save the Theme Settings and Theme Settings presets which are not saved.
If you have any questions please feel free to contact us.
Best Regards
July 2, 2022 at 12:38 am #387935
ninjaParticipantHi
thanks for update , btw patch installed and theme setting + preset saved but for subcategory image still loaded from parent category.
may i ask help?July 5, 2022 at 12:19 am #388591
Elise NoromitMemberHello,
Please upload the image here: https://gyazo.com/a0f904d24cbe386421ba022600501dc4
If it does not work, let us know.
Best Regards
July 5, 2022 at 11:11 am #388697
ninjaParticipantplease have a look at attachment
there is color set through preset and it has no effect.Attachments:
You must be logged in to view attached files.July 5, 2022 at 11:12 am #388706July 6, 2022 at 4:27 am #388947
Elise NoromitMemberHello,
Could you give the title of the preset?
Best Regards
July 6, 2022 at 11:34 am #389044
ninjaParticipant1-/shop/skincare/sub
July 7, 2022 at 1:37 am #389254
Elise NoromitMemberHello,
skincare category has ID =70 https://gyazo.com/e9dcf80b81fd9c94fc5515eb9d9eeb24
I do not see its ID in the preset: https://gyazo.com/29e6fdee7e225475f0642007468139e8
Please check the rules.
Best Regards
July 9, 2022 at 7:14 pm #389867
ninjaParticipantbecause skincare is the parent category
preset is for subcategoriesJuly 10, 2022 at 2:15 am #389912
Elise NoromitMemberHello,
It does not matter, preset does not differ between parent or child, it is applied to ID.
Add the sub-category ID to the preset.
If you have any questions please feel free to contact us.
Best Regards
July 11, 2022 at 10:36 am #390099
ninjaParticipantHi
thanks for your time and effort on following my issue.
i can understand that the ID is the matter in preset.
the screenshot you attached is from makeup category(1-/shop/makeup/sub) which is not mentioned and is from another preset, you could look at this please : 1-/shop/skincare/sub which i wrote above.sub-categories ID added to the 1-/shop/skincare/sub preset to show color but still they show image from parent categories ID(parent category).
category with ID 70 should have image as background by category setting(parent)
category with ID 75,76,77,78,79,80,81,82 should have color as background by preset setting(1-/shop/skincare/sub)well,i attached two screenshot: one from setting with proper ID setup and one from result in front-end
can you clarify why preset setting is not working at there ?Attachments:
You must be logged in to view attached files.July 12, 2022 at 2:47 pm #390489
Elise NoromitMemberHello,
Please advise the preset and ID of the child category that is added to the preset and it does not work.
Best Regards
July 14, 2022 at 10:58 pm #391160
ninjaParticipant1-/shop/skincare/sub
ID 75July 16, 2022 at 5:03 am #391373
Elise NoromitMemberHello,
I have checked the styles of the rule for this sub-category.
You have seen this color for the title: https://gyazo.com/2fee3fc0c3a960d58751abaf29c2710d
And you have set the background color for the tile: https://gyazo.com/a02d24ac9bc294fbbc1ca0306b3567c9
You need to check the settings you have configured for this rule.
If you have any questions please feel free to contact us.
Best Regards
July 16, 2022 at 7:36 am #391397
ninjaParticipantHi
– everything fine with this one:You have seen this color for the title: https://gyazo.com/2fee3fc0c3a960d58751abaf29c2710d
but
And you have set the background color for the tile: https://gyazo.com/a02d24ac9bc294fbbc1ca0306b3567c9
-kindly as you checked , we set color for “background color ” BUT we see a picture in title background! this is my issue after update that this color in not working in front- end. we set color but it show image in front-end .
we don’t set that image anywhere for this subcategory but instead of color we have image in background.
please have a look at attachment.-
This reply was modified 2 years, 9 months ago by
ninja.
-
This reply was modified 2 years, 9 months ago by
ninja.
Attachments:
You must be logged in to view attached files.July 20, 2022 at 5:31 pm #392404
Elise NoromitMemberHello,
Please find the file: ./inc/template-tags/template-tags.php and line 1280, then relace this code:
} elseif ( ! empty( $cat->parent ) ) {
for this one:
} elseif ( ! empty( $cat->parent ) && apply_filters( 'woodmart_show_parent_category_page_title_image', true ) ) {
and add this code:
add_filter( 'woodmart_show_parent_category_page_title_image', '__return_false' );
to the functons.php of the child theme.
If you have any questions please feel free to contact us.
Best Regards
July 21, 2022 at 1:53 pm #392622
ninjaParticipantthis was great
just to say we are so happy to start our fourth website using Woodmart here.
thanks in advanceJuly 21, 2022 at 2:33 pm #392635
Elise NoromitMemberYou are welcome! We are here to help.
Wish you a wonderful day!
-
This reply was modified 2 years, 9 months ago by
-
AuthorPosts
The topic ‘Child categories inherit parent image’ is closed to new replies.
- You must be logged in to create new topics. Login / Register