WordPress.org

Support

Support » Themes and Templates » meed help changing buttons

meed help changing buttons

  • i’ve got ‘Read more’ buttons beside the post entries on my Videos page and on my Symbols page.

    Is there a way I can change what the buttons say on the Symbols page only?
    I want these ones to read “Buy Prints”

    http://www.ronniewhittaker.com

Viewing 11 replies - 1 through 11 (of 11 total)
  • If you have loop.php go to that
    Else go to index.php

    find <?php the_content(); ?> in it.

    Replace it with <?php the_content('Buy Prints'); ?>

    Irfan

    i could only find <?php the_content(); ?> within search.php and tag.php. it wouldn’t be any of those would it?

    It can be in home.php , front-page.php , index.php , loop.php , page.php

    Irfan

    tried them all Irfan and can’t find that line within, do you have any other ideas?

    then try search for
    the_excerpt() in above mentioned files. If it is there,

    Add `function custom_excerpt_more( $more ) {
    return ‘Buy Prints’;
    }

    add_filter( ‘excerpt_more’, ‘custom_excerpt_more’ );
    ` to your functions.php

    got it in index.php
    where in the functions file should i add the code?

    does this code replace the_excerpt() within index.php:

    function custom_excerpt_more( $more ) {
    return ‘Buy Prints’;
    }

    do i add the following to functions.php:

    add_filter( ‘excerpt_more’, ‘custom_excerpt_more’ );
    ` to your functions.php

    Add

    function custom_excerpt_more( $more ) {
    return 'Buy Prints';
    }
    
    add_filter( 'excerpt_more', 'custom_excerpt_more' );

    to the functions.php ..that’s all

    i have the “Read More” buttons on both the Videos and Courses pages too and don’t want the text to change there. only in the Symbols page for it to be “Buy Prints” is this possible?

    thanks irfan
    i added the code above but it didn’t change the text

    to have this on one page only seems is more difficult and thus definitely beyond me

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘meed help changing buttons’ is closed to new replies.