• Resolved brighella

    (@brighella)


    Hi, I’m writing my css rules inside a style.php file, inside the <style amp-custom> tag.
    I have read your documentation but I don’t understand why some css rules disappear.
    If I write:

    .amp-due {
            font-size: 18px;
            opacity: 1;
        }
        .testino {
            color: blue;
        }
    .unodue {
    color: red; }
    

    Then this part is cutted off on my source.
    While if I write:

        #_bbImaVideo[sticky] {
            visibility: visible;
        }

    It appears without problem.
    Why do some things disappear?
    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @brighella,

    Thanks for contacting us, could you tell which template mode are you using?

    AMP-custom-style is generated by the plugin after minification and tree shaking, The CSS rules can disappear if the plugin doesn’t, find those elements on the page or if the CSS budget is over 75KB.

    Could you share your UUID so I can provide more feedback?

    Thread Starter brighella

    (@brighella)

    Hi, I’m sorry but at the moment I cannot share information due to internal problems.
    Either way, the configuration we have is template: reader mode.
    In technical background we have: non technical.
    I hope this can be enough to understand what’s happening.
    Thank you so much!

    Hi @brighella,

    On reader mode, what theme are you using?

    Have you already checked this guide?

    Thread Starter brighella

    (@brighella)

    Thank you Fellyph for reply!
    We are using a custom theme and yes, I’ve tried to use the function in the guide before to contact you but nothing happens.
    Should I change some settings?
    Thank you!

    Hi @brighella,

    Are you using any cache plugins, and do you have the website published?

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘amp custom style cut away’ is closed to new replies.