Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #435721

    Hey guys, I’m trying to add a custom css class to xtra-large buttons that are on my homepage and for some reason it is not working.

    I have tried inputting the css in both the Quick CSS, and the child theme’s stylesheet, but neither seem to work.

    I’ve tried both of the following, but to no avail (“hp-btn” is the custom css class):

    .avia-button.avia-size-x-large .hp-btn {
    width: 100% !important;
    }

    .avia-button.avia-size-x-large.hp-btn {
    width: 100% !important;
    }

    #435951

    Hi Jamie!

    I can see your class added to the wrapper div:

    avia-button-wrap avia-button-center  avia-builder-el-3  avia-builder-el-no-sibling  hp-btn
    

    Are you trying to get the button to span 100% of the site width?

    Regards,
    Rikard

    #436222

    Thanks Rikard. I am trying to get the button to span 100% of the 1/2 layout element.

    #436529

    Hi!

    Please try the following in Quick CSS under Enfold–>General Styling:

    .hp-btn .avia-button {
      min-width: 100% !important;
    }

    Regards,
    Rikard

    #436721

    Perfect, that seemed to work! Thanks Rikard, very much appreciated.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Custom CSS issue with child theme’ is closed to new replies.