Hello,
I have been searching for the answer to this, and came across this code:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id)
{
if ( is_product() )
{
$args['heading'] = 'h1';
}
return $args;
}
If I remove the if statement, it works on blog posts, but no matter what it does not work on product pages. I need that title to be wrapped in an h1 tag.
Thanks.
Hey IdeaZone2550,
For the standard product pages, the product title is in H1 tags, but when you create your own product page you will need to add each element. It sounds like you have added a title or you are referring to the top title bar:
Please link to your product page so we can take a closer look.
Best regards,
Mike
Hi there, here is a link to a product using the ALB: https://ruffell-brown.com/product/hunter-douglas/
As you can see, the title bar only contains a tag and not <h1>.
Danielle
Hi Danielle,
This snippet does not apply in this case. You are building products with the Advanced Layout Builder and so you can add the h1 manually in the text block or the Special heading element.
Best regards,
Victoria
Hi Danielle,
This snippet does not apply in this case. You are building products with the Advanced Layout Builder and so you can add the h1 manually in the text block or the Special heading element.
Best regards,
Victoria