• Resolved pict3000

    (@pict3000)


    My Product Categories section of the homepage currently has 3 stock photo images. Under each is their category title and the count in parentheses. I want to change those titles and counts to blocks of text in <p></p> format instead of the <h3> they are in now.

    (This is at 4ninths.com)

    How can I do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • James Koster

    (@jameskoster)

    Easiest way by far would be to simply style the h3s via child theme to look like standard text, rather than changing the markup.

    Thread Starter pict3000

    (@pict3000)

    Before I say why that won’t work, let me just say that was a good suggestion, nevertheless. And thank you!

    The reason it won’t work is because when someone clicks on that photo, which represents a product category, they will be taken to the corresponding category page titled with the text I re-styled underneath the photo on the homepage. That’s not what I want.

    I want text underneath those three product category photos independent of the titles that will display on their linked-to pages.

    I suppose I need to know what filter hook to use so I can maybe create a new <p> underneath those category titles (that are situated under their photos). This is where I’m on shaky ground because I’ve never worked with filters and plugins before.

    James Koster

    (@jameskoster)

    So you want to add text? That’s very different to changing text :p

    Just hook into woocommerce_after_subcategory and add your custom text there.

    Thread Starter pict3000

    (@pict3000)

    Awesome! Thanks again, James.

    Sorry about my miscommunication. Someone once said, “Don’t listen to what I say, listen to what I mean.” ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change text under "Product Categories" images on homepage’ is closed to new replies.