Support » Plugin: AMP for WP - Accelerated Mobile Pages » Change buttom color in AMP

  • elviajemehizoami

    (@elviajemehizoami)


    Hi.

    I’m trying to change the color of the AMP buttons to blue but I can not find the place where I should do it. I have searched all the plugin files and my theme css file but can not find anywhere this rule or the same with rgba.

    .amp_btn a {
    background: #f92c8b;
    }

    I write whit page builder a class named “botoncete” and I write this in custom css

    .botoncete a {
    background: #90c9e0 !important;
    }

    But in the code appear this (the second one strikethrough)

    .amp_btn a {
    background: #f92c8b;
    color: #fff;
    padding: 9px 20px;
    border-radius: 3px;
    display: inline-block;
    box-shadow: 1px 1px 4px #ccc;
    }
    .botoncete a {
    background: #90c9e0;
    }

    If I write in custom CCS

    .botoncete a:hover {
    background: #90c9e0 !important;
    }

    Works perfect. I don´t know what is the problem.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi,

    !important tags are not allowed in AMP.

    Kindly use the below CSS, it will help you get that color.

    .amp_btn a {
    background: #90c9e0;
    }

    Hope that helps

Viewing 1 replies (of 1 total)
  • The topic ‘Change buttom color in AMP’ is closed to new replies.