Home › Forums › Basel support forum › Child theme
Child theme
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by
Elise Noromit.
-
AuthorPosts
-
November 24, 2021 at 10:23 pm #334361
BartlomiejParticipantHello,
I have to do some customization – put full-width category description before the shop loop (I read in some posts in this forum that it is not possible on your theme) so I need to writ it by my own in file `template-tags.php’ file.
I have created child theme but when I copy
basel/inc/template-tags.php' tobasel-child/inc/templte-tags.php’ mu customization doesn’t appear. Should I put the custom file in another location?When I edit the original file in `basel/inc/template-tags.php’ everything works perfectly. But I would like to put my changes into the child theme to avoid conflict during the theme’s updates.
Pleas give me some advice where should I put my custom child file to get any effect.
November 25, 2021 at 3:43 pm #334607
Elise NoromitMemberHello,
If you add customization and it works in the parent theme, try to copy the file in the same route into the child theme and check.
Else copy the customization code into the functions.php of the child theme
Best Regards
November 25, 2021 at 8:43 pm #334654
BartlomiejParticipantHello,
Copying file from
basel/inc/template-tags.phptobasel-child/inc/template-tags.phpdoesn’t work. The child file doesn’t override the original file.My changes are in function
basel_page_titlein template-tags.php. Please give me the instruction on how can I make my own implementation.November 26, 2021 at 5:50 pm #334969
Elise NoromitMemberHello,
Please provide the page URL and what you want to customize? Is this a Product category page?
By default, the product category has the description. You can configure to show before products or after in the Theme Settings > Shop > Category description position.
You can create an HTML block https://xtemos.com/docs/basel/html-blocks/ and insert any content there.
Best Regards
-
AuthorPosts
Tagged: child-theme
- You must be logged in to create new topics. Login / Register
