Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #428198

    I want to add an underline on my product page titles: http://big-yellow.co/product/multi-safety-signs/

    Here is a visual of what I am trying to achieve: http://i.imgur.com/Fo4gyHa.png

    I have got the styling right elsewhere using the special heading element: http://big-yellow.co/bespoke/

    but I can’t find anywhere to add an extra <div> into the H1 element.

    #428234

    Hey tocal!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_border(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.single h1.product_title.entry-title').after('<div class="special-heading-inner-border"></div>');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_border');

    Regards,
    Yigit

    #428308

    Nobody does theme support like you guys – thanks Yigit, that’s perfect!

    #428314

    Hi!

    Thank you for your kind words, glad we could help :)
    Great looking site by the way!

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Turn Product Title into Special Heading’ is closed to new replies.