Home Forums WoodMart support forum Change tags it titles

Change tags it titles

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #563717

    rtvvideo
    Participant

    hello
    how can I change two this titles from h3/h4 to span

    Attachments:
    You must be logged in to view attached files.
    #563729

    Luke Nielsen
    Keymaster

    Hello,

    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/oeSYrbSJxS8q

    2. Clarify where this https://prnt.sc/a4E_t-QFO2R0 is situated.

    Kind Regards

    #563742

    rtvvideo
    Participant

    2. Clarify where this https://prnt.sc/a4E_t-QFO2R0 is situated.

    is a recently view title products on shop list

    #563743

    rtvvideo
    Participant

    child theme
    dont have content-slider.php file

    Attachments:
    You must be logged in to view attached files.
    #563760

    Luke Nielsen
    Keymaster

    Hello,

    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

    #563762

    rtvvideo
    Participant

    can 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>’;
    }
    }

    #563860

    Luke Nielsen
    Keymaster

    Hello,

    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/RkerUUi60iRE

    Result: https://prnt.sc/JNYE8vGCYQVl

    Kind Regards

    • This reply was modified 1 week, 4 days ago by Luke Nielsen.
    #563911

    rtvvideo
    Participant

    ok
    but I’m asking if I can change the tags in the same way
    on blog post title and recently view title ?

    #563994

    Luke Nielsen
    Keymaster

    Hello,

    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

    #563995

    rtvvideo
    Participant

    the 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”

    #564395

    Luke Nielsen
    Keymaster

    Hello,

    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/oeSYrbSJxS8q

    3. Copy the highlighted function from woodmart/inc/integrations/elementor/elements/products/products.phphttps://prnt.sc/K4WbRNXDilyH to the functions.php file in your child theme and change that tag: https://prnt.sc/RkerUUi60iRE

    Kind Regards

Viewing 11 posts - 1 through 11 (of 11 total)