Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #949447

    Hi – I am having a similar problem where I am putting css code in the childtheme css file, and no changes are being seen on the site.

    e.g.
    #top .template-page .entry-content-wrapper h2 {
    text-transform: none!important;
    letter-spacing: 0px!important;
    }
    #top #topheadtitle .template-page .entry-content-wrapper h2 {
    margin-bottom:0!important;
    }

    (#topheadtitle is a cusom ID I applied on the page to try to help)

    When I inspect element in my browser, usually the childtheme css would show, but be crossed out if it wasn’t being used (bad hierarchy) – whereas it is not even showing. Most of the styles showing are coming from uploads/dynamic-avia/ folder.

    I have also got this error a couple of times – probably unrelated?
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in mysite/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/external/JSqueeze.php on line 484

    On another thread you said “You can check your css code by trying to enter it in WordPress > Customize > Additional CSS.” but I get the above error on the page preview there before i even try anything.

    #949448

    login in private

    #949467

    I have fixed the memory error (adding define( ‘WP_MEMORY_LIMIT’, ‘256M’ ); to the wp-config file).

    When I now use the css editor within wordpress I can see it makes changes, so why doesn’t it work in my childtheme css?

    #949482

    Hi,
    I have taken a look at your site and adjusted your css a little, and it now works.
    Please note that the css is merged within the theme, so if you make a change to your child theme stylesheet you will need to regenerate the merge. To do this, please go to General Styling > Quick CSS field and put a space in so the Theme Options “Save all changes” button allows you to click it.
    Then clear your browser cache to see your changes.

    Best regards,
    Mike

    #949800

    Thanks – however what you have done is add specific classes to two elements which has worked.
    However, I want to change all h2 headings, without having to apply a class each time. On many of my previous Enfold sites I have done this easily in the child theme css, but on this latest version they are just not working. I am afraid some of my previously working child theme css on other websites will now not work with theme update…?

    #949949

    Ok, so I didn’t quite head what you said about needing to update the quick css (even just with a space) and save in order for the css to reset. When I do this my child theme css works. Strange this is needed – didn’t used to be. But hopefully it means my past custom css in older sites is still safe.

    #949961

    Hi,
    Yes your custom css for older sites is safe, Please read this post it helps explain why the css & js are merged.

    Best regards,
    Mike

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