Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-02-20 00:31:42

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Search text

I use "quick search" on my website, with the icon in the top pallet. I can change the default text that appears in the popup in Designer=>Templates=>Localization just fine, but different text appears when invoked from my Blog page. I don't see anywhere to change that default text. What am I missing? You can see the behavior on my website between the main template and the blog template: http://www.michaelblanchette.com/

Last edited by mblanchette1 (2018-02-20 00:32:22)

Offline

#2 2018-02-20 00:42:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search text

I'm not positive, but I think that's controlled in WordPress (WordPress has its own search mechanism)

On another issue, have you looked at your site at mobile sizes? I just tried accessing your site on my iPad and the mobile navigation is nearly unusable. It's too wide or something, the links are under the page picture and hard to see.

It looks like the weird z-index issue that's popped up in the past. Are you using the latest version of Pangolin?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2018-02-20 00:55:55

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search text

Mike, back to the search window placeholder. It looks like you can change that in the WordPress theme in the searchform.php file. You'll need to do this with a child theme or any changes you make will get overwritten every time you need to export the theme to WordPress.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2018-02-20 01:12:04

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Search text

The Wordpress theme is localization-ready according to the normal ways one would go about localizing any other Wordpress theme, meaning that Wordpress localization is not managed through Backlight.

Wordpress docs on the matter:
https://codex.wordpress.org/I18n_for_Wo … Developers

And this article may be easier to deal with:
https://premium.wpmudev.org/blog/ultima … alization/

If you only want to make the one change, though, then Rod's suggestion of creating a child theme may be the easier solution.


Matt

The Turning Gate, http://theturninggate.net

Offline

#5 2018-02-20 01:43:07

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Rod, I see what you mean about navigation. I think I'm using the very latest version of Pangolin but I'll verify. That's weird. This doesn't happen on my workshops site, so maybe I've got a mix of versions?

Last edited by mblanchette1 (2018-02-20 01:53:54)

Offline

#6 2018-02-20 02:49:34

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Search text

Mike, check your content on that page for a mismatch opening/closing elements, for example a DIV that might have been opened ( <div> ), but without a terminating partner ( </div> ).

The problem seems to be that the right pallet is somehow inside of the main column. The columns should be beside each other at the same level, not one inside of the other. So I'm guessing you have a syntax error somewhere in your content.


Matt

The Turning Gate, http://theturninggate.net

Offline

#7 2018-02-20 02:54:43

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Search text

I also noticed that the CLOSE button on your quick search overlay is the same color as the background, so cannot be seen. I believe you should be able to resolve this by looking into the color cascade for your buttons. If you can't find it, though, export a template and send it over, and I'll see if I can't sort where the color is going wrong. I'm hoping it's your pilot error, and not an inheritance issue I might have overlooked in setting up the buttons.


Matt

The Turning Gate, http://theturninggate.net

Offline

#8 2018-02-20 10:16:03

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Thanks for the suggestions. I'll check the syntax in content and CSS to see if I might have screwed up.

Offline

#9 2018-02-20 11:02:13

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Matt, you were right on with the fix. I had a missing </div> at the end of a recent content change to the main page. That fixed the problem with navigation on smaller devices. Thanks for that find, Rod.

Offline

#10 2018-02-20 11:07:36

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Matt, regarding the CLOSE button, it was hidden because I forced the background color of the page to match my website in CSS, which caused the button to accidentally be hidden. Is that page supposed to uphold inheritance from the page template? It's not.

By default, it's white with the CLOSE button as #191919 at .5 opacity. My default color scheme does not include these colors, so it's not inheriting the colors of my main page template. I had to insert CSS code to override the background color. I can obviously do the same for the CLOSE button color, but is that the expected behavior?

Last edited by mblanchette1 (2018-02-20 11:08:46)

Offline

#11 2018-02-20 11:51:33

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Regarding the default text in the search input box, I don't think I made myself clear. I wasn't referring to a Search widget in Wordpress. Changing the content of searchform.php in the Wordpress template only affects the Search function within the Wordpress blog itself. I'm referring to the default text that appears when I press the Quick Search symbol in the top pallet on a Backlight page. Changing searchform.php in the Wordpress template has no bearing on that text.

If you click on the Quick Search symbol in the top pallet on my main page, you get this http://www.michaelblanchette.com/#search. If I click it from the top of my Blog page, you get this text instead (which does not reflect Backlight Localization) http://www.michaelblanchette.com/blog/#search.

Last edited by mblanchette1 (2018-02-20 12:00:56)

Offline

#12 2018-02-20 15:26:38

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Search text

Honestly, I cannot recall my logic for the close button. I'll maybe need to dig into the code. I do remember, though, making some efforts to ensure that it should always remain visible against the background. If that's something that can easily occur, it would warrant a second look.

The source for the quick search in the Wordpress Add-on is located in dynamic/view/footer.php. Search for the id "search_tool" to find it.

And looking at it now, it looks like I neglected to make that snippet localization-ready. I should address that in an update.


Matt

The Turning Gate, http://theturninggate.net

Offline

#13 2018-02-20 22:58:45

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: Search text

Thanks, Matt. I can deal with the colors of the background and CLOSE button easily in CSS. And I've temporarily changed the text in footer.php to match the localized version of the search text for now.

By the way, I think the same non-localization issue exists for a few search-related labels. Labels "Search Blog" and "Search Albums" are fixed in searchform.php inside the Wordpress module rather than using the localized text in Backlight.

Last edited by mblanchette1 (2018-02-20 23:16:24)

Offline

#14 2018-02-21 00:53:33

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Search text

The labels in Wordpress are not subject to change via Backlight, but are correctly setup for standard Wordpress localization, which is consistent with the theme at large.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB