Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #1115167

    Guys,

    I am done editing for my website and have enabled CSS file merging and compression for better website speed. But everytime I enable this function my CSS files get overwritten and some stuff is wrong. For example the two logos are now beneath eachother (wrong), when I disable the CSS file merging and compression one logo is left the other on the rigth side (Good). I already have tried to enable the “Delete old CSS and JS files?” but nothing helps. Please help me!

    Thank you in advance.

    Regards,
    Patrick

    #1115363

    Hey phouthuijzen,

    Thanks for the login details, though they are not working. Please check and verify. Where exactly can we find the CSS related to the logos?

    Best regards,
    Rikard

    #1115401

    Excuse me, new login details below :).

    The CSS related to the logo’s are in my style.css and functions.php files of my child-theme. I upload these files with Filezilla (FTP program). I have put the login for FTP credentials also in the private content area. If you login to my FTP, remember to go to the map /public/sites/www.ictleadservices.nl/enfolddemo This is where I have my new “under construction” website and the child theme files where I have put the code.

    Best regards,
    Patrick

    #1115622

    Hi Patrick,

    Thanks for that, though I can’t see anything in style.css in your child theme, it’s empty. And functions.php only contains a function without any styling. Are you saying that these files have other content before you turn on file compression, and after you have turned it on they are overwritten? Or could it be that you are uploading the wrong files via FTP?

    Best regards,
    Rikard

    #1117726

    Hi Rikard,

    Thank for replying zo quick.

    I think you must be watching the WordPress Theme Editor, because I see the same as you (no style.css in my child theme and one code in my functions.php). The strange thing is that if I Disable the CSS file merging and compression everything on the website is shown in a good way (logo etc.), so it should pick up the right style.css file. But nothing changes in the WordPress Theme Editor, I see no style.css code still empty (which is strange) and one code for the Header widget area in my functions.php (which is similar as the code I have uploaded with FTP). In other words I see the same results in WordPress Theme Editor when I disable or enable CSS File Merging. Nothing changes.

    You can see I have uploaded my style.css and functions.php files with FTP to the map: /public/sites/www.ictleadservices.nl/enfolddemo/wp-content/themes/enfold-child if you log in to my FTP. This is not wrong, is it? And you can also see that there is more code in my style.css on the FTP server than there is to see in the WordPress Theme Editor. Strange stuff….

    #1117912

    Hi,

    Thanks for the update, though the site in private seems to be down at the moment?

    Best regards,
    Rikard

    #1118708

    I just checked, should be working now.

    #1119032

    Hi,

    Thanks for that. Are you sure that you are uploading to the correct site? I’m checking the path in private, and I see the same content in your functions.php via FTP as I do in the WordPress editor:

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    //--------------------------------
    
    // Header widget area
    
    //--------------------------------
    
    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area' );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( 'header' );
    } 

    Best regards,
    Rikard

    #1122720

    Hi Rikard,

    Very busy so sorry for the delay. Where do I have to put my funtions.php and CSS file according to you? It is very strange that the website works with CSS and Javascript merging disabled, but does not work properly when enabled. So it should be on the correct site and map, because else it won’t work if i disable the CSS and Javascript merging.

    I have the same problem with another website. Also enabling of disabling the merging performance is the trigger for working website or not properly working. Meaning the CSS that is working or not working. Please have a look in to thjis, because this drives me crazy…

    With regards,
    Patrick

    #1123297

    Hi,

    You need to put this over functions.php file

    Best regards,
    Basilis

    #1123905

    Hi,

    I don’t understand what you mean. Maybe it will work at onother site: http://www.ictredactie.nl (same problem as above).

    In my child theme (/public_html/ictredactie.nl/wp-content/themes/enfold-child) i put a CSS code for the footer.(font-size 12px). When i enable merge and compress all theme CSS files and merge and compress all theme javascript files, my CSS didn’t work anymore. The font size is much bigger.

    Can you help me? What am i doing wrong?

    #1125049

    Hi,

    Thank you for the update.

    The site looks the same with or without the file compression. Can you give us a screenshot of the styling issue, or the difference when you enable the compression?

    Best regards,
    Ismael

    #1125064

    Hi,

    The first image is the good one (footer-right.jpg). The font size of my footer is 12px. Here is the CSS and Javascript file mering and compression disabled.
    When i enable the CSS and Javascript file, the font size is much bigger (footer-wrong.jpg)

    With Regards,

    • This reply was modified 5 years, 3 months ago by phouthuijzen.
    #1125448

    Hi,

    Thank you for the info.

    The following code is added in the style.css file, but when we try to edit the file from the Appearance > Editor panel, it’s blank. Why is that?

    #footer .widgettitle + * {
        font-size: 12px !important;
    }

    Best regards,
    Ismael

    #1125530

    Hi,

    That is very strange. When i go to the appearance > editor panel, it’s not blank. See the picture.

    I have no idea what is going wrong here..

    Best Regards,

    #1125856

    Hi,

    Thank you for the update.

    We can access the style.css file now. Odd.

    We moved the css in the Enfold > Quick CSS field and re-enabled the compression. This time it works.

    Best regards,
    Ismael

    #1125945

    Hi,

    Thank you. It is working now. Nice!

    But one question remain: To the right of the Quick CSS is this: Just want to do some quick CSS changes? Enter them here, they will be applied to the theme. If you need to change major portions of the theme please use the custom.css file or the Enfold Child theme.

    Why isn’t our child theme working when we enable CSS and Javascript file mering and compression? What are we doing wrong?

    Best Regards,

    #1126244

    Hi,

    Thank you for the update.

    Did you add any modifications related to the style.css file? We are not really sure why the style.css is not being included in the compression.

    Best regards,
    Ismael

    #1127616

    Hi Ismael,

    No we did not add any modifications related to the style.css file. So i really don’t know why it isn’t working..

    Best Regards,

    #1128766

    Hi,

    I see. We can’t really reproduce the issue on our end, so this is probably an issue with a plugin or perhaps a server configuration but that’s very unlikely. As a temporary solution, add the style modification in the Quick CSS field instead of the child theme’s style.css file.

    Sorry for the late response.

    Best regards,
    Ismael

    #1286428

    Hi,

    In about 1,5 years later we still have this problem. We are currently working on a new site. We are working in the Enfold-Child template, with a style.css. I put this code in the style.css: .container_wrap { border-top: none; }. When i enable merge and compress all theme CSS files and merge and compress all theme javascript files, my CSS didn’t work anymore. The border (under the breadcrumb) is still visable. When i disable merge and compress all theme CSS files, the border is gone (what i want). When i put the code .container_wrap { border-top: none; } in Enfold > Quic CSS field, it also works. But that is not what i want. Why is my style.css not working in my Enfold Child theme, when i enable merge and compress all them CSS files?

    Best Regards,

    #1286974

    Hi,

    Thanks for the update. Please post admin WordPress login details in private to the new site, so that we can have a closer look.

    Best regards,
    Rikard

    #1287022

    Hi,

    I put the login details in the private section.

    In the mean time i am working at the site. In the style.css of the Enfold Child theme you can see the code: .container_wrap { border-top: none; }. This is not working.

    Because this doesn’t work, I temporarily put other css changes in the quick CSS field. Eventually I want to have this in the style.css file too.

    Best Regards,

    #1288030

    Hi phouthuijzen,


    @phouthuijzen

    There had been a invalid character at the beginning of styles.css – opening it in WP theme editor showed a red point. Removing this it is working now.

    Best regards,
    Günter

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.