Home › Forums › WoodMart support forum › Change tags it titles
Change tags it titles
- This topic has 10 replies, 2 voices, and was last updated 1 week, 3 days ago by Luke Nielsen.
-
AuthorPosts
-
May 7, 2024 at 8:25 am #563717
rtvvideoParticipanthello
how can I change two this titles from h3/h4 to spanAttachments:
You must be logged in to view attached files.May 7, 2024 at 9:42 am #563729
Luke NielsenKeymasterHello,
1. For the slider, you need to copy the
content-slider.php
file into your child theme and change the tag here – https://prnt.sc/oeSYrbSJxS8q2. Clarify where this https://prnt.sc/a4E_t-QFO2R0 is situated.
Kind Regards
May 7, 2024 at 10:06 am #563742
rtvvideoParticipant2. Clarify where this https://prnt.sc/a4E_t-QFO2R0 is situated.
is a recently view title products on shop list
May 7, 2024 at 10:10 am #563743
rtvvideoParticipantchild theme
dont have content-slider.php fileAttachments:
You must be logged in to view attached files.May 7, 2024 at 10:46 am #563760
Luke NielsenKeymasterHello,
1. The Child theme consists only function.php file by default, therefore if you want to override something, you need to copy it from the parent theme and then make changes in the copied file in the child theme.
2. Sorry, but that element cannot be overridden via the child theme.
Kind Regards
May 7, 2024 at 10:50 am #563762
rtvvideoParticipantcan I change this through a PHP snippet?
so how did I do in products?if ( ! function_exists( ‘woocommerce_template_loop_product_title’ ) ) {
function woocommerce_template_loop_product_title() {
echo ‘<span class=”wd-entities-title”>‘ . get_the_title() . ‘</span>’;
}
}May 7, 2024 at 3:34 pm #563860
Luke NielsenKeymasterHello,
In this case, I suggest just copying the highlighted function (path:
woodmart/inc/integrations/elementor/elements/products/products.php
) – https://prnt.sc/K4WbRNXDilyH to the functions.php file in your child theme and change that tag: https://prnt.sc/RkerUUi60iREResult: https://prnt.sc/JNYE8vGCYQVl
Kind Regards
- This reply was modified 1 week, 4 days ago by Luke Nielsen.
May 7, 2024 at 6:08 pm #563911
rtvvideoParticipantok
but I’m asking if I can change the tags in the same way
on blog post title and recently view title ?May 8, 2024 at 9:26 am #563994
Luke NielsenKeymasterHello,
Sorry, but you can change them only in the way I described above. Unfortunately, there is no way to change them via PHP snippet.
Let me know if you have any additional questions.
Kind Regards
May 8, 2024 at 9:41 am #563995
rtvvideoParticipantthe highlighted function that you sent me is only for the product title
I’ll sum it up!
your template has tags
1. Product title
2. blog post title
3. widget title (carousel product – “recently view” – in my case)
they have permanent tags that don’t fit – they should all be “span” – but not H3 or H4
please help me change them to “span”May 9, 2024 at 12:40 pm #564395
Luke NielsenKeymasterHello,
1. Products title on the shop page –
if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) { function woocommerce_template_loop_product_title() { echo '<span class="wd-entities-title"><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></span>'; } }
Paste the code in the functions.php file in your child theme.
2. Copy the
content-slider.php
(in the root folder of the parent theme) file into your child theme and change the tag here – https://prnt.sc/oeSYrbSJxS8q3. Copy the highlighted function from
woodmart/inc/integrations/elementor/elements/products/products.php
– https://prnt.sc/K4WbRNXDilyH to the functions.php file in your child theme and change that tag: https://prnt.sc/RkerUUi60iREKind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register