Jump to content

Remove opacity on search bar

Recommended Posts

  • Replies 4
  • Views 881
  • Created
  • Last Reply

Top Posters In This Topic

Q1. Add to Design > Custom CSS

/* search bar overlay */
.sqs-search-ui-button-wrapper.color-dark .search-input {
    opacity: 1 !important;
}

Q2. Add to Last Line in Settings > Advanced > Code injection > Footer

<script>
$(document).ready(function() {
	$('input.search-input').attr('placeholder','enter new text');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 7/1/2021 at 12:28 AM, tuanphan said:

Q1. Add to Design > Custom CSS

/* search bar overlay */
.sqs-search-ui-button-wrapper.color-dark .search-input {
    opacity: 1 !important;
}

Q2. Add to Last Line in Settings > Advanced > Code injection > Footer

<script>
$(document).ready(function() {
	$('input.search-input').attr('placeholder','enter new text');
});
</script>

 

Thank you! Removing the overlay worked, however, changing the Search bar text did not. The "enter new text" is supposed to be where the text is changed, correct?

When I included the code without changing any text, it still didn't change. 

Link to comment
On 7/12/2021 at 11:43 AM, mnewell said:

Thank you! Removing the overlay worked, however, changing the Search bar text did not. The "enter new text" is supposed to be where the text is changed, correct?

When I included the code without changing any text, it still didn't change. 

It looks like you removed/edited some code in your current code since July 1. That caused the above code didin't work

Add this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('input.search-input').attr('placeholder','enter new text');
});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.