Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1390358
    Melissa437
    Participant

    hiya,

    Just playing with the card element and I would love to add an image to the reverse of the card..

    https://dolcelussocakes.mystagingwebsite.com/press/?cornerstone=1

    #1390369
    Melissa437
    Participant
    This reply has been marked as private.
    #1390425
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    .x-card-outer .x-card-inner {
        background-image: url(//URLtoImageHere);
        background-size: contain;
    }
    
    .x-face-outer.front,
    .x-face-outer.back {
        background-color: transparent!important;
        border-color: transparent!important;
    }

    Hope this helps.

    #1391597
    Melissa437
    Participant

    Thank you for your reply but what do i do to make it a different image each time?
    Thanks
    Mel

    #1391737
    Christian
    Moderator

    Add a class to your card (see attachment) then append the class in .x-card-outer like

    .x-card-outer.test .x-card-inner

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1390358 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>