How to Fix Search Bar on Publisher Theme

Solved

How to Fix Search Bar on Publisher Theme

Trish68
Visitor
1 0 1

Hi. How can I fix the Search Bar on Publisher Theme. The following shows up on every search. How do I remove the"suggest products-IONS" ?

 

Trish68_0-1746146788760.png

Accepted Solution (1)

goldi07
Navigator
360 38 69

This is an accepted solution.

Hello @Trish68  the issue you're seeing where "SUGGESTIONS" is broken into "SUGGEST" and "IONS" in the Shopify Publisher theme is typically due to incorrect flex or grid settings, or the text wrapping unexpectedly inside the search predictive dropdown.

 

 

 

How to Fix the "SUGGESTIONS" Text Breaking in Publisher Theme
Step 1: Inspect the Element
Use the browser's Inspect tool (Right-click > Inspect) to locate the container that's rendering the word "SUGGESTIONS".

You're likely to find something like this in the Liquid or CSS:

 

 

<div class="predictive-search__section-header">
  SUGGESTIONS
</div>

 

Step 2: Check CSS
Look in the theme CSS file (likely base.css or component-predictive-search.css) for this class:
.predictive-search__section-header

You’ll probably see styling like this:

.predictive-search__section-header {
  font-size: 3rem; /* or similar */
  display: block;
}

 

Step 3: Fix the Styling
You want to:

. Prevent line breaks

. Shrink font size if necessary

. Consider using white-space: nowrap;

Updated CSS:

.predictive-search__section-header {
  white-space: nowrap;
  font-size: 1.2rem; /* adjust as needed */
  line-height: 1.2;
  font-weight: bold;
}

 

If white-space: nowrap; doesn't work alone, wrap the header in a flex container and ensure it doesn't overflow:

.predictive-search__section-header-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem; /* or smaller */
}

 

 

Step 4: Optional – Change the Wording
If needed, you can also edit the actual wording in your theme files:

. Go to Online Store > Themes > Actions > Edit code

. Search for predictive-search.liquid or look inside snippets/ or sections/

. Replace "Suggestions" with "Suggested" or something shorter.

 

if you need more help plz let me know 

 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here

View solution in original post

Replies 3 (3)

BiDeal-Discount
Shopify Partner
500 58 115

Hi @Trish68 

Can you share your store url & password (if applicable) then I will check and give you the solution

- Helpful? Like & Accept solution!
- BiDeal Bundle Volume Discounts: Upsell with bundles, quantity breaks, volume discounts. AOV+ with gifts, shipping & progressive cart
- Bify app: Shopify automatic discount solutions
- Contact me? support@bify.app or WhatsApp: +84974709330

tim
Shopify Partner
4481 532 1634

I'd say that most probably you've made some changes to make your h2 elements bigger in size and this affects these headings.

Need to see you store to confirm...

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

goldi07
Navigator
360 38 69

This is an accepted solution.

Hello @Trish68  the issue you're seeing where "SUGGESTIONS" is broken into "SUGGEST" and "IONS" in the Shopify Publisher theme is typically due to incorrect flex or grid settings, or the text wrapping unexpectedly inside the search predictive dropdown.

 

 

 

How to Fix the "SUGGESTIONS" Text Breaking in Publisher Theme
Step 1: Inspect the Element
Use the browser's Inspect tool (Right-click > Inspect) to locate the container that's rendering the word "SUGGESTIONS".

You're likely to find something like this in the Liquid or CSS:

 

 

<div class="predictive-search__section-header">
  SUGGESTIONS
</div>

 

Step 2: Check CSS
Look in the theme CSS file (likely base.css or component-predictive-search.css) for this class:
.predictive-search__section-header

You’ll probably see styling like this:

.predictive-search__section-header {
  font-size: 3rem; /* or similar */
  display: block;
}

 

Step 3: Fix the Styling
You want to:

. Prevent line breaks

. Shrink font size if necessary

. Consider using white-space: nowrap;

Updated CSS:

.predictive-search__section-header {
  white-space: nowrap;
  font-size: 1.2rem; /* adjust as needed */
  line-height: 1.2;
  font-weight: bold;
}

 

If white-space: nowrap; doesn't work alone, wrap the header in a flex container and ensure it doesn't overflow:

.predictive-search__section-header-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem; /* or smaller */
}

 

 

Step 4: Optional – Change the Wording
If needed, you can also edit the actual wording in your theme files:

. Go to Online Store > Themes > Actions > Edit code

. Search for predictive-search.liquid or look inside snippets/ or sections/

. Replace "Suggestions" with "Suggested" or something shorter.

 

if you need more help plz let me know 

 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here