Dpete
Forum Replies Created
-
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerIn the Page Builder plugin it seems that the CSS is added from the “the_content” filter which is why it’s too late to add the CSS to the header. Could you run generate_post_content() earlier and then pass the generated content to the_content filter to output it?
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerI only use the Classic Editor but assume even with that it’s too late to include in the header?
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerWill there be any consideration to allow the id=”siteorigin-panels-layouts-footer” style tag that the page builder outputs to be moved to the header? Changing the Page Builder Layout CSS Output Location settings to header doesn’t seem to have an affect.
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerOk good to know. Using wp_enqueue_style when initializing the widget does solve it. I wrongly assumed register_front_style hooks into the wp_enqueue_scripts action to enqueue them (it would be great if it did). Using this initialize function seems to work the best.
function initialize() { add_action('wp_enqueue_scripts', function() { wp_enqueue_style('test-widget', get_template_directory_uri() . '/widgets/test-widget/css/style.css'); }); }
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerI installed WP 5.9.3 with Page Builder and the Widget Bundle and added the built-in Post Carousel widget and it outputs the stylesheets to the footer as well. I’m also using a very simple theme that you can download here. It has a custom widget in it to look at. I tried changing the CSS output location to header but it didn’t seem to change anything. You can look at the source here and see the stylesheets in the footer. This page has the Post Carousel and the test widget added to it. Thanks for taking a look.
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] CSS loading in footerI tried it on an install with only Page Builder and the Widget Bundle and it still seems to be happening. All other stylesheets output to the header. A style tag with id=”siteorigin-panels-layouts-footer” seems to be output in the footer first then the stylesheets from register_frontend_styles follow it. I can keep digging around.
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] New setting requestSeems to be working great. Thanks for adding that!
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] New setting requestThanks, however I was hoping for a way to set a default for the cell mobile bottom margin rather than the widget mobile bottom margin. It’s called “Mobile Cell Margins” in the row settings.
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] New setting requestThat’s good to hear, thank you!
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Center Cell Vertical Alignment No Longer WorksAwesome, that fixed it! Thanks!
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Center Cell Vertical Alignment No Longer WorksCool thanks. I tried the beta plugin but the issue still seems to be there for me. I tried reactivating and resaving the page. I do see align-items:center getting set but it’s still getting overridden by align-items:flex-start further down.
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] Center Cell Vertical Alignment No Longer WorksSure, I added a link to an example. Scroll down to the Who We Are section. That row is set to center but align-items:flex-start is being applied.
Ah I see those button fields load whatever language is set as the default language in the user’s profile. Switching my profile to use the site default fixed the problem.
The problem is when I go to Settings > Customise Buttons and change the Accept Button text field to “Accepter” for example and click save then reload the settings page it will show “Accept” the English translation. I’d rather not have to update all of those fields every time I want to change a setting.
Forum: Plugins
In reply to: [SiteOrigin Widgets Bundle] Image Widget CSS Safari BugOk great. Thanks for the update.