Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter brettkan

    (@brettkan)

    Hi @sarahdn – I have emailed Printful support but they dont really connect you with tech support.
    My take is that ver 2.10 code in the file ‘/includes/class-printful-size-chart-tab.php’ is escaping?the HTML and doesn’t need to.
    I have updated to ver 2.10 but uploaded the file above from ver 2.7 and turned off automatic updates. Seems to work Okay. Perhpas they will address this issue in the next update… perhaps not.

    Thread Starter brettkan

    (@brettkan)

    The problem is the ‘Printful Integration for WooCommerce’ plugin. I rolled back to 2.7 and the problem is gone. I think it is Printify who introduced the ‘size chart’ tab to my site and Printful thats giving me the problem – I will have to investigate how these tabs are added in the first place and contact Printful for a resolution.
    Thanks for your help!

    Thread Starter brettkan

    (@brettkan)

    I should add that all product pages with Size Chart tab are affected and not displaying HTML they are either showing HTML as text or if i have tried to edit them, then the HTML has been stripped out. Not all products use this Tab.

    cheers

    Thread Starter brettkan

    (@brettkan)

    Hi @carolm29 It was just a simple table: but when i edit in the WYSIWYG the HTML gets stripped out leaving just text. I switched to WP 2024 theme and the problem persisted (on my local server). My next step is to rollback woocommerce, or compare new and old templates- thanks!

    <table class="size-guide">
    <thead>
    <tr>
    <th>Metric</th>
    <th>S</th>
    <th>M</th>
    <th>L</th>
    <th>XL</th>
    <th>2XL</th>
    <th>3XL</th>
    <th>4XL</th>
    <th>5XL</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Length, cm</td>
    <td>72.00</td>
    <td>74.50</td>
    <td>77.00</td>
    <td>79.50</td>
    <td>82.00</td>
    <td>84.50</td>
    <td>87.00</td>
    <td>89.50</td>
    </tr>
    <tr>
    <td>Width, cm</td>
    <td>52.00</td>
    <td>57.00</td>
    <td>62.00</td>
    <td>67.00</td>
    <td>72.00</td>
    <td>77.00</td>
    <td>82.00</td>
    <td>87.00</td>
    </tr>
    <tr>
    <td>Pocket length, cm</td>
    <td>14.48</td>
    <td>14.99</td>
    <td>15.49</td>
    <td>16.00</td>
    <td>16.51</td>
    <td>17.02</td>
    <td>17.27</td>
    <td>17.27</td>
    </tr>
    <tr>
    <td>Pocket width, cm</td>
    <td>12.45</td>
    <td>12.95</td>
    <td>13.46</td>
    <td>14.00</td>
    <td>14.48</td>
    <td>14.99</td>
    <td>15.49</td>
    <td>15.49</td>
    </tr>
    </tbody>
    </table>
    &nbsp;
    <table class="size-guide">
    <thead>
    <tr>
    <th>Inches</th>
    <th>S</th>
    <th>M</th>
    <th>L</th>
    <th>XL</th>
    <th>2XL</th>
    <th>3XL</th>
    <th>4XL</th>
    <th>5XL</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Length, in</td>
    <td>28.35</td>
    <td>29.33</td>
    <td>30.31</td>
    <td>31.30</td>
    <td>32.28</td>
    <td>33.27</td>
    <td>34.25</td>
    <td>35.24</td>
    </tr>
    <tr>
    <td>Width, in</td>
    <td>20.47</td>
    <td>22.44</td>
    <td>24.41</td>
    <td>26.38</td>
    <td>28.35</td>
    <td>30.31</td>
    <td>32.28</td>
    <td>34.25</td>
    </tr>
    <tr>
    <td>Pocket length, in</td>
    <td>5.70</td>
    <td>5.90</td>
    <td>6.10</td>
    <td>6.30</td>
    <td>6.50</td>
    <td>6.70</td>
    <td>6.80</td>
    <td>6.80</td>
    </tr>
    <tr>
    <td>Pocket width, in</td>
    <td>4.90</td>
    <td>5.10</td>
    <td>5.30</td>
    <td>5.51</td>
    <td>5.70</td>
    <td>5.90</td>
    <td>6.10</td>
    <td>6.10</td>
    </tr>
    </tbody>
    </table>
    Thread Starter brettkan

    (@brettkan)

    @serafinnyc Yes I am hiding the H2 Description with a display:none in my custom style sheet

    Thread Starter brettkan

    (@brettkan)

    Thanks @serafinnyc but it’s not so simple. I just edited this product (also with a size chart) in the visual editor and it stripped out all the HTML when i saved it.
    https://west-indigo.com/shop/mens-clothing/mens-all-over-shirts/mustique-palm-hawaiian-shirt/
    Something is removing HTML markup – it didnt behave like this before. When I made the pages with size charts, they worked fine. Its a recent update to woo or WP perhaps.
    BTW:
    WooCommerce Version 9.1.2
    WooCommerce Shipping & Tax Version 2.7.0
    WooPayments Version 7.9.2
    WordPress 6.6.1
    Custom sub-theme of Ollie

    Thanks!

    Thread Starter brettkan

    (@brettkan)

    All sorted, thanks!

    Thread Starter brettkan

    (@brettkan)

    Hi, yes it is quite possible that I am misunderstanding how this works – here is what I can tell you:
    When I try to edit a gradient on my home page, the custom gradients do not work – the block editor looks like this:

    When i edit the theme.json file and set customDuotone from “false” to “true” :

    Then the block editor will allow me to set a custom duotone, and it will appear like this:

    Perhaps there is another way to edit duotones – I am new to the block editor. Thanks for your time.

    Thread Starter brettkan

    (@brettkan)

    Thanks for the reply.
    I totally get shipping a theme with a default set of filters and colors – it makes for harmonious color schemes. But disabling the gradient editing I don’t get – if you want to make a minor color shift it is not possible.
    I have another use case: I have a transparent logo with a dark color, when i set it against a dark background i can put a light gradient on top to increase the contrast. Perhaps not best practice, I could make a light logo and use that, but being able to edit the gradient allows me to use the same logo in multiple places.
    I will figure out how to overwrite the .json file in a child theme and all will be solved.

Viewing 9 replies - 1 through 9 (of 9 total)