Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 42793
Total Topics: 7455
Most Online Today: 51
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 55
Total: 55

Author Topic: Classifieds CSS tweak in custom theme  (Read 7574 times)

0 Members and 1 Guest are viewing this topic.

Offline madeupmedia

  • Member
  • *
  • Posts: 16
    • View Profile
Classifieds CSS tweak in custom theme
« on: January 12, 2008, 02:34:40 am »
First, thanks for this terrific mod!  Great work, and I'm looking forward to using it.

I'm using a custom theme that I've altered quite a lot.  I'd like to change some font size on the main classifieds page.  Here's a snap of what I currently have happening:



As you can see, the titles of the Sub Categories are the biggest thing on the page.  I would prefer to completely remove the Sub Cat listing, if possible.  If that's not in the cards for some reason, I at least need to be able to reduce the font size.

Can someone point me in the right direction where I'll find the code that governs this?

Thank you!
Matt

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16234
    • View Profile
Re: Classifieds CSS tweak in custom theme
« Reply #1 on: January 12, 2008, 02:00:19 pm »
Open up /themes/default/Classifieds.template.php

Find
Code: [Select]
$subcats_linktree .= '<a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;&nbsp;';
And remove that line and this will make subcategories disappear.

You could also try adding to <a link
Code: [Select]
class="smalltext"
And see if that makes the text smaller.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline madeupmedia

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Classifieds CSS tweak in custom theme
« Reply #2 on: January 12, 2008, 05:31:27 pm »
Thanks!  I just removed the sub cat listings, and it worked great.  One other thing, without sub cats showing, It would be nice to eliminate the alternating empty rows between categories.  At your leisure, could you point me to that structure in the template? 

Thanks again!
Matt

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16234
    • View Profile
Re: Classifieds CSS tweak in custom theme
« Reply #3 on: January 12, 2008, 07:11:57 pm »
Open Gallery.template.php
Find and remove
Code: [Select]
if ($g_manage)
{
echo '<tr class="titlebg" height="5">
<td colspan="6">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
else
echo '<tr class="titlebg" height="5">
<td colspan="4">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline madeupmedia

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Classifieds CSS tweak in custom theme
« Reply #4 on: January 12, 2008, 09:28:57 pm »
Thanks a million SMFHacks, your information will allow us to tailor the look of the index to our site and get it just the way we want it. 

I appreciate your help!
Matt

Offline madeupmedia

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Classifieds CSS tweak in custom theme
« Reply #5 on: January 19, 2008, 09:35:38 am »
SMFHacks, one more question - We're thinking we'd like the Classifieds category listings to be strong, like the Board titles are in the forum.  Where can we change that text behavior in the template?

Thanks!
Matt

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
6911 Views
Last post September 14, 2006, 01:20:31 pm
by SMFHacks
1 Replies
3185 Views
Last post July 05, 2007, 08:14:49 am
by SMFHacks
1 Replies
4317 Views
Last post October 15, 2007, 07:22:40 pm
by SMFHacks
1 Replies
2977 Views
Last post April 15, 2011, 02:31:43 pm
by SMFHacks
2 Replies
3048 Views
Last post August 15, 2014, 09:10:51 pm
by SMFHacks

+- Recent Topics

Permissions query by davejo
March 26, 2023, 04:43:48 am

prettyurls - TroubleShooting.wiki by SMFHacks
March 25, 2023, 01:49:35 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Powered by EzPortal