Remove excerpt
-
How do I remove “There is no excerpt because this is a protected page” on my Client Viewing page
The blog I need help with is: (visible only to logged in users)
-
Hi there!
You can do this using the following code:
.page-id-1471 .entry-summary { display: none; }Copy and paste that into the CSS area in your Customizer.
-
-
-
Thanks for the code, Shawna. Let me give it a try as I was just going through this thread.
Is there a way to remove “protected:” before the names?
There’s no “clean” way to do this, at least not any I’m aware of. But, we can try to hack our way, it involves manually copy/pasting the code for each page listed on the “Client Viewing” page.
For the current pages/posts listed there, this should work:
#post-1564 .entry-title { margin-left: -174px; } #post-1564 .entry-title:before { background: white; content: ":"; position: absolute; width: 170px; } #post-1551 .entry-title { margin-left: -174px; } #post-1551 .entry-title:before { background: white; content: ":"; position: absolute; width: 170px; } #post-1553 .entry-title { margin-left: -174px; } #post-1553 .entry-title:before { background: white; content: ":"; position: absolute; width: 170px; }Did you notice a pattern? All the 3 blocks of code are same, except the #post-1xxx. This is what needs to be changed for each post.
If you want to add more pages to the list, find its #post-xxxx id from Inspect Element and add the respective code for it. There’s a nice guide on how to use Inspect Element posted here.
-
- The topic ‘Remove excerpt’ is closed to new replies.