<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a> <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
Announcement
Collapse
No announcement yet.
link color for page numbers
Collapse
X
-
link color for page numbers
In this code located in threadbit, what determines the color of the page number numbers? I tried covering it up with html's font attribute but it does not effect it. Is there a place to look to change this?
Code:Tags: None
-
The colorization is controlled by the alt1 and alt2 classes under MainCSS in the Style Manager.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
-
Thanks, where does it call to use these colors, I see in the code
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
That controls the text size. Can I use CSS or HTML to override the settings in $thread[pagenav]
Comment
-
Wayne is correct, Alt1 and Alt2 set the link colors for the page navigation, however; if they are not defined they default to the "page" setting. You may not want to add link colors to Alt1 and Alt2 as they could affect other areas of your site, and you are only interested in changing the page numbering links.
To change the page number links, add this code in the very last box at the bottom of the Main CSS:
Code:.page_num { background: #00FF00; color: #FF0000; } .page_num a:link, .page_num_alink { color: #D9D7A0; text-decoration: none; } .page_num a:visited, .page_num_avisited { color: #D9D7A0; text-decoration: none; } .page_num a:hover, .page_num_ahover { color: #D9D7A0; text-decoration: underline; }
btw, the font is set by smallfont, so no need to add it to the CSS.
Now go to the page nav templates and change the alt1 & 2's to page_num (<td class="page_num">). That's it,
If you want the alt2 to be different then (<td class="page_num_alt">), then add this CSS to your Main CSS below the page_num you pasted in:
Code:.page_num_alt { background: #0000FF; color: #FF0000; } .page_num_alt a:link, .page_num_alt_alink { color: #09D7A0; text-decoration: none; } .page_num_alt a:visited, .page_num_alt_avisited { color: #09D7A0; text-decoration: none; } .page_num_alt a:hover, .page_num_alt_ahover { color: #09D7A0; text-decoration: underline; }
Last edited by DoE; Sun 3 May '09, 7:38pm.
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment