• Resolved Spikee

    (@spikee)


    Hello,

    I just updated your plugin from 2.9.8 and I have problem with meta viewport on woodmart theme
    WooCommerce version:10.5.2
    Woodmart theme: 8.3.9
    Wordpdress: 6.9.1

    In file: stock-locations-for-woocommerce/inc/functions.php

    Function: slw_wp_head()

    Problem in woodmart: < style > tag opened, early returns prevent closing it → invalid HTML head

    (viewport meta, links, etc.) becomes part of the CSS block. This breaks mobile viewport and makes product pages render in desktop mode.

    can you please check?

    Thank you very much, we love your plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Thank you so much for reporting this issue and providing such clear details — including the exact file, function, environment versions, and symptoms (especially the viewport breaking on mobile).

    Your description helped us immediately understand and reproduce the problem: Woodmart’s early/open <style> output combined with our early returns in slw_wp_head() was leaving tags unclosed and pushing critical head elements (like viewport meta) into the CSS block.

    We’ve just pushed a fix in the development version, and it will be included in the next release (3.0.8). The main changes are:

    • Collecting the dynamic CSS in a variable first
    • Only outputting the <style> block when there is actual content to avoid any unclosed tags
    • Bumping the hook priority to 20 so it runs after most theme early styles

    This should fully resolve the compatibility issue with Woodmart (and prevent similar problems with other themes that output partial styles early).

    We really appreciate your help in making the plugin better — users like you who take the time to report with this level of detail are invaluable.

    Feel free to test the upcoming version once it’s live (or grab it from SVN/trunk if you’re comfortable), and let us know if everything looks good on your end.

    Thanks again!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.