vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Changing color of search link in navbar (https://vborg.vbsupport.ru/showthread.php?t=193626)

CrashPush 10-14-2008 05:50 PM

Changing color of search link in navbar
 
I would like to change the color of the search link in my navbar to red to encourage more searching by my members.

How is the easiest way to do this?

SEOvB 10-15-2008 03:02 AM

Find the search link code in the navbar and use something like

Code:

<a style="font-color:red;" href="search.php">

CrashPush 10-20-2008 06:45 PM

Quote:

Originally Posted by FRDS (Post 1645332)
Find the search link code in the navbar and use something like

Code:

<a style="font-color:red;" href="search.php">

Thanks but that didn't work. :(

Seven Skins 10-20-2008 07:29 PM

In Navbar template:

Find:
Code:

$vbphrase[search]
Replace:
Code:

<font color="#FF0000">$vbphrase[search]</font>

Lynne 10-20-2008 08:09 PM

Quote:

Originally Posted by CrashPush (Post 1649132)
Thanks but that didn't work. :(

It actually should have been:

HTML Code:

<a style="color:red;" href="search.php">
You should try to use CSS as the font tag is deprecated.

Seven Skins 10-20-2008 09:12 PM

Or you can:

Add this to "Additional CSS Definitions"

HTML Code:

.searchcolor {color: #FF0000;}

And in Navbar tempate find:
HTML Code:

<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a>
Replace with:
HTML Code:

<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow" class="searchcolor">$vbphrase[search]</a>

.

CrashPush 10-22-2008 02:19 AM

Quote:

Originally Posted by Seven Skins (Post 1649180)
In Navbar template:

Find:
Code:

$vbphrase[search]
Replace:
Code:

<font color="#FF0000">$vbphrase[search]</font>

This worked perfectly thanks!


All times are GMT. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01252 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete