Search icon next to box - Joomla! Forum - community, help and support
hi,
i'm trying add submit button magnifying glass icon next search box in protostar template, not sure if need change php & css files or if need style in css.
btw in folder copied template reside?
thanks provided,
.alex
i'm trying add submit button magnifying glass icon next search box in protostar template, not sure if need change php & css files or if need style in css.
btw in folder copied template reside?
thanks provided,
.alex
you want make override of modules/mod_search/tmpl/default.php
if running joomla 3.2+ can create override through template manager. click on name of default front end template (for example protostar) in template column of table shows in template manager.
this brings new screen, click on tab labeled'create overrides'. click on mod_search in modules column. create override file in proper place in front end template files in folder labeled html. green bar appear @ top.
if using on older version of joomla, need copy default.php file using ftp program or hosts file manager , place html folder in default template. example:
mysite/protostar/html/mod_search/default.php
back joomla 3.2 template manager, click on 'editor' tab, click on html folder, mod_search -> default.php file
look line:
replace src="' . $img . '" src="images/magnify.jpg". replace image whenever search module used.
then go search module under module manager. click yes on search button , yes on search button image.
of course have place image file in images folder , set path file in override see fit.
if running joomla 3.2+ can create override through template manager. click on name of default front end template (for example protostar) in template column of table shows in template manager.
this brings new screen, click on tab labeled'create overrides'. click on mod_search in modules column. create override file in proper place in front end template files in folder labeled html. green bar appear @ top.
if using on older version of joomla, need copy default.php file using ftp program or hosts file manager , place html folder in default template. example:
mysite/protostar/html/mod_search/default.php
back joomla 3.2 template manager, click on 'editor' tab, click on html folder, mod_search -> default.php file
look line:
code: select all
if ($button) :
if ($imagebutton) :
$btn_output = ' <input type="image" value="' . $button_text . '" class="button" src="' . $img . '" onclick="this.form.searchword.focus();"/>';
replace src="' . $img . '" src="images/magnify.jpg". replace image whenever search module used.
then go search module under module manager. click yes on search button , yes on search button image.
of course have place image file in images folder , set path file in override see fit.
Comments
Post a Comment