WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. iucpa
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    THANK YOU!

  4. wpuser7777
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Volunteer Moderator
    Posted 1 year 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

    http://codex.wordpress.org/Child_Themes

  7. rcduggan
    Member
    Posted 10 months 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

Tags

No tags yet.