Support » Theme: Frontier » how ti change read post/ next post/ previous post button

  • Resolved meravjon

    (@meravjon)


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author ronangelo

    (@ronangelo)

    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

    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

    Theme Author ronangelo

    (@ronangelo)

    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.

    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.

    Theme Author ronangelo

    (@ronangelo)

    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' );

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how ti change read post/ next post/ previous post button’ is closed to new replies.