How To Have Title And Price Of Product Show/ Reveal Upon Hovering

hey im trying to get a specific look to my items when you hover over them similar to this https://thehouseofdrew.com/

heres my website and what it does now - https://lerille.shop/

@chaselerille Just follow below steps-

  1. Go to Online Store

  2. Edit Code

  3. Open Theme.liquid file

  4. find tag and above this tag paste below code and Save!


Your product section look like this screenshot-

Please let me know when works and please mark as solve and like!

Hello @chaselerille ,

You can try to follow these steps:

Go to Online Store → Themes → Actions → Edit code

Go to Assets folder → base.css file → add this following code

.product-item:hover .product-item-details {
  opacity: 1;
  visibility: visible;
}

.product-item-details {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background-color: white;
  z-index: 10;
}

.product-item-details h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-item-details .price {
  font-size: 16px;
  color: #333;
}

Save and preview

Hope this can help.

OneCommerce team.

Hi @chaselerille please add this CSS code at the bottom of you base.css file

@media screen and (min-width: 900px) {
li.grid__item:hover .card__content .card__heading h5 {
    position: absolute;
    top: 0px;
    width: 100%;
    text-align: center;
}
li.grid__item:hover .card__content .price {
    text-align: right !important;
}
.card-wrapper {
    padding-top: 30px;
}
}

thank you sir! worked perfectly