Tagged: Product Title, underline, woocommerce
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.
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
Nobody does theme support like you guys – thanks Yigit, that’s perfect!