Shopify themes, liquid, logos, and UX
Hello.
I use the Dawn theme.
I would like to remove the text from the blog posts showing on the home page only. I want it to go from this:
to this :
If I could keep the way the title and the date is showing on the second picture, that would be amazing ! I love everything about it. The size of the picture. the fact that the title and the date are centered.
Anybody can help me with the coding please?
Thank you!
Hello @petitlaurierco
would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.
@Tech_Coding thank you for getting back to me! Here's the link to my shop : https://petitlaurier.co/
Hello @petitlaurierco
Our team is ready to help you.
Please share your website URL so that we can check and assist you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
@BSS-TekLabs thank you for getting back to me! Here's the link to my shop : https://petitlaurier.co/
I see on your home page it looks like you want it to. How would you like to fix it?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
@petitlaurierco
Do you want to hide the excerpt
.lh-item-blog .lh-article-excerpt {
display: none!important;
}
also from blog page like home page , if yes you can add this css
1. Online Store
2. edit code
3. base.css insert this css
it will hide
Thank you
Hello @Arif_Shopidevs Thank you for your help. I pasted this code in the base.css but its unfortunately not working 😞
it must work , please save and clear the cache , due to cache it do not effect yet
Hi @petitlaurierco ,
I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </head> on theme.liquid
<script>
document.addEventListener("DOMContentLoaded", function() {
if (window.location.pathname.includes("blogs")) {
var style = document.createElement('style');
style.innerHTML = `
.lh-article-excerpt {
display: none !important;
}
.lh-article-head {
text - align: center !important;
}
`;
document.head.appendChild(style);
}
});
</script>
Result:
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024