Related Products Edit

Good morning,

I have the following code in place to affect several individual posts on denverhighriseliving.com/condo-intel/:

/Condo Intel Advertisements/
.woocommerce .post-1743 .entry-wrap,
.woocommerce .post-1743 .entry-wrap:before {
background-color: transparent !important;
}

.woocommerce .post-1743 .entry-header a.button,
.woocommerce .post-1743 .woocommerce-products-compare-compare-button {
display: none;
}

.woocommerce .post-1688 .entry-wrap,
.woocommerce .post-1688 .entry-wrap:before {
background-color: transparent !important;
}

.woocommerce .post-1688 .entry-header a.button,
.woocommerce .post-1688 .woocommerce-products-compare-compare-button {
display: none;
}

.woocommerce .post-2036 .entry-header a.button,
.woocommerce .post-2036 .woocommerce-products-compare-compare-button {
display: none;
}

When I take a look at the “Related Products” feed at the bottom of every product (seen here: https://prnt.sc/k8py48), I notice that the individual posts affected with the prior code are no longer being affected. Is there a way to apply it there too? It should just be a picture, linking to another website. I also am noticing a 15px margin on the bottom of those related products… can that be removed?

Thank you!
J

Hi J,

Do you aim to hide the advertisement block on the targeted products under Related Product block?

If so, try adding this code:

.woocommerce .post-1743 .entry-wrap {
    display: none;
}

You can find more info on how to check for CSS selectors here.
Then information about writing your custom CSS here.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.