Excerpt on Home Page doesn’t Hide

Posted in: Newspaper
Post count: 53

Hi,
I have checked couple of threads here on the forum and found out the following code for hiding the excerpt on my home page

.home .td-post-text-excerpt{
display: none !important;
}

But the above code doesn’t work. I have also tried limiting the excerpt length from the Theme Panel>>Excerpt area but no success.

How can I hide/get rid of text (excerpt) on the homepage?

Post count: 20688

Hi,

That code may be old, if you want to hide the excerpts
https://www.screencast.com/t/1ocj7My9O
It will apply only on the homepage, it can be made more precise if needed

.home .td-excerpt{
display: none;
}

Thanks

Post count: 53

Hi,
Thank you. It worked. But there are 2 more challenges. How to adjust the space that has been created after removing excerpt and how to remove read more on following two places.
http://prntscr.com/jgg4wr
http://prntscr.com/jgg664

My site URL is http://www.morenews.pk

Post count: 20688

The code will remove the excerpts, the other module elements will remain in their original position. If you also do not want a read more button, maybe you should consider using a different predefined block there, or experiment with the flex block.

With CSS you could use a code like this maybe, modify it if needed
https://www.screencast.com/t/4CcfbFeM9F
Use for desktop only (Advanced CSS desktop section) on smaller devices it may not look properly. The read more button will be hidden automatically on smaller devices, by default.

.td_block_12 .td-read-more,
.td_block_22 .td-read-more{
display: none;
}
.td_block_12 .td-module-title {
position: relative;
top: 50px;
}

Post count: 53

Hello,
Sorry to get back so late on this following code
.td_block_12 .td-module-title {
position: relative;
top: 50px;
}
When i use this CSS, it works fine on the desktop but on the mobile device it pushes the titles at the bottom. Seems like there should be a restriction for the CSS not to execute on the mobile phones or limit it to execute only on the desktops.
http://prntscr.com/kayrxd

Post count: 20688

Hi,

There is such a restriction option, enter the code in the Advanced CSS section, entering the code in the desktop field will apply it only on desktop
https://www.screencast.com/t/c1orNtlUh2bm

Post count: 53

Hello,
Much thanks. It worked

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.