Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 194
Total: 194

Author Topic: Classifieds CSS tweak in custom theme  (Read 8341 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: 16436
    • 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: 16436
    • 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
7083 Views
Last post September 14, 2006, 01:20:31 pm
by SMFHacks
1 Replies
3329 Views
Last post July 05, 2007, 08:14:49 am
by SMFHacks
1 Replies
5156 Views
Last post October 15, 2007, 07:22:40 pm
by SMFHacks
1 Replies
3931 Views
Last post April 15, 2011, 02:31:43 pm
by SMFHacks
2 Replies
3751 Views
Last post August 15, 2014, 09:10:51 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal