Coder Social home page Coder Social logo

Comments (7)

laurelfulford avatar laurelfulford commented on July 28, 2024

This might be related to #52 -- the issue hangs around even after you've switched back to the default style pack, as long as it's been changed at some point in the past -- it's due to my clunky code for the Customizer.

@claudiulodro do you remember if you switched the style pack at any point on this test site?

from newspack-theme.

claudiulodro avatar claudiulodro commented on July 28, 2024

Not sure. I should be getting my new computer today, so I'll give it a test on a clean slate and see.

from newspack-theme.

laurelfulford avatar laurelfulford commented on July 28, 2024

Thanks! (And yay new computer!! 🎉 )

from newspack-theme.

claudiulodro avatar claudiulodro commented on July 28, 2024

Just tested on the cleanest of new sites, and the issue still happens. It's not because I had a style pack and then removed it.

from newspack-theme.

laurelfulford avatar laurelfulford commented on July 28, 2024

Thanks for double-checking!

Dang, this could be a bigger issue than I thought.

from newspack-theme.

claudiulodro avatar claudiulodro commented on July 28, 2024

Did a little more digging into this, and it seems to def. be related to the style packs. If I remove add_action( 'customize_preview_init', array( $this, 'customize_preview' ) ); from Newspack_Style_Packs_Core the customizer colors work great.

The underlying issue to me looks like style.css is getting enqueued twice:

  • Once normally
  • Once by the style pack JS

The second enqueue (the one by style pack) overrides the customizer styles, since the styles all have the same specificity but the style pack loads style.css after the customizer styles have been applied.

Closing this issue since it seems to be the same as #52. Hope this info helps! :)

from newspack-theme.

laurelfulford avatar laurelfulford commented on July 28, 2024

Yes -- thanks @claudiulodro!!

from newspack-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.