View Full Version : Need to make font bigger in part of template
z0diac
06-17-2009, 11:02 PM
The part of a thread's display for multi-page threads, on the top right and bottom right, that says "Page 1 of X, 1/2/3/etc"
I need to make that part more visible (larger).
I'm guessing the template that needs to be edited is: threadbit_pagelink correct ?
it currently has this line:
<a href="$address<if condition="$curpage != 1">&page=$curpage</if>$address2">$curpage</a>
What/where would I add to it to force it to use a larger font size? (ie: 14pt)
Lynne
06-17-2009, 11:19 PM
Are you sure that is the template? Do this - - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
I come up with a different template on my site (if we are looking at the same thing - maybe we aren't?) and mine has class="smallfont" in the link, so why not just remove the class and it should be normal sized?
z0diac
06-18-2009, 01:52 AM
Are you sure that is the template? Do this - - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
I come up with a different template on my site (if we are looking at the same thing - maybe we aren't?) and mine has class="smallfont" in the link, so why not just remove the class and it should be normal sized?
Ok I turned that on.
Style Manger - edit templates > Threadbit Templates > threadbit_pagelink
this is the contents:
<a href="$address<if condition="$curpage != 1">&page=$curpage</if>$address2">$curpage</a>
I THINK that's it. I only posted that to help someone interested him helping me with my problem.
Anyway it doesn't matter - what I'm looking to do is change the font size of JUST the "Page 1 of X, 1/2/3/4" part that it shown at the topright and bottomright of each thread display page on thread that have multiple pages
z0diac
06-18-2009, 01:57 AM
Ok I think I'm overcomplicating what I want to do in my explaination of the problem...
The part circled in green (in the attachment) - I want to make THAT text *BIGGER*. Nothing else though. If I edit it in CSS Main to make that text bigger, it will make other text bigger as well.
I thought someone who knows PHP might reply " oh sure, you don't have to use the CSS Main entry for that font.. you can force it to use a specific font size by adding [code] to [this] template"
Lynne
06-18-2009, 02:49 AM
If after turning on the html template comments, you are being told it is the threadbit_pagelink template, then your style is different than mine. Mine (which is default) is shown to be the four pagenav (Page Navigation) templates and all four have class="smallfont" in the <a> tag and if I take it out, the fonts are all normal size. Or, I added style="font-size:14pt" to one of them, just to see what would happen, and the fonts got very large.
z0diac
06-18-2009, 03:00 AM
If after turning on the html template comments, you are being told it is the threadbit_pagelink template, then your style is different than mine.
No no.. after turning them on, nothing happened. (nothing different that is). The forum still displays as it usually does. So I couldn't see what difference turning that option on did.
(this is for vb v3.6.8 - but I dn't think the templates that show this text have changed much over the last few releases a least)
Ok ok, I saw in another post you said to view the SOURCE of the page... ok.
It looks like it's in: <!-- BEGIN TEMPLATE: pagenav -->
I will check that now.
--------------- Added 1245297920 at 1245297920 ---------------
Ok, pagenav has this line in it:
<td class="vbmenu_control" style="font-weight:normal"><phrase 1="$pagenumber" 2="$totalpages">$vbphrase[page_x_of_y]</phrase></td>
I'm guessing this is the line that needs to be changed somehow so that a hardcoded font size is used??
Lynne
06-18-2009, 03:09 AM
You could just add the font-size to the <td> right there. That will just effect the part that says Page x or y though. You need to look at all four of the pagenav templates. I don't have a 3.6 board, so I don't know what the default templates are like for them, but if they have the smallfont class called, then try removing it as I did.
z0diac
06-18-2009, 03:24 AM
Yes there are 4 templates (wow that's a lot for a little piece of text! :) )
pagenav_curpage
<td class="alt2"><span class="smallfont" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>
pagenav_pagelink
<td class="alt1"><a class="smallfont" href="$address$address2<if condition="$curpage != 1">&page=$curpage</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>">$curpage</a></td>
pagenav_pagelinkrel
<td class="alt1"><a class="smallfont" href="$address$address2<if condition="$curpage != 1">&page=$curpage</if>" title="<phrase 1="$pagenumbers[first]" 2="$pagenumbers[last]" 3="$total">$vbphrase[show_results_x_to_y_of_z]</phrase>"><!--$relpage-->$curpage</a></td>
(and the one I posted above this post).
Can you give an example of that one of these would look like to force a text size of say, 14pt ? (I don't know ANY html or php so I won't even guess) I see 'smallfont' listed there but I wouldn't even know what to replace it with.
Lynne
06-18-2009, 05:40 PM
Yes there are 4 templates (wow that's a lot for a little piece of text! :) )
pagenav_curpage
<td class="alt2"><span class="smallfont" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>
Can you give an example of that one of these would look like to force a text size of say, 14pt ? (I don't know ANY html or php so I won't even guess) I see 'smallfont' listed there but I wouldn't even know what to replace it with.
Something like this:
<td class="alt2"><span style="font-size:14pt;" title="<phrase 1="$numbers[first]" 2="$numbers[last]" 3="$total">$vbphrase[showing_results_x_to_y_of_z]</phrase>"><strong>$curpage</strong></span></td>See if that works.
z0diac
06-19-2009, 03:58 PM
Perfect! Just editing pagenav_curpag and pagenav_pagelink has it displaying MUCH more prominent now. Thank you !!!!
Lynne
06-19-2009, 04:24 PM
Glad you got it how you want it!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.