WordPress.org

Ready to get started?Download WordPress

Forums

image before <-more->? (9 posts)

  1. Jabbok
    Member
    Posted 9 years ago #

    I use the "more" option on most of my posts. Is there a way to assign an image to this function?

  2. Jinsan
    Member
    Posted 9 years ago #

    so instead of more you have an image? Not sure myself, but I have seen it done. I guess you would set something in your css to call the function and then apply an image to it, something like:

    more {
    backround: url ('images/myimage');
    }

    Not certain perhaps someone else can be clear on this.

  3. Kafkaesqui

    Posted 9 years ago #

    Change the_content() tag in your template to this:

    <?php the_content('<img src="/images/more.gif" alt="read more" />'); ?>

  4. Jabbok
    Member
    Posted 9 years ago #

    This worked! I did add the other "Read More. . ." so it shows up on the page as well as the alt.

    <?php the_content('<img src="/images/more.gif" alt="read more" />Read More . . .'); ?>

    Thanks..

  5. Lorelle
    Member
    Posted 9 years ago #

    And you might consider adding a "title" to that image so that the "title" shows up in Firefox like this:

    <?php the_content('<img src="/images/more.gif" alt="read more" title="Read More" />Read More . . .'); ?>

    Just to cover all your accessible bases.

  6. Jabbok
    Member
    Posted 9 years ago #

    Wow, you learn something new everyday. I've seen the use of "Title" before but I didn't know it took that place of "Alt" in FF.
    I added it!
    Thanks

  7. Lorelle
    Member
    Posted 9 years ago #

    I just learned it a couple of weeks ago, and then had to confirm it. Caught me off-guard, too. The things you learn....

  8. "Wow, you learn something new everyday. I've seen the use of "Title" before but I didn't know it took that place of "Alt" in FF."

    It does that for all broswers. ;)

  9. greymullet
    Member
    Posted 9 years ago #

    Alt just displays when the image can't, for example in text only browsers, or if the image link is broken.

Topic Closed

This topic has been closed to new replies.

About this Topic