WordPress.org

Ready to get started?Download WordPress

Forums

Page Builder by SiteOrigin
[resolved] Buttons and Call-to-Action widget CSS not showing up (5 posts)

  1. dentm42
    Member
    Posted 1 year ago #

    I'm sure there's something I'm missing, but for some reason when I put a CTA widget or a BUTTON widget on a page and set it up, none of the CSS gets included on the page.

    You can see an example at http://www.testserver.0xa.dm42.net/testpbpage/

    Not exactly sure what might be going wrong or where to look. A quick dig found the .less files - from some other reading, it looks like these get pulled in as needed - but they aren't being pulled in.

    WP: 3.5.1, PB: 1.2.11

    NOTE: This is a Multisite network config - with PageBuilder activated within the individual site, not network wide. Could that make a difference?

    http://wordpress.org/plugins/siteorigin-panels/

  2. Greg Priday
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there dentm42. I have heard of this issue before. It seems to be a Multisite issue.

    Page Builder's widgets generate their CSS on the fly using the LESS files you mentioned. For some reason the CSS isn't being stored properly on Multisite. This should be a fairly simple fix - I'll try get it working in 1.2.12.

  3. dentm42
    Member
    Posted 1 year ago #

    If you have any idea where to point me... I don't mind digging into the code a bit (I probably will anyway - but any hints would be great!).

    If I figure it out, I'll post a patch.

  4. dentm42
    Member
    Posted 1 year ago #

    AWESOME!!!!

    First - it's not a bug or error in your code (although I did find something you'll want to look at). The fix is easy. Since you use "wp_upload_bits" to save the css files, the site operator of a multisite network needs to make sure that "css" is an acceptable upload file type.

    NETWORK DASHBOARD --> SETTINGS --> Network Settings

    The parameter: "Upload file types" under "Upload Settings" needs to have "css" added. That's it! Works like a charm after that.

    As I was digging, though, I found you used "add_option" in the cache_css function - looking at the logic, it looks like that should be "update_option". You may have a reason for not doing that - if so, clue me in.

    Thanks!

    (BTW- NO, it didn't take me 5 hours to fix this --- I fixed the lawn-mower, and did a bunch of other stuff today besides just looking at this.)

    I have to say, I would not have thought to use "wp_upload_bits" for this purpose - but looking at what you did, I think it's the right way to do it. Thanks for teaching me something in the process!

  5. noriodesousa
    Member
    Posted 11 months ago #

    Kudos to you, dentm42. I had the same issue and your suggestion worked perfectly.

    Greg, great work on this plugin, I'm loving it so far.

    Any chance you can add this note to the README for WPMU sites?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.