Duplicate H1 tags on product pages - by lew-egr

This topic has 5 replies, 2 voices, and was last updated 8 years, 2 months ago ago by Robert Hall

  • Avatar: lew-egr
    lew-egr
    Participant
    October 10, 2016 at 13:34

    Hi, Is it possible to display an alternate page title (just text in a span) on single product pages so the product description is the only H1 tag used on the page? I’ve tried just hiding it via css, and displaying a title that is hidden on all other pages, but it still renders the html, albeit hidden.

    Thanks

    4 Answers
    Avatar: lew-egr
    lew-egr
    Participant
    October 10, 2016 at 13:48

    Essentially this – which i can’t get to work on this theme

    http://tidyhive.com/remove-page-titles-from-woocommerce-pages/

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 10, 2016 at 15:17

    Hello,

    As I see you’ve only one h1 tag at the product page. See screenshot: http://prntscr.com/cs3fhz

    To change it you need edit the \wp-content\themes\legenda\framework\theme-functions.php file one line 4796

    Regards,
    Robert Hall

    Avatar: lew-egr
    lew-egr
    Participant
    October 11, 2016 at 01:45

    Sorry, should have been clearer.

    I would like the product title to be an h1 tag, and the page title (on all single product pages) to be just span text (normal h1 on all other pages). Is this possible?

    Thanks

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 11, 2016 at 07:45

    Hello,

    In this case you need edit the \wp-content\themes\legenda\woocommerce\content-product-slide.php file on line 53

    Regards,
    Robert Hall

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.