rysan
Forum Replies Created
-
This fix works on single wordpress installation, but does not work on multisite.
ok. thanks!
How could I add !important directive to color property?
Forum: Plugins
In reply to: [Kirki – Freeform Page Builder, Website Builder & Customizer] Export SCSSAwesome! Thank you!
Forum: Plugins
In reply to: [Kirki – Freeform Page Builder, Website Builder & Customizer] Media queriesLooking forward to having this option. Thanks!
Show/hide conditions work!
Now, how to make so that default value (#000) is applied only if checkbox has been ticked?
$fields[] = array( 'type' => 'checkbox', 'setting' => 'cta_border_color_on', 'label' => __( 'Include Border', 'tourtiger' ), 'section' => 'hero_area_cta', 'default' => 0, 'priority' => 29, ); $fields[] = array( 'type' => 'color', 'setting' => 'cta_border_color', 'label' => __( 'Border Color', 'tourtiger' ), 'section' => 'hero_area_cta', 'default' => '#000', 'priority' => 29, 'required' => array( array( 'setting' => 'cta_border_color_on', 'operator' => '==', 'value' => 1 ) ), 'output' => array( array( 'element' => '.btn', 'property' => 'border-color', ), ) );Forum: Plugins
In reply to: [Styles] Export CSSI just found this article where, down the page, in comments, there are explanations about the reason for embedding CSS in the header,
https://poststatus.com/styles-plugin-css-customization/Initially I was after another idea, and, that is, getting values from Customize page and converting them into SCSS. SCSS allows to play with variables for colors, background-colors, fonts etc., and that would be handy to get values from Customize page and convert them into SCSS variables. One of the possible formats for exporting values from Customizer would be JSON. If I got JSON format like this,
{
“selector-name”: {
“text”:”Helvetica, sans-serif”,
“color”: “#ccc”
},
“selector-name-2”: {
“text”:”Helvetica, sans-serif”,
“color”: “#000”
}
}
I could convert JSON to SASS with this, https://github.com/vigetlabs/sass-json-vars
and then paste converted SASS variables to WordPress using this plugin,
https://ww.wp.xz.cn/plugins/wp-scss/
JSON to SASS conversion would be performed on my local machine, and that is a drawback. However, I would do this procedure only once in while, and it would be intended for production sites.Forum: Plugins
In reply to: [Styles] Export CSSI would like to have the ability to enqueue that CSS rather than keep it as embedded CSS.