WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] For some reason, can’t customize the “Read More”

[Resolved] For some reason, can’t customize the “Read More”

  • Here’s what I have in the index.php (I don’t have post.php)

    <?php the_content(‘<span style=”font-weight:bold;”>Read this now…</span>’); ?>

    But what is displayed is “Read more” without any styling or anything. In fact, no matter what I have in “the_content()” The read more is always “Read more”

    Anyone have any idea why I’m unable to customize it?

    Thanks a lot,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Works okay for me using your code in my index.php. Here’s the relevent part of the link from doing View Page Source in FireFox:

    <a href="http://localhost/wordpress262/?p=10#more-10"><span style="font-weight:bold;">Read this now…</span></a>

    Here is the source code from Firefox
    <a href="http://dubaiemploymenttips.com/301/dubai-headhunters/#more-301" class="more-link">Read more</a>

    But here’s what I have in my index.php

    <?php the_content('<span style="font-weight:bold;">Read this now...</span>'); ?>

    You see, WordPress isn’t reflecting the changes I make on the theme. It’s weird. Would you know what might cause this to happen?

    Might review Template Hierarchy as you might not be putting the code in the correct template.

    On your blog you are saying it display “Read more” but the code says you want “Read this now…”.

    If you continue this thread you might want to provide a link to your site.

    That did it.

    I didn’t know that WordPress looks at home.php first and then index.php. I changed the_content in home.php and it worked.

    Thanks Michael.

    Which files are you need ing to edit and in which folders are they found?

    I want to add an image to the Read More tag but have not been able to pick up which files you are discussing or in which folder they are located.

    Your help will be greatly appreciated.

    Thanks

    Rb

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] For some reason, can’t customize the “Read More”’ is closed to new replies.
Skip to toolbar