-
AuthorPosts
-
October 18, 2021 at 12:39 pm #1325407
To whom it may concern,
How can I set an arrow icon button for the blog posts in the blog posts archive page insteade of a read more button?
Same as it is but instead of “Read More” text I’ll have an arrow ?
Regards
October 19, 2021 at 5:33 am #1325510Hey FamalcoGroup,
Thank you for the inquiry.
Try to add this css code to hide the text and replace the icon with a different arrow.
.more-link { color: #ffffff; } .more-link .more-link-arrow { color: gray; } .more-link-arrow:after { color: gray; content: ""; font-family: 'entypo-fontello'; font-size: 20px; left: -75px; position: relative; }
If you want to completely remove the text, try to add this script in the functions.php file.
function ava_script_read_more_arrow() { ?> <script> (function($) { $(".more-link").html("<span class='more-link-arrow'></span>"); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_script_read_more_arrow');
Best regards,
IsmaelOctober 19, 2021 at 7:49 am #1325520Hi Ismheal,
I have added the code in the functions.php and also the css code, but still nothing changed..
I want to change the read more buttons in the blogs archive page.
Regards
October 20, 2021 at 4:04 am #1325650Hi,
Thank you for the update.
Did you add the css code in the Quick CSS field and the script in the functions.php file? Please post the site details in the private field so that we can check the modification. Make sure that the Appearance > Editor panel is accessible. And please do not forget to toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code.
Best regards,
IsmaelOctober 20, 2021 at 9:08 am #1325680Kindly find the details below.
Also I have added the code in the functions.php file and the css code in the appearance >> customiser and I am displayed with this..
October 21, 2021 at 8:27 am #1325820Hi,
Thank you for the update.
We moved the css code in the Quick CSS field and added this css code to remove the blue background and border of the read more button. We also adjusted the position of the arrow and increase its font size.
.html_elegant-blog .more-link-arrow { display: block; } .html_elegant-blog .more-link { border: none; background-color: transparent; color: #ffffff; }
Please make sure to purge the cache before checking the page.
Screenshot: https://imgur.com/dbMA6uJ
Best regards,
IsmaelOctober 21, 2021 at 10:01 am #1325832This reply has been marked as private.October 21, 2021 at 10:03 am #1325833Fixed it thanks :) Can be clsoed
October 21, 2021 at 11:23 am #1325835This reply has been marked as private.October 21, 2021 at 12:50 pm #1325852Hi,
Glad to know that it is working. To adjust the icon to your preferred arrow, try this css code.
.more-link-arrow:after { content: "\E88d"; }
Best regards,
IsmaelOctober 21, 2021 at 1:15 pm #1325862Thank you so very much :) this can be closed
-
AuthorPosts
- The topic ‘Blog post arrow button’ is closed to new replies.