Support » Plugin: Qty Increment Buttons for WooCommerce » There are P marks added in product detail page

  • Resolved gaspar

    (@gaspar)


    hi taisho

    i have strange problem with my product page – linebreaks are converted to empty P-tags. Also all buttons have them around. This is causing my layout break – all your plugin form elements are in separate lines.

    <form class="cart" action="" method="post" enctype="multipart/form-data">
    <div class="qib-container">
    <button type="button" class="minus qib-button">-</button><p></p>
    <div class="quantity">
    <label class="screen-reader-text" for="quantity_5f0321305b0da">My product</label>
    <input type="number" id="quantity_5f0321305b0da" class="input-text qty text" step="1" min="1" max="" name="quantity" value="1" size="4" inputmode="" title="Quantity">
    div>
    <p><button type="button" class="plus qib-button">+</button></p></div>
    <p><button type="submit" name="add-to-cart" value="983" class="single_add_to_cart_button button alt">Add to cart</button></p>
    </form>

    There is no anomaly in product list / category page.
    And the cart page is also ok.

    Any ideas what is causing this problem?

    • This topic was modified 2 years, 6 months ago by gaspar.
    • This topic was modified 2 years, 6 months ago by gaspar.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author taisho

    (@taisho)

    Hello,

    In this place:

    <input type="number" id="quantity_5f0321305b0da" class="input-text qty text" step="1" min="1" max="" name="quantity" value="1" size="4" inputmode="" title="Quantity">
    div>

    The div> should be </div>. The P tags appear because it’s a smart way in which the browser fixes the broken HTML. I have no idea why this gets broken in the first place, possible sources are another plugin that does something in this area of the product page or an optimization plugin that breaks something when the HTML is minified.

    Best regards,

    Ryszard

    Thread Starter gaspar

    (@gaspar)

    It was not your plugin..
    Another shortcode function decided to mess it up.
    Thanks for the input.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There are P marks added in product detail page’ is closed to new replies.