Tagged: x
-
AuthorPosts
-
June 22, 2016 at 4:25 am #1053991
caitlinhParticipantPlease advise how to do two things:
1. Remove the box around the title and excerpt content under the featured image of each post on the homepage (these are created using the recent posts shortcode).
2. Show the entire excerpt I added into the excerpt box on the post page (using the native WordPress excerpt option).
Site info below.
June 22, 2016 at 4:25 am #1053993
caitlinhParticipantThis reply has been marked as private.June 22, 2016 at 7:07 am #1054192
ChristianModeratorHey Caitlin,
There is no box around the title and excerpt. Can you give us more details and screenshot regarding this. Also, please give us access to your WordPress admin.
Thanks.
June 22, 2016 at 11:00 pm #1055711
caitlinhParticipantI switched stacks in order to remove the box.
I still need to know how to get a larger amount of excerpt text underneath, and possible a nice “read more” button if that’s possible would be super great.
Access below.
June 22, 2016 at 11:00 pm #1055712
caitlinhParticipantThis reply has been marked as private.June 23, 2016 at 3:05 am #1055928
Paul RModeratorHi,
You can change it in this line of code in your child theme’s functions.php.
. '<span class="x-recent-posts-excerpt">' . strip_tags(excerpt(25)) . '</span>'Change 25 to a larger number.
To add read more, add this line below it.
. '<span class="read-more-text"> Read more..</span>'Hope that helps.
June 23, 2016 at 4:11 am #1055989
caitlinhParticipantOne last question… I wanted all my hyperlinks on my site underlined, so I added code in Customizer for that. However, I would like to exclude the excerpt from this rule so that:
The excerpt text is NOT underlined
BUT the “Read More” link IS highlightedJune 23, 2016 at 6:53 am #1056185
Paul RModeratorHi,
You can add this under Custom > CSS in the Customizer.
.x-recent-posts a { text-decoration: none; } .x-recent-posts a .read-more-text { text-decoration: underline; }Hope that helps.
June 24, 2016 at 5:18 am #1057845
caitlinhParticipantHopefully one last follow up question. How do I:
1. Make there be three dots (…) at the end of the excerpt but NOT after “Read More”
2. Make the underline ONLY go under “Read More” and not in the space before it (screenshot attached)
June 24, 2016 at 5:22 am #1057851
Paul RModeratorHi,
Please change this line of code
. '<span class="read-more-text"> Read more..</span>'to this
. '... <span class="read-more-text">Read more</span>'Hope that helps.
June 24, 2016 at 6:54 am #1057917
caitlinhParticipantYou’re the best thank you so much!!!
June 24, 2016 at 7:30 am #1057956
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1053991 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
