Okay
  Public Ticket #3693817
Woocommerce quickview box
Closed

Comments

  •  10
    adelinemartin started the conversation

    Hello,
    I would like to add a margin all around the product lightbox, when you click on "quick view", how can I manage that in CSS please ?

    Thank you.

  •  8,938
    Tahir replied

    Hey Again,

    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-quick-view-box .inner-content {
        padding: 20px;
    }
    body .nectar-quick-view-box div.product div.images {
        overflow: hidden;
    }

    Thanks


    ThemeNectar Support Team 

  •  10
    adelinemartin replied

    Thank you for your answer.

    Would it be possible to use margin instead of padding ?

    The padding crops my picture.

    I tried to replace padding with margin in the code but nothing happens.

    Thank you.

  •  1,919
    Judith replied

    Hi there

    Thanks for writing back.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    .nectar-quick-view-box .flickity-viewport {
        scale: 0.9;
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 


  •  10
    adelinemartin replied

    Thank you @judith.

    The result isn't exactly what I wanted because I needed a margin around the whole box and not only the picture.
    I tried to combine both your code and @tahir's and with some little ajustments it looks okay, not exactly what I wanted because I wanted a margin all around the box.

    With your code, the margin I get is not the same all around the picture, do you know why?

    Just one more thing, the padding has a different background color from the box, how can I change that please?

    Thanks very much.

  •  1,919
    Judith replied

    Hi Adelinemartin,

    Thanks for writing back.

    Just for confirmation, would you want the margin background color to be great as is on the side ?

    6068559701.png

    I look forward to your response.

  •  10
    adelinemartin replied

    Thank you @judith, yes exactly this color+even margin!

    I made a collage to show you how I picture it.

    Thank you!

    Attached files:  capture3.JPG

  •  1,919
    Judith replied

    Hello Adelinemartin,

    Thanks for writing back.

    To make the changes as requested, you will need to add some custom CSS code. To do this, please follow these steps:

    From your WordPress dashboard, Navigate to Salient > General Settings > CSS/Script Related. In the custom code area, insert the provided CSS snippet:

    .nectar-quick-view-box .inner-wrap {
        background-color: #f7f6f4;
    }

    Once the code is added, save and refresh the page to see if the change has been applied. In case it helps, please check this section from the documentation on CSS/Script Related. If this does not work as expected or If you have any further questions or need additional assistance, don't hesitate to write back, I'm happy to help. 


  •  10
    adelinemartin replied

    This works fine, thanks.

  •  1,919
    Judith replied

    Hello Adelinemartin,

    I'm happy that we could assist you! If you haven't already, please consider sharing your experience by leaving a review on ThemeForest.

    If you've enjoyed Salient, be sure to check out Nectarblocks, our latest innovation for building websites visually with WordPress.

    Your feedback is valuable to us and greatly appreciated!

    Should you have any further questions or encounter any difficulties along the way, please don't hesitate to reach out. 

    Best regards,