• I haven’t touched my site for a few weeks and came back and realising the numerous customisations I’ve made with snippets aren’t working, most obvious is sticky-menu – slides down with no customisations, and buttons on lower right.

    Everything is loading snippets as expected but snippets don’t seem to be applying to my site.

    Help!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Is it possible that an update to WordPress or plugins have resulted in the snippets not working, or are you certain that the code itself is not executing?

    Thread Starter reelism

    (@reelism)

    Can’t say for certain, but certainly *doesn’t* seem to be executing – plugin and snippet are both activated. Checked snippet, changed code in 2 at issue and saved again.

    Initially thought it was due to mystickymenu update, rolled back multiple versions, no difference, and then realised I’m also not seeing CSS customisations in Buttonizer – which was deactivated (bottom right), so yeah.

    • This reply was modified 5 years, 5 months ago by reelism.

    And I’m going to AGAIN echo the same sentiment. It seems that this plugin stopped working HALF of my CSS snippets do not work. If I add CSS to an EXISTING CSS snippet then it works. NEW CSS snippets do not work. All since the latest WP update.

    • This reply was modified 5 years, 5 months ago by DivaVocals.
    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @divavocals,

    Are you able to provide an example of a CSS snippet which is not working?

    Thanks!

    Thread Starter reelism

    (@reelism)

    I’ve had multiple issues with my current site, just migrated to GeneratePress. I can’t confirm what, why or which classes were effected, but I did validate that the CSS issues I encountered were related to CSS not being written from CodeSnippets.

    When I cut all the CSS out of CS into Customizer, everything loads as it should.
    I’ve now disabled this snippet.
    Haven’t experienced this with any other PHP or JS snippets, just CSS.

    Have you got any clue why this is happening?

    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @reelism,

    I would need an example of how you are using CSS in Code Snippets in order to try to figure out what might be going wrong.

    Thread Starter reelism

    (@reelism)

    Sorry for delay, I’ll link in-dev, buggy, CSS below – this is the saved content from snippet that was breaking. It was working fine before 5.2.1 with my workflow:
    Tweak in DevTools, copy changes shown thru StyleURL plugin, also advice on GeneratePress forums, paste into snippet.

    After 5.2.1 weird problems started.

    Like what DivaVocals said, it seemed half of the CSS didn’t work.
    So I eventually removed the snippet, pasted it into Customizer and it worked as intended (which meant it was actually broken, as I’d duplicated classes, given they weren’t previously working).

    I’m now working from a child theme style.css with no css snippets.

    I’ve still got PHP, JS snippets, and haven’t experienced any issues with them.

    https://www.codepile.net/pile/xONqGm3M

    And again, as an aside, I’m continually reminded of this missing functionality:
    – Create a snippet already formatted as CSS, PHP, etc, instead of having to copy the original templates. Could still show the greyed text, i.e.
    <?php add_action( ‘wp_head’, function () { ?><style> is greyed at top, and not editable.
    – Add radio buttons next to: Only run on site front end, Only run once – Run in Header, Run in Footer, at a minimum (at a maximum see: https://docs.generatepress.com/article/hooks-visual-guide/)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Broken with 5.2.1 ?’ is closed to new replies.