How to remove "Read more" button from sliders (7 posts)

  1. iucpa
    Posted 3 years ago #

    Curious how to remove the "read more" button at the bottom of the sliders. All of my test appears on the site, so there is no reason to read more. Furthremore, the button points to the main page of my site anyway, defeating the purpose.

    Thank you.

  2. wpuser7777
    Posted 3 years ago #

    Comment out this line in element-boxes.php to remove Read More.

    <!-- <span class="read-more">"><?php _e('Read More' , 'discover'); ?></span> -->

  3. iucpa
    Posted 3 years ago #

    Sorry, but a total n00b here. What does "comment out" mean?


  4. wpuser7777
    Posted 3 years ago #

    You will need to go to Appearance--> Editor
    Click on element-boxes.php on the right
    Find the line <span class="read-more">"><?php _e('Read More' , 'discover'); ?></span>

    Add <!-- to the beginning of the line and --> to the end of the line to comment it out.

    It should look like this in the end <!-- <span class="read-more">"><?php _e('Read More' , 'discover'); ?></span> -->

    Update file.

  5. iucpa
    Posted 3 years ago #

    Thank you, wpuser! That workes like a charm. Still need to figure out how to remove the "Not Found

    Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post." - doesn't appear to be on the same editor page you mentioned...

  6. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Modifying theme files is NOT recommended - all of your changes will be lost when the theme is updated. Instead you should be making any theme file changes in a Child Theme


  7. rcduggan
    Posted 2 years ago #

    ok so i created my child theme and it's operational. i still don't understand how i remove the button from the slider. i do have firebug and another webdev tool installed but i am unfamiliar with how to use them. help ; )

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.