• Resolved hurab

    (@hurab)


    HI i have added one attribute with two size variations in it. https://paste.pics/891B6 is it possible that the one highlight with red line can be in the next line?

    i have tried putting <br> but unable to to do so

    could you please guide

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    I’m not quite sure I understand, what next line are you referring to? If you’re looking to change the *order* in which attributes are shown on the front end – You can do that by dragging and dropping the attribute terms under Products > Attributes > YOUR ATTRIBUTE > Configure Terms. Here’s a screenshot to illustrate that better:


    Link to image: https://d.pr/i/Q98TId

    Thread Starter hurab

    (@hurab)

    eerrmm noo.

    As in the screenshot https://paste.pics/891B6 you will see that sizes from XS to 7XL are written two times.
    I want that in one line it appears as XS-7XL and then xs-7xL in another line

    xs, s, m, l, xl, 2xl…
    xs, s, m, l, xl, 2xl…

    but currently appearing like this xs, s, m, l, xl, 2xl, xs, …..
    i want to add line break

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    I understand you are trying to make the two different sets of terms in the single attribute display on separate lines (as if if they were separate attributes). You mentioned trying to put a <br> in there, however entering a break like that as one of the terms is not going to work or make it render as HTML.

    You will need to either write PHP to change how it outputs the list of terms (in the wc_display_product_attributes function of the /woocommerce/includes/wc-template-functions.php file), or write JavaScript to run and adjust that after the page is loaded. Alternatively, you could make those separate attributes instead of squeezing them into a single one.

    If you need assistance with coding or custom development, we recommend reaching out to a developer from one of the services at https://woocommerce.com/customizations/.

    I hope that helps!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘two size variations in single product pg’ is closed to new replies.