Thread Starter
Saurus
(@saurus)
This is strange – my post disappeared and all I see is the Reply text box!
Well let’s try this again …
Last week, another poster inquired if it was possible to use an image rather than a text link for the <--more--> button of the excerpt tag. I don’t bel;ieve it received any feedback. I was intrigued by this and thought I’d experiment, so I made a nice little graphical button in Xaea Webstyle and sent it to my themes images folder.
First try at implementing was the stylesheet, specifically the #contentmiddle a.more-link container, adding url (/images/continue.png). Fail.
Second attempt was scanning the various php files to find a reference to the “read more” tag. There were 3 – index.php, page.php, and functions.php. I decided to try the page.php and added the path to the graphic to the link reference.
That worked partially – the graphic i made appeared, but the regular read more text (which I had already edited the style of) was superimposed over it. Not good. I am now stumped how to get this to work correctly. Since at my age of the game attempting to learn any more of php than I do – which isn’t much – I need a hand from someone much more capable with the language to pull this off. Assuming, of course, that the page.php is indeed where this should go.
Anyone? Beuhler?
Site link: <url>http://brucesplace.net/wordpress</url>
sorry saurus – akismet got you twice – you are now freed
Thread Starter
Saurus
(@saurus)
I’ve been spammed!!! Oh the horror:)
Strange all those other posts got through and that didn’t. Oh well! Now to wait and see if someone can come up with a solution:)
Thread Starter
Saurus
(@saurus)
Anyone have any suggestions on this?
I suppose you read this?
http://codex.ww.wp.xz.cn/Customizing_the_Read_More#Adding_An_Image
sorry not much good at what you are doing
Thread Starter
Saurus
(@saurus)
Yeah, I did, Sam. Problem with the first example is it only adds an image after the text rather than replacing it – which is wjhat I was after.
The second example is one I found by accident – using the image as a background with the read more superimposed over it. Again, it doesn’t remove the read more text instead of replacing everything with an image:( It would seem there should be a way to replace the text with an image, but I’ve been unsuccessful in all attempts so far.