Home New Guten Forums WoodMart support forum Add attributes to the product title h1

Add attributes to the product title h1

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #668547

    destyle25
    Participant

    Hi.
    I want to add several attributes to the product title on the product page. How do I do this?

    Attachments:
    You must be logged in to view attached files.
    #668654

    Hello,

    Yes, since you’re using a custom layout for the single product page, there are two ways to show multiple attributes near the product title or elsewhere on the page:

    Using the “Product additional information table” widget:

    In your custom layout, you can drag and drop the Product additional information widget (available in the layout builder). This will display all assigned attributes in a clean table format: https://ibb.co/RTGbnv16

    Additionally, there is the option in theme settings. Navigate to Theme Settings > Single Product > Elements, and enable the option “Show attributes table after short description.” This automatically displays all attributes below the short description area.

    Best Regards,

    #668895

    destyle25
    Participant

    Yes, I use it in the details section. But I need to make a custom h1 header. For example:
    <h1>{Category} {Brand} {Product Name} {Article}</h1>

    • This reply was modified 1 month, 3 weeks ago by destyle25.
    #669008

    Hello,

    Sorry, but I did not understand your requirements properly. Can you please explain it with an example or share some screenshots?

    Best Regards,

    #669296

    destyle25
    Participant

    Hi.
    I have a product. Its name in the admin panel is Толстовка Puma Team Hoodie ‘Green’ 539274-24.
    I have set up the Product Page layout via Gutenberg. The “Product name” block is responsible for the title. This block inserts <h1>Толстовка Puma Team Hoodie ‘Green’ 539274-24</h1>

    But the problem is that the actual product name is only Team Hoodie ‘Green’.
    Толстовка — is a category,
    Puma — is a brand,
    539274-24 — is an article number

    Now I have to call the products that way because I can’t make a composite h1 according to the scheme <h1> {Category} {Brand} {Product name} {Article}</h1>

    Can you help me so that inside the h1 tags I can specify which attributes and other product data the title should consist of? So that the header of the attributes is automatically generated in the front-end, and is not rigidly written in the backend for the product, as it is now.

    Attachments:
    You must be logged in to view attached files.
    #669349

    Hello,

    Unfortunately, it is not possible. The HTML structure does not allow solving it. Such modification requires complicated WooCommerce code customization, which is not covered by our support.

    Best Regards,

Viewing 6 posts - 1 through 6 (of 6 total)