Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #608545

    Hi! Tried to follow the advice here – https://kriesi.at/support/topic/using-png-icons-in-enfold/

    I’ve got this working, but there’s only one ‘custom css’ field per iconlist – how can I add custom css per list item?

    Thanks!

    #608590

    Hi!

    There’s no easy way to set a custom class to sub elements but one thing you can do is target them numerically with CSS nth-child:

    .avia-icon-list > li:nth-child(1) {}
    .avia-icon-list > li:nth-child(2) {}
    .avia-icon-list > li:nth-child(3) {}
    

    Cheers!
    Josue

    #608810

    Great, thanks for letting me know Josue – I’ll give this a go.

    #608820

    Hi!

    Please do so and let us know so we can mark the thread as resolved or assist you further

    Best regards,
    Yigit

    #610656

    Thanks to both. I could do with some assistance with this if you can. It seems to target the overall area but I don’t know how to add images into the icon circles!

    #610698

    Here you go:

    #top .avia-icon-list > li .iconlist-char:before {
        content: "";
        height: 60px;
        width: 60px;
        background-size: contain;
        display: block;
    }
    
    #top .avia-icon-list > li:nth-child(1) .iconlist-char:before{
        background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat top center;    
    }
    #top .avia-icon-list > li:nth-child(2) .iconlist-char:before{
       background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat top center;    
    }
    #top .avia-icon-list > li:nth-child(3) .iconlist-char:before {
       background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat top center;    
    }
    #610850

    Thanks so much for this Josue, I’ll give it a go!

    #610867

    Works perfectly! You’re a star!

    Now is there anyway I can change the H class of the iconlist headers? Like make them H5 instead of H3 ;)

    #611025

    Hey!

    You’d need to edit that directly in /enfold/config-templatebuilder/avia-shortcodes/iconlist.php, line 434.

    $title_el = "h4";
    

    Regards,
    Josue

    #612706

    Many thanks. I may just edit my H sizes, might be easier!

    For future reference, can I do this with a Child theme and keep the main one intact?

    #612712
    #612715

    Brilliant, thanks

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘PNG's in iconlist’ is closed to new replies.