Tagged: x
-
AuthorPosts
-
January 5, 2017 at 4:50 pm #1317941
Suzanne SParticipantHi
This is the code I have for a ‘read more button’ on my blogroll but it doesn’t work. Can you fix it please?
//Read More Button For Excerpt function custom_excerpt_read_more_link($output) { global $post; return $output . ' <a>ID) . '" class="class=”more-link my-right-btn" title="Read More">Read More</a>'; } add_filter( 'the_excerpt', 'custom_excerpt_read_more_link' );// =============================================================================
Also – I have my blog page to show 10 posts but when I go to page 2 there is nothing there. I tried creating a page and calling it /articles/page/2/ but this doesn’t work.
Can you help?https://howtostartworkingathome.com/articles/
thank you
SuzanneJanuary 5, 2017 at 11:20 pm #1318410
RupokMemberHi Suzanne,
Thanks for writing in! Where you are trying to add the read more? Do you want this within excerpt? Your code looks broken, so check you are copying the code properly if you grabbed this from forum. You can follow these threads : https://community.theme.co/forums/topic/read-more-button-for-blog-excerpts/ and https://community.theme.co/forums/topic/how-to-add-read-more-button-on-blog-posts/#post-1189181
Cheers!
January 6, 2017 at 2:58 am #1318560
Suzanne SParticipantI tried the code from the links you provided and it doesn’t work.
I have the read more link shown here: https://howtostartworkingathome.com/articles/ on my blogroll. What I want is for the read more link to be a read more button.
Also on the same page (blogroll) I have more than one page of blog posts but when I click the other pages I get a 404. How do I create more blogroll pages?
January 6, 2017 at 3:42 am #1318608
Rue NelModeratorHello There,
Thanks for updating in! I have check your page and it appears that you have added an incomplete code. Please have your code updated and make use of this code instead:
//Read More Button For Excerpt // ============================================================================= function custom_excerpt_read_more_link($output) { global $post; return $output . ' <a href="' . get_permalink($post->ID) . '" class="more-link x-btn x-btn-mini" title="Read More">Read More</a>'; } add_filter( 'the_excerpt', 'custom_excerpt_read_more_link' ); // =============================================================================We would loved to know if this has work for you. Thank you.
January 6, 2017 at 4:17 am #1318647
Suzanne SParticipantThanks that code creates the button.
How do I have the button to align right?
and
Please could you answer my 2nd question about my blogroll pages?
January 6, 2017 at 7:43 am #1318787
Paul RModeratorHi,
To align it right, you can add this in Custom > Edit Global CSS in the customizer.
.blog .more-link { float:right; }With regards to page 2, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
January 6, 2017 at 8:19 am #1318831
Suzanne SParticipantThis reply has been marked as private.January 6, 2017 at 12:14 pm #1319126
JadeModeratorHi Suzanne,
Kindly go to Settings > Permalink > Category Base then leave the option blank.
Hope this helps.
January 6, 2017 at 3:02 pm #1319317
Suzanne SParticipantBrilliant…thank you so much 🙂
January 6, 2017 at 11:37 pm #1319831
Rue NelModeratorYou’re welcome!
We’re glad we were able to help you out. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1317941 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
