Hi, I want to set a specific height and width for every featured listing on my home page, like for example if the title is too long I want it to cut off instead of just stretching the whole ad. I want all ads to be the same height and width within my featured list on home page. Also I want to change the font,size and color of the featured listings, again just on the homepage. All I have to work with is this piece of code and it is very confusing, is this query pulling any style from the style sheet? It seems like it just plain font,text and color. here is the piece of code I have. Code: {feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="background-color:#d4e3f2; border: 3px #d0d5d9 solid;"' order_by='dateadded' order='desc'} Thanks.
You should familiarize yourself with the parameters that are available to the plugin. Documentation It's ironic that you posted this, because I am in the midst of writing a new blog article regarding this very plugin. It's not done yet, but here's an example of what you might want to do. Here's one that I use: Code: {feature_listings_horizontal number=4 cols=4 table_attr='width="100%" cellpadding="5" cellspacing="3"' td_attr='align="center" valign="top" style="border-width:1px;border-style:solid;border-color:#000;font-weight:bold;width:170px;tex-align:center;" width="25%" height="170"' order_by='dateadded' order='desc'}
This is good, I like what it did to the ads . Although the longer the title is, it still seems to stretch the ad, how can i make the title go to the next line after a certain number of characters?
The title should be autowrapping to the next line, however to actually be able to "truncate" the title would require that the plugin itself would need to be modified as far as I know. I personally limit the characters allowed on any of my sites to 50. This is also what I recommend to my clients as well. The reason is that those long titles can break layout elements in other places in the display as well and it also prevents what I like to call "Title spamming", which in my opinion leads to a better end user experience. It IS all about the END USER, is it not?
haha ya I agree. Thanks for the info, limiting the title to 50 should be mroe than enough actually. Good idea.
I'm not sure if we are speaking about the same thing here or if you guys are talking about the default template?.. But the template I bought from templatecodes.com allows you to "truncate" the title of featured listings. It's in \modules\custom_plugins\plugins\function.css_listings_horizontal.php But I think I might be talking about something different. Cheers
You are and you are not talking about the same thing. We are talking about the default template homepage and the use of the default featured listings smarty plugin. You are talking about the TemplateCodes template and the custom plugin that TemplateCodes uses on the homepage. So this is different. You are talking about "truncating" the title, which is a "feature" of the TemplateCodes custom plugin, which IS the same thing (sort of) in regard to the title.