Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1110330

    Hi Guys,
    I need to change the title for Related Products, centralise the text and alter the size of the font without affecting any of the H2 headers – many thanks.

    • This topic was modified 5 years, 5 months ago by lagruga.
    #1110455

    Hey lagruga,

    Please have a look at the following threads:

    WooCommerce Related Products H2 Description

    https://kriesi.at/support/topic/change-related-product-text/

    Best regards,
    Victoria

    #1110490

    Hey Victoria, thanks for the feedback.
    It seems the settings would be wiped after a Woocommerce update? If this is the case then I would prefer a CSS change (under Enfold settings). Also please note that I had stated a few other items on the case – thanks.

    #1110491

    in addition to my previous response, I had already come across that post before I had posted my case on the forum thus saving us both time but it’s not really what I am after – thanks.

    #1110683

    Hi,
    To center the “related products” title and increase the font, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .related.products {
        text-align: center !important; 
    }
    .related.products > h2 {
        font-size: 22px !important;
    }

    please adjust to suit, Then clear your browser cache and any cache plugin, and check.

    To change the related products text, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_related_products(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $('.related.products h2').each(function() {
        var text = $(this).text();
        $(this).text(text.replace('Related products', 'Awesome Deals')); 
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_related_products');

    Please adjust “Awesome Deals” to suit. Also note that with this text replace, case does matter, see ‘Related products’

    Best regards,
    Mike

    #1110977

    Hey Mike,

    Thanks so much, worked a treat, please close the case.

    Best Regards.

    #1111099

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Please bookmark Enfold Documentation for future reference.
    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change “Related Products” Title’ is closed to new replies.