Also, add display: block to the div. That and the width should do it. I think part of the problem is that there’s nothing in the div. Those 2 additions should fix it.
EDIT: I just tried these suggestions. They didn’t work. I get the “please visit Theater Hopper” link, but not the comic above it. Same problem as before.
I was just gonna say… I tried inputing your code as written… WordPress didn’t like it! Had to upload my backup copy of functions.php back to the server!
For starters, you are missing the quotes on the background-image:
background-image:url(‘$siteurl/$filename’)
You could add the image inside the div and put the overflow=hidden property on the style so it will show only the part you want, but I don’t know if it would show the scroller bars.
Well, the spam links show up on very single WP made page, even on the main page. After doing some testing on my own server, it seem most feed readers remove out all inline style elements, so that div plan doesn’t seem doable unless you make it link to a style sheet and add the style codes there or make pre-cropped images for the use in the RSS feed. Also the RSS feed is still missing the ending single quote for the “please visit TheaterHopper.com” link. “To read the rest of this comic <a href=’http://www.theaterhopper.com/2009/05/29/no-patience-for-dichotomy/>please visit TheaterHopper.com</a>” should be “To read the rest of this comic <a href=’http://www.theaterhopper.com/2009/05/29/no-patience-for-dichotomy/’>please visit TheaterHopper.com</a>
the XML error?, that because of the unclosed quote in the “please visit TheaterHopper.com” link, it means it can’t tell when one HTML/XHTML/XML tag ends and another begins.
im guessing a ; is required between ‘center’ and style?
If it’s that simple, my head will a-splode.
Lemme give it a try.
EDIT: Nope. Didn’t work.
What does what you’ve got up there spit out?
Basically, the comic doesn’t display. It’s just kind of a blank space where the comic should be.
But the DIV tag with the link back to Theater Hopper shows up fine.
Maybe try setting a width for the div?
Under normal HTML, the width of the DIV wouldn’t make a difference. The image is coded to appear in the center.
I’ve seen stranger things happen. I’d add width: 525px; and just see what it does.
Also, add display: block to the div. That and the width should do it. I think part of the problem is that there’s nothing in the div. Those 2 additions should fix it.
I’m willing to give it shot.
Hang on and I’ll test it out.
EDIT: I just tried these suggestions. They didn’t work. I get the “please visit Theater Hopper” link, but not the comic above it. Same problem as before.
Try this:
echo “To read the rest of this comic please visit TheaterHopper.com“;
Crap! Won’t take code. Emailing it to you.
I was just gonna say… I tried inputing your code as written… WordPress didn’t like it! Had to upload my backup copy of functions.php back to the server!
Check the third email. I checked it locally and it worked as you were asking.
Cool. I can see your e-mails on my phone, but can’t seem to forward them to my work address (can’t access GMail at work)
I’ll take a look over my lunch break and let you know! Thanks!
Steve,
I used your code, but I’m not getting anything. I’ve left your code changes in production on the feed if you want to check them out:
http://feeds.feedburner.com/TheaterHopper
For starters, you are missing the quotes on the background-image:
background-image:url(‘$siteurl/$filename’)
You could add the image inside the div and put the overflow=hidden property on the style so it will show only the part you want, but I don’t know if it would show the scroller bars.
The quotes on the bgimage aren’t necessary.
The overflow=hidden should work. Shouldn’t be scroll bars because it’s not an iframe.
I ran the RSS fedd via W3C Feed Validation Service: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FTheaterHopper#l618
Why are there spam links at the bottom of the feed? Along with the XML errors in the feed?
There are spam links in my RSS feed? Why don’t they show up in the posts?
GRR! I love WordPress, but I had how spammers are able to co-opt it in ways I’m not even familiar with!
I have no idea what those XML errors are. This is my problem: I have NO idea what I’m doing.
also the “please visit TheaterHopper.com” links are messing a ending single quote in the href attribute
Well, the spam links show up on very single WP made page, even on the main page. After doing some testing on my own server, it seem most feed readers remove out all inline style elements, so that div plan doesn’t seem doable unless you make it link to a style sheet and add the style codes there or make pre-cropped images for the use in the RSS feed. Also the RSS feed is still missing the ending single quote for the “please visit TheaterHopper.com” link. “To read the rest of this comic <a href=’http://www.theaterhopper.com/2009/05/29/no-patience-for-dichotomy/>please visit TheaterHopper.com</a>” should be “To read the rest of this comic <a href=’http://www.theaterhopper.com/2009/05/29/no-patience-for-dichotomy/’>please visit TheaterHopper.com</a>
Logan, how do I get the function.php file where the RSS code resides to point to a CSS file?
the XML error?, that because of the unclosed quote in the “please visit TheaterHopper.com” link, it means it can’t tell when one HTML/XHTML/XML tag ends and another begins.