Heya! I'd love to get this working, but the background image isn't showing up on the pet. Halp?
My code isn't throwing any errors, so not really sure where to go from here. I've tried it in a few different places, but every time nothing changes.
This is the line of code Dinocaid helped me put together, but it's not working either:
PHP Code:
$document->add(new Comment("<div style='background-image:url('{$adopt->adoptbackground}');background-repeat: no-repeat;background-position:center;'><img src='{$adopt->getImage()}'></img></div>);")
I've already uploaded an image and made it a background item, then used it on my pet. I've removed the code from all the pages so my users can still see their pets in the meantime.
Thanks for any help!