WordPress.org

Support

Support » Plugins and Hacks » image before <-more->?

image before <-more->?

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Change the_content() tag in your template to this:

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

    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..

    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.

    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

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

    “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. 😉

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘image before <-more->?’ is closed to new replies.