Support Forum
Following with the thread...I'm trying to get the Avatar float to left by using this line:
<?php sp_RecentPostsTag('beforeUser=<div style="float: left;">&afterUser=</div>&avatarSize=40&topicIds=22&beforeForum=In the Forum: &afterForum= &beforeTopic= posted:&afterDate=<hr />&itemOrder=ATF&limit=5');?>
And I can not get it done. You can see how it looks on the sidebar of my website here:
http://www.bikecyclingreviews.com
I've also tryied replacing comma by double quotes.... but still getting the same issue:
<?php sp_RecentPostsTag("beforeUser=<div style='float: left;'>&afterUser=</div>&avatarSize=40&topicIds=22&beforeForum=In the Forum: &afterForum= &beforeTopic= posted:&afterDate=<hr />&itemOrder=ATF&limit=5");?>
Does anyone has had the same problem? Any tip?
Thanks, Sam
Well these are function calls not html so you can't just add anything at all in there.
To style template tags you need to use proper css directives in your Wp theme stylesheet. You can check for the class names in the code or - even better and easier - using a tool like Firebug or many of the built-in tools in todays browsers.
But for reference the class name given to the avatar is 'spAvatarTag' so you need to add the styling you want. As in
.spAvatarTag { float: left; }
for example.
YELLOW
SWORDFISH
|
1 Guest(s)