Tagged: CSS
-
AuthorPosts
-
June 12, 2017 at 4:00 pm #806927
hi,
we are struggling with using enfold in our development cycle.
usually we a have a dev server and a staging server which sync via rsync for all files related stuff and via https://wordpress.org/plugins/wp-migrate-db/ for everything db. this usually works with well written themes.
with enfold (which is superbly written, don’t get me wrong!) we learned, that some kind of css stub is put into wp-content/uploads/enfold_child.css (we are using the child theme). we started rsyncing this file as well, but it seems to appear/disappear in mysterious ways so that the target website isn’t finding it.
can someone from the support team explain what happens and maybe has an idea how to mitigate this?
June 13, 2017 at 3:52 pm #807535Hey perler,
It has to be a file wp-content/uploads/dynamic_avia/enfold_child.css, it is a file that is generated dynamically with the values from General Styling, Advanced Styling and Quick css and other tabs in theme options. So you don’t really need to worry about it. You can go to quick or make a small adjustment in styles in theme options and the file should be regenerated for the new location. Hope this answers your concerns :)
Best regards,
VictoriaJune 16, 2017 at 1:16 pm #808957ok, thanks, I understand now. Is there an url which regenerates the CSS so that we can call this after our rollout to staging? right now, we need to manually change “something” which is not very practical.
June 17, 2017 at 8:18 am #809229Hi,
You should only have to change a value and save for the file to be generated, it will take you less than a minute I would say.
Best regards,
RikardMay 26, 2018 at 1:26 am #962481we are struggling with using enfold in our development cycle.
usually we a have a dev server and a staging server which sync via rsync for all files related stuff and via https://wordpress.org/plugins/wp-migrate-db/ for everything db. this usually works with well written themes.
with enfold (which is superbly written, don’t get me wrong!) we learned, that some kind of css stub is put into wp-content/uploads/enfold_child.css (we are using the child theme). we started rsyncing this file as well, but it seems to appear/disappear in mysterious ways so that the target website isn’t finding it.
can someone from the support team explain what happens and maybe has an idea how to mitigate this?Hi,
It took me days to find this out (as descriped), but I need to count on my own style.css located in the enfold-child directory.(so without saving the ‘general styling’ in the backend) over and over again after a small adjustment in the css.
Is there an url which regenerates the CSS so that we can call this after our rollout to staging? right now, we need to manually change “something” which is not very practical.
I agree, this is far from practical in the proces of custom styling a site.
Is there a way to make the style.css from the child theme, the “leading one” (what it always is in other themes) ?
The theme itself is amazing and outstanding (my compliments!).But child themes are being used to override all other css styles (if the style is set in the child’s css file) as being last loaded file.
And it can’t be overwriten by for example, theme updates.My technical English is not bulletproof but I hope you can understand the importance of the (creative styling) proces.
It doesn’t help. So I would be gratefull if you provide a solution for this urgent matter.I apreciate the effort, my regards,
JeroenMay 28, 2018 at 1:41 pm #963180Hi Jeroen,
You just need to import theme options and save them, the dynamic_avia file will be generated with all the css you’ve set in the theme options.
Also, styles.css in the child theme is used as well and you can put your code there.
If you need further assistance please let us know.
Best regards,
VictoriaMay 28, 2018 at 1:48 pm #963190Hi Victoria,
Thank you for your quick reply.
I appreciate the answer, aldo it was not exactly what I’ve meant.
Therefore I started a new topic a few days ago, maybe you can read the exact ‘problem’ and solution I (and many users) would really be gratefull for.
Here is my topic.Thanks a lot!
JeroenMay 30, 2018 at 12:56 pm #964185Hi Jeroen,
If you do not use the css merging the styles from the file style.css from your child theme should apply as they are, no need for saving them like theme options. The css that goes to the dynamic avia is the styles you put in the Quick css box and other settings in the theme options.
Best regards,
VictoriaJune 3, 2018 at 10:00 pm #966247Hi Victoria,
That’s exactly what i’m looking for! But if you look at the sourcecode at http://www.real2drive.nl you see my child’s style.css isn’t loading at all.
Please help me out because i’m running out of time….
I highly appreciate the effort, I paste my style.css and functions.php under this line. Thanks for your input!style.css
/*
Theme Name: Enfold Child
Theme URI: https://cmsweb.online
Description: Child theme customized for real2drive
Author: cmsweb.online
Author URI: https://author.cmsweb.online
Template: enfold
Version: 1.0
Text Domain: enfold
*/h1 {
color: white;
}#footer {
padding: 15px 0 30px 0;
z-index: 1;
background: #0095DB;
}#socket {
font-size: 11px;
margin-top: -1px;
z-index: 1;
background-color: #0095db;
}#producten {
background-repeat: no-repeat;
background-image: url(//www.real2drive.nl/wp-content/uploads/20180514_140450.jpg);
background-attachment: fixed;
background-position: top right;
}functions.php
<?php
/** 1. Load the parent enfold\style.css file */
/** 2. Note: a custom.css file is located in enfold\css\ */
/** 3. Is this both setup correctly in functions.php ? */function total_child_enqueue_parent_theme_style() {
// Dynamically get version number of the parent stylesheet (lets browsers re-cache your stylesheet when you update your theme)
$theme = wp_get_theme( ‘enfold’ );
$version = $theme->get( ‘Version’ );// Load the stylesheet
wp_enqueue_style( ‘enfold-style’, get_template_directory_uri().’/style.css’, array(), $version );}
add_action( ‘wp_enqueue_scripts’, ‘enfold_child_enqueue_parent_theme_style’ );June 6, 2018 at 3:27 am #967589Hi,
Please try using our prebuilt Child Theme
Enfold already enqueueds the child theme css so it is not necessary to do it again.
Please note that if you have the Enfold Theme Options > Performance > JS & CSS file merging and compression turned on, and add css to your child theme, you will need you rebuild your merged files, to do this please go to Enfold Theme Options > General Styling > Quick CSS field and add a blank space, to enable the “Save all changes” button, and then save.
It is better to have the JS & CSS file merging and compression turned off while you are developing your site.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.