Okay
  Public Ticket #3613252
Masking blog card
Closed

Comments

  •  17
    TheSnapAgency started the conversation

    Good morning,

    Please can you advise on how I can edit the Nectar blog card to look like the one from my mock-up below?

    9125198007.png


    This is how the blog card is currently styled. I’m having a hard time trying to replicate the shape of the blog card from the mock-up.

    4540578533.png


  •  2,724
    Andrew replied

    Hi Jordan,

    Thank you for getting in touch.

    Unfortunately, we currently don't have a way to add this into our theme. Adding this would require some extensive customization which I'm afraid we are not able to offer due to support scope limitations. 

    However, we are partnered with a trusted provider of expert-level Salient customization. If you are interested in initiating a project, we recommend referring to our guide at the following link: https://themenectar.com/salient/customization/

    Best Regards,

  •  17
    TheSnapAgency replied

    Hi Andrew,

    Thanks for your response.

    Would it be possible to assign this ticket to Tahir to get his feedback please?

  •  1,658
    Judith replied

    Hello Jordan,

    Thanks for writing back.

    Sure, we can assign to Tahir.

    In the meantime, should you have any further questions or encounter any issues, please don't hesitate to reach out.

    Best regards,

  •  8,416
    Tahir replied

    Hey Again,

    Try applying a mask using the below CSS and check.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .nectar-post-grid-item {
        -webkit-mask-image: url(https://dpsac.nimsite.uk/wp-content/uploads/2024/02/shape-01.svg);
        -webkit-mask-size: cover;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: top center;
    }

    Thanks


    ThemeNectar Support Team 

  •  17
    TheSnapAgency replied

    Hi Tahir,

    Thanks for getting back to me, I appreciate your help as always.

    I've already used similar CSS on one of the service cards on the homepage, but have found that the "mask-image" attribute doesn't respond very well when reducing the screen size. 

    Do you know whether there is an alternative method to make these elements respond better for smaller devices? At the moment the mask either cuts off or leaves lots of spacing around the element depending on the "mask size" option that is selected.


  •  8,416
    Tahir replied

    Hey Again,

    You can adjust the below size values to make it scale responsively.

    -webkit-mask-size: 100% 140%;

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .nectar-post-grid-item {
        -webkit-mask-image: url(https://dpsac.nimsite.uk/wp-content/uploads/2024/02/shape-01.svg);
        -webkit-mask-size: 100% 140%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: top center;
    }
    

    Thanks


    ThemeNectar Support Team