WordPress.org

Ready to get started?Download WordPress

Forums

Frontier
[resolved] how ti change read post/ next post/ previous post button (7 posts)

  1. meravjon
    Member
    Posted 8 months ago #

    Hi Ron
    Can I change these buttons?
    I want the change the text in the read post button, and I'd like if instead next/previous post it will show the title of the next/previous post.Is it possible to do that?

  2. ronangelo
    Member
    Theme Author

    Posted 8 months ago #

    You can use this function.

    function read_post_button_text($text) {
        return 'New Text';
    }
    add_filter( 'frontier_continue_reading_text', 'read_post_button_text' );

    Or this http://ronangelo.com/change-or-translate-text-on-a-wordpress-theme/

    http://wordpress.org/support/topic/revert-back-to-old-post-navigation?replies=4#post-5020940

  3. meravjon
    Member
    Posted 8 months ago #

    Hi Ron
    Thank you for your reply.
    I don't want fixed text on the buttons. I want it to show the post Title.
    Also the function you added in your reply made the change only on the read post button.
    Can it be done to change all the buttons for the Title of the post?
    Merav

  4. ronangelo
    Member
    Theme Author

    Posted 8 months ago #

    I don't understand what you're saying. There is only one button for each post on the posts page aka blog page.

    The code I added above changes the text that says "Read Post" on the excerpts button.

    The second url I posted shows how to change the Next/Previous Post in single posts into Next/Previous Post Titles.

  5. meravjon
    Member
    Posted 8 months ago #

    Hi ron
    Thank you for your reply.
    I added the code for the Next/Previous Post to my functions.php in child theme and it works well excluding this post:
    http://www.easy-chemistry.co.il/%D7%9E%D7%A6%D7%91%D7%99-%D7%A6%D7%91%D7%99%D7%A8%D7%94/

    I understand from your last reply that I can't change the read post button to the title of the post.

  6. ronangelo
    Member
    Theme Author

    Posted 8 months ago #

    I understand from your last reply that I can't change the read post button to the title of the post.

    You mean the "Read Post" text should be replaced with the post's title? Yes, you can do that but then you would have two titles on a single article. I don't see the point in that but here's what you would add to accomplish that:

    function read_post_button_text($text) {
        return the_title();
    }
    add_filter( 'frontier_continue_reading_text', 'read_post_button_text' );
  7. meravjon
    Member
    Posted 8 months ago #

    Hi Ron
    Thanks you the read post is exactly what I wanted.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.