By Adam on Tuesday, 19 January 2016
Posted in General Issues
Replies 1
Likes 0
Views 578
Votes 0
How can I removed the text "Looking for something?" from the search bar?

AND...

How can I hide the search bar on the Ask a Question page?

Ideally, I would like to do these in a way that does not get over-ridden when upgrading.
Hi Adam,

#1. "How can I removed the text "Looking for something?" from the search bar?"
I am sorry, currently there is no setting available to hide/remove this placeholder. You'll need to
customize this file if you wish to achieve it.DIR: \components\com_easydiscuss\themes\simplistic
\searchbar.php line: 45

#2. "How can I hide the search bar on the Ask a Question page?"
You'll need to customize this as well. You may find this line of code:

<?php echo $this->loadTemplate( 'searchbar.php'); ?>

change it to:

<?php
if(JRequest::getVar('view') != 'ask') {
echo $this->loadTemplate( 'searchbar.php');
}
?>

DIR: \components\com_easydiscuss\themes\simplistic\toolbar.php line:50

By the way, this is a core file for EasyDiscuss and it will get overridden when upgrading. To
prevent this, you will need to do template overriding. You may use this docs as a guide:
http://stackideas.com/docs/easydiscuss/administrators/templating/template-overrides

Please advise:D ,
Fadhli
·
Tuesday, 19 January 2016 19:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post