Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Tokyo54

    (@tokyo54)

    More specifically, where should I place the

    <?php the_content('Read more...'); ?>

    instance?

    I have tried placing it within ‘the loop’ yet this seems to have no affect on the <!–more–> text that is displayed

    you looked into the right docu:

    what you want is hidden under this sub-chapter:
    https://codex.www.ads-software.com/Customizing_the_Read_More#Link_Jumps_to_More_or_Top_of_Page

    Thread Starter Tokyo54

    (@tokyo54)

    Thanks alchymyth! Knew I was on the right track!

    I’ve tried inserting
    <?php the_content('Read more...'); ?>
    on it’s own and also replacing
    the_content
    with it, e.g.

    <?php if($post->post_excerpt !== "") :
                                the_excerpt();
                            else :
                                the_content();
                            endif;
    
    Becomes
    
    <?php if($post->post_excerpt !== "") :
                                the_excerpt();
                            else :
                                the_content('Read more...');
                            endif;

    Yet my (more…) does not seem to change

    You could use CSS..

    a.more-link { display:none }

    The more link has it’s own class more-link, so that should work.. ??

    Thread Starter Tokyo54

    (@tokyo54)

    Thank you Mark, I really appreciate your help in learning WordPress!

    The CSS Method worked great, although my client has now asked for the (more) code to be replaced by 3 dots – […]

    Would you be able to tell me how to ajust the the_content property in order to do this?

    Ok, that’s pretty simple, replace.

    the_content('Read more...');

    ..with..

    the_content('...');

    or

    the_content('[...]');

    As long as you leave the single quotes in place you can put whatever you like between them with exception to another single quote, which would need to be escaped, like so.. \'

    Hope that helps.. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tag’ is closed to new replies.