Child Theme not working
This support request was posted in Flatbase by Plytix
- Plytix October 19, 2016 at 2:33 pm
After having a lot of trouble with the child theme not applying the styling correct, I tried to make my own according to your instructions, but it’s still not working for me. Can you send me a child theme that works, I can’t find any child theme downloads anywhere in my account.
Juanfra Aldasoro October 19, 2016 at 3:21 pmHi,
Thank you for writing.
Are you using the one included in your ThemeForest package? Is there any chance you can send me the child theme you are using via dropbox or similar?
You should be able to download the child theme from your account dashboard now, we have updated that.
Thank you,
Juan.Plytix October 19, 2016 at 3:45 pmCould you please access the credentials we gave you to upload whatever needs to be uploaded?
Yes., we installed the themes from our themeforest download, just bought last week. After, we installed the child theme you provided us here.
We don’t use Dropbox. If you give us an email I could send it over.
Juanfra Aldasoro October 19, 2016 at 4:26 pmJuanfra Aldasoro October 19, 2016 at 4:45 pmHi,
I’ve been through your site and I could see that the child theme is installed correctly.
Would you please tell me what are the things that you are seeing that are not displayed correctly?
Thank you,
Juan.Plytix October 20, 2016 at 7:28 amHi, all the theme settings we modify are just ignored.
Regardless we do it through themes->[active theme] -> customize or NiceThemes->theme options, all the changes (e.g. we changed the header color to orange) won’t take any effect in the site.
Cheers
Juanfra Aldasoro October 20, 2016 at 1:41 pmHi,
Thank you for the follow up and sorry for the inconvenience this may have caused you.
There’s an error with the order in which the inline styles are loaded for child themes (they’re loaded before the stylesheet and that’s why you are not seeing any of the changes you made on the Options panel).
I’ve tried to edit the file I needed to in your site’s dashboard and I couldn’t. Would you please change the line #20 from the file /flatbase/includes/theming/style.php
From
add_action( 'wp_enqueue_scripts', 'nice_custom_styling', 8 );
to
add_action( 'wp_enqueue_scripts', 'nice_custom_styling', 100 );
We’ll have a deeper view on this issue and will include the fix for the upcoming version.
Thank you again and thanks for your patience.
Best,
Juan.Juanfra Aldasoro October 20, 2016 at 1:46 pmOr actually you can also go in your child theme and change the priority in which the styles are enqueued.
In your child theme functions.php file go to line #19 and change
add_action( 'wp_enqueue_scripts', 'nice_child_theme_enqueue_styles' );
For
add_action( 'wp_enqueue_scripts', 'nice_child_theme_enqueue_styles', 1 );
Best,
Juan.Juanfra Aldasoro October 21, 2016 at 1:56 pmThank you for the heads up.
Please let us know if you need any further assistance.
Best,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.