New Landing How can we help? Themeforest Theme Support Dante Custom image icon box

Viewing 15 posts - 1 through 15 (of 25 total)
  • Posted in: Dante
  • #231112
    tooeasy
    Member
    Post count: 38

    Hi,
    I’m trying to set up a custom image instead of an icon in a “icon box left” using this CSS code:

    .estraclass .sf-icon-standard .sf-icon-cont {
    background-image: url(“http://www.alvaropmarketing.com/wp-content/uploads/2015/11/logo-black.png”);
    background-repeat: no-repeat;
    background-size: 100% auto;
    }

    But I don’t know how to hide the hover effect and circle around the image. How can I fix it?

    Thanks.

    #231137
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to check and resolve the issue.
    Thanks
    Mohammad

    #231376
    tooeasy
    Member
    Post count: 38
    This reply has been marked as private.
    #231432
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .estraclass .sf-icon-standard .sf-icon-cont{
    background-image: url("http://www.alvaropmarketing.com/wp-content/uploads/2015/11/logo-black.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    border:none !important;
    }
    
    .estraclass  .sf-icon-cont:hover{
    border:none !important;
    background-color:transparent !important;
    }

    Thanks
    Mohammad

    #231446
    tooeasy
    Member
    Post count: 38

    Thanks Mohammad.

    the first code works well but the code for the hover effect is not working. The blue color is still there.

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #231454
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this custom css code:-

    .sf-icon-cont:hover{
    border:none !important;
    background-color:transparent !important;
    }

    Thanks
    Mohammad

    #231455
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    .sf-icon-box {
      pointer-events: none;
    }

    – Kyle

    #231466
    tooeasy
    Member
    Post count: 38

    It worked perfectly. Thanks.

    One more thing. How can I maintain the same line height in the icon boxes? I want to set the same line height that is on the rest of the body text of my site.

    Thanks.

    #231468
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .sf-icon-box-content > p {
      line-height: 31px;
    }

    – Kyle

    #231470
    tooeasy
    Member
    Post count: 38

    Thanks. Amazing support guys.

    #231471
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

    #231661
    tooeasy
    Member
    Post count: 38

    Hi, it worked well because I was using a round icon image, but I tried changing the image and it is being cropped maintaining a round shape. How could I avoid this circle shape to show the full image?

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #231703
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this:

    .sf-icon-cont {
      border-radius: 0;
    }
    

    – Kyle

    #231752
    tooeasy
    Member
    Post count: 38

    Thanks, one last question. Hoy could I put the icon at the same height of the text of the box?
    And How could I set up a bigger icon? I want to upload an icon bigger than 70x70px but it is being resized.

    Thanks again guys.

    #231760
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Go to themes/dante/swift-framework/page-builder/builder/shortcodes/icon-boxes.php and edit line 30:

    $image_object = sf_aq_resize( $img_url, 70, 70, true, false);

    – Kyle

Viewing 15 posts - 1 through 15 (of 25 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register