Support » Plugin: Better Click To Tweet » Dequeue BCTT stylesheet

  • Hey Ben!
    I noticed in your Power Users guide that you can override the default CSS by uploading a file to /wp-content/uploads/. I’d like to incorporate custom styles in a theme versus just have them hanging out in that uploads folder.

    Is best method to dequeue the BCTT stylesheet? Or maybe a feature request to make your bctt_scripts() function filterable? 🙂

    Cheers,
    Carrie

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Hi Carrie!

    I definitely think that making that function filterable makes a ton of sense. Will work on that. (PRs welcomed at https://github.com/Benunc/better-click-to-tweet of course)

    In the meantime, you could put an empty file named bcttstyle.css in your uploads folder as a hacky way of dequeuing that stylesheet.

    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Hey Carrie, I just made a change over on the github repo that I’d love for you to test and see if it works for you.

    Once you’ve switched to that dev version (only one line changed), you can use a function like this to completely dequeue any styles:

    https://gist.github.com/Benunc/533985231bbfde551d019620f628a921

    Let me know what you think.

    Thanks for the suggestion!

    You’re awesome (and speedy!). 🙂

    I left a note on the gist.

    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    To confirm, did you use that snippet alongside the version of my plugin from GitHub or alongside the existing plugin from the WordPress repo?

    And make sure you spell things bctt not bcct. Let me know if that works.

    Hey Ben,

    Confirmed on both accounts, but looks like the culprit was a conflict in the environment I was testing on.

    Thanks for the update!

    Cheers,
    Carrie

    • This reply was modified 7 months, 1 week ago by Carrie Dils.
    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Great, Thanks Carrie. I am going to push out version 4.9 to make that function filterable.

    Woot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.