Support Forums

Featured ads

This is a discussion on Featured ads within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi I am trying to change the colour of text Featured Ads from Black to another colour and also would ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 03-26-2009, 09:33 PM   #1
Junior Member
 
 
Join Date: Nov 2008
Posts: 18
Rep Power: 5
the guide is on a distinguished road
Default Featured ads

Hi

I am trying to change the colour of text Featured Ads from Black to another colour and also would like to have the featured ads more organised with photos the same size -I dont want to keep the dotted line on top and bottom of featured ads on homepage, can I change this or put a border round or a continuous line instead - is there anyway I can do this - Ive spent ages on it and cannot find the answer on the forum -

Margaret
__________________
v4.0.9 Hosted
Greystones Guide - Online for You
www.greystonesguide.com
www.greystonesguideclasssifieds.com
www.greystonesguideforum.com

Last edited by the guide; 03-26-2009 at 09:59 PM. Reason: needed to add something
the guide is offline   Reply With Quote
Old 03-26-2009, 10:21 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,716
Rep Power: 50
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

The featured listings that are on the homepage come from the included smarty plugin. You can change the settings that are sent to this plugin within the call in your home.tpl template file.

The template file is here: yoursite/templates/yourtemplate/home.tpl

In that file around line 38 (basically the bottom of the file) you will find this code:
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}

As you can see the settings are included in the call to the function. To see all of the settings that you can use with this plugin, please visit the Customer documentation.

As an example, the dashed line that you don't like is called simply with the "border-top: 1px dased #999;"
This and any other styles are standard CSS elements. For information on CSS, HTML/XHTML a good resource is w3 schools

Unfortunately, you can not completely control your end users picture sizes. You can limit the max height and width for both thumbnail and regular sizes in the administration settings.

Another alternative for the Featured listings is a plugin offered by Template codes. You can see this as well as many other 3rd party offerings in the Classifiedmods.com site.

Please post your 68 Classifieds type (Designer, Developer), version (4.0.x, 4.1.x) and template in your postings asking for help. This information will help you get better answers for your posts. A great place to do this is in your signature!
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 03-26-2009, 11:02 PM   #3
Junior Member
 
 
Join Date: Nov 2008
Posts: 18
Rep Power: 5
the guide is on a distinguished road
Default Featured Ads

Hi

Thanks for that - In the matter of changing the colour of text of heading (Featured Classifieds)- is it done in the same place?

Margaret
__________________
v4.0.9 Hosted
Greystones Guide - Online for You
www.greystonesguide.com
www.greystonesguideclasssifieds.com
www.greystonesguideforum.com
the guide is offline   Reply With Quote
Old 03-26-2009, 11:37 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,133
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

That is probably defined from the style sheet.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-26-2009, 11:46 PM   #5
Junior Member
 
 
Join Date: Nov 2008
Posts: 18
Rep Power: 5
the guide is on a distinguished road
Default featured ads

Hi

Ye I thought so too but cant find it yet - will try again


Margaret
__________________
v4.0.9 Hosted
Greystones Guide - Online for You
www.greystonesguide.com
www.greystonesguideclasssifieds.com
www.greystonesguideforum.com
the guide is offline   Reply With Quote
Old 03-26-2009, 11:54 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,133
Rep Power: 120
Eric Barnes is a jewel in the rough
Default

If you use firefox I highly recommend the firebug extension. With it you can inspect each element and it will give you a list of all css styles that are applied to it. Including the line number.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-27-2009, 08:59 AM   #7
Junior Member
 
 
Join Date: Nov 2008
Posts: 18
Rep Power: 5
the guide is on a distinguished road
Default Featured Ads Colour change

Hi

Im still trying to find how to change ''Featured Ads'' colour in css. Im baffled.

Also I have just noticed that a small gap each side of text between the categories and search box has developed and I cannot find what is causing this - have checked layout etc. I dont think that has always been there.

Margaret
__________________
v4.0.9 Hosted
Greystones Guide - Online for You
www.greystonesguide.com
www.greystonesguideclasssifieds.com
www.greystonesguideforum.com
the guide is offline   Reply With Quote
Old 03-27-2009, 09:26 AM   #8
Coder
 
Join Date: Mar 2006
Posts: 4,695
Rep Power: 114
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by the guide
Hi

Im still trying to find how to change ''Featured Ads'' colour in css. Im baffled.
Are you trying to change the color of featured ads displayed with the plugin or the featured ads displayed when you click on the featured ads link in your sites nav? They are handled by two totally different areas of the script and we cant properly guide you if we dont know which one your referring to.
__________________
Larry
Lhotch is offline   Reply With Quote
Old 03-27-2009, 09:34 AM   #9
Junior Member
 
 
Join Date: Nov 2008
Posts: 18
Rep Power: 5
the guide is on a distinguished road
Default featured ad

HI

Its only the text ''Featured Ads''
I want to change it from black to colour to match site.
Can background (behind photos) be changed?

Im getting better at this but still so much to learn - I really appreciate the help.

Margaret
__________________
v4.0.9 Hosted
Greystones Guide - Online for You
www.greystonesguide.com
www.greystonesguideclasssifieds.com
www.greystonesguideforum.com
the guide is offline   Reply With Quote
Old 03-27-2009, 09:57 AM   #10
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,716
Rep Power: 50
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

The text "Featured Ads" is in an "h2" element therefore, the line in the CSS stylesheet would be this around line #19:
h2 { font: bold 2em Arial, Sans-Serif; margin: 0; padding: 0; }

If you change that directly, however is going to change ALL text throughout the site within an "h2" element. What I would suggest is simply creating your own new style in the style sheet. Copy the h2 class and create a new class such as ".feature_head"
.feature_head { font: bold 2em Arial, Sans-Serif; margin: 0; padding: 0; color: #990000; }

Then call that class in your home.tpl file like this:
HTML Code:
<div class="feature_head>{$smarty.const.LANG_FEATURED_LISTINGS}</div>
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Featured + Hightlighted != Featured + Highlighted detrate v3.1 Questions & Support 2 08-16-2006 05:13 PM


All times are GMT -4. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0