Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 170
Home › Forums › Theme Support › DigitalAgency › Add !important to REDUX Compliler custom-styles.css
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
- This topic has 5 replies, 2 voices, and was last updated 10 years, 5 months ago by
frankfava.
-
AuthorPosts
-
November 20, 2015 at 5:50 am #8210
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
frankfava
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
Is there any way to add an !important attr to a css selector when add styles through the REDUX compiler?
November 20, 2015 at 6:41 pm #8227
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
skat
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
Hey Frank,
Unfortunately I didn’t find any option to do this. I, too, have searched a lot for such an option but without any results. I’ve checked their github repository, their site, other Redux related sites without any luck.
If you have any ideas please let me know.
Cheers!
ChrisNovember 21, 2015 at 9:20 am #8241
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
frankfava
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
Didn’t manage to find anything so I wrote my own compiler for it.
I’ll send you the files when I’m done.
November 22, 2015 at 3:38 am #8252
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
frankfava
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
So here’s my compiler that I wrote along with other edited files.
The files in sd-admin-options folder in the parent theme have been edited for a FEW Redux edits.
–sd-redux-styles.css: not changed
–sd-redux-settings.php: functions such as enqueuing the above redux styles, removing the demo and adding font-awesome. Used to be included withsd-admin-options.phpbut is now included through function.php and cannot be overridden by child theme.
–sd-admin-options.php: Slimmed down version of original, by removing the css compiler (below) and other redux settings. CAN be replaced through child theme or plugin by defining a new path withSD_REDUX_OPTIONS_PATH
–sd-redux-css-compiler.php: Original comiler function but separated into own file so it CAN be replaced through child theme or plugin by defining a new path withSD_REDUX_COMPILER_PATH
–custom-styles.css: Default css file that compiler will right to.NOTE:
– Theenqueue_Stylefunction forcustom-styles.csshas be removed from parentsinc/enqueue.php fileand the default child theme functions.php file. The enqueue function is now included with the compiler script (New or original) so the css file is included on a compiler-by-compiler basis.
– The parent’sfunctions.phpcontains the functions necessary to handle all the replacing. The option name is set infunctions.phpTHE NEW COMPILER
– Theredux/redux-admin-options.phpis the child replacement. Included in child’sfunctions.php. Contains examples on how to use new compiler.
– Theredux/redux-css-compiler.phpis the new compiler replacement. Included in child’sfunctions.phpwith additional functions needed in its execution and the enqueue of the style. Look at the file for documentation. You can edit the configure the compiler with constants.
–ARC_COMPILER_CSS_MINIFYcan be set to minify or pre-format the css styles, easy to read for dev.
–ARC_COMPILER_DEBUGwill output acompiler_debug.logfile to the stylesheet directory in addition to non-minification of the css output
–ARC_COMPILER_CSS_FILEsets the base name for the css file to be compiled. Default isredux-compiled-styles.
–ARC_COMPILER_SAVE_PATHsets the path on where to save the css file. I’ve set it to acssfolder in the child theme. Default is stylesheet directory
• The Compile includes an enqueue function for the front-end include of the compiled file, dynamically changing with theARC_COMPILER_SAVE_PATHandARC_COMPILER_CSS_FILE.EXAMPLES
See the Files for more info.'compiler' => array( 'body', // Will add ALL background attribute to body 'background-color' => '.direct-match-with-a-value-from-the-field', 'border-color,background-color' => '.will-use-the-background-color-for-both', //Will use closest match '!border-color' => '.border-color-set-with-bg-color-value-and-important', 'border-color,!background-color' => '.bg-is-important-but-border-is-not', 'background-image' => '.adds-bg-image-with-url-wrap-to-this-class' ),November 23, 2015 at 12:41 am #8267
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
skat
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
Hey Frank,
That’s awesome. Can’t wait to check it out.
Cheers!
ChrisNovember 23, 2015 at 2:23 pm #8288
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657
Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
frankfava
Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
Let me know how you go 🙂
-
AuthorPosts
You must be logged in to reply to this topic.