-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did files order change again? #750
Comments
Nothing was changed, the code looks fine https://github.com/ThemeFuse/Unyson-Shortcodes-Extension/blob/79f8054c9e759c32d07fe9c479cb8387251642c5/class-fw-extension-shortcodes.php#L50-L51 |
@moldcraft thnx bud , seems like it is on my end , hooks prints show first will have to digg a bit, nothing worse than getting back after long time. |
@moldcraft thnx bud , that is exactly what I have but I must have forgotten something else since I was pulled away in mid of huge change. Unyson seems fine. |
Something did change from 2.3.3 , one of the extensions Page on 2.3.3 http://prntscr.com/7vtk9f Page on 2.4.1 http://prntscr.com/7vtkjk I found old 2.3.3 install , updated unyson , no change |
How to reproduce? Send me the theme to |
@moldcraft cant send the theme since is to broad , will try to make a demo of the bug but just stepping back to old shortcodes extensions gives me the idea that you did change order of some files since if I use old shortcodes extension I get Fatal error: Extension "page-builder" is already defined |
OK bud , email sent with modified scratch , instructions , install unyson 2.3.3 your special heading should look like this the mod produces dynamic inline css http://prntscr.com/7vtz3z than lookup
you can find this
the class-thz-dochead.php class is inside includes now open
on line 16 find
now update to 2.4.1 and update extensions the styles for special heading will be gone
|
I added
they were executed in the order as above. If found the change/problem. A solution would be to move the code from function _action_theme_enqueue_dynamic_scripts() {
/* THZ custom CSS */
$add_css = '/*dynamic css*/';
$add_css .= 'a{color:#ff6600;}';
// cssinhead
if (isset(ThzDochead::getDocument()->dochead['cssinhead'])) {
$add_css .= implode(ThzDochead::getDocument()->dochead['cssinhead']);
}
wp_add_inline_style( 'fw-theme-style', $add_css );
}
add_action('wp_enqueue_scripts', '_action_theme_enqueue_dynamic_scripts',
99 // <--- Must be greater than http://bit.ly/1SDXLLl
); |
💯 thank you! I just moved the class calls for google fonts and cssinhead and it works. I just hope that this will be the final move. |
I was busy with designs past 6 weeks and just getting back to coding. Latest version I worked intensively on was 2.3.2. Today I updated to 2.4.1 and again have issues with dynamic styles load.
The hooks.php used here
#275 (comment)
seems like it loads after wp_head again. All dynamic styles are gone.
The text was updated successfully, but these errors were encountered: