Home › Forums › Themes Support › Claue › Search Widget Placeholder
- This topic has 7 replies, 2 voices, and was last updated 6 years, 5 months ago by Harry.
-
AuthorPosts
-
-
July 23, 2018 at 4:12 pm #23083
-
July 23, 2018 at 4:15 pm #23084
And also want to make it center align in the mobile view
Rahim Vaziri
CEO & Founder at Look.ir -
July 23, 2018 at 10:55 pm #23119
Hi Rahim,
Please add below code
@media only screen and (min-width: 1025px) { .widget .search-form .search-field::-webkit-input-placeholder { color: #fff; } .widget .search-form .search-field:-moz-placeholder { color: #fff; } .widget .search-form .search-field::-moz-placeholder { color: #fff; } .widget .search-form .search-field:-ms-input-placeholder { color: #fff; }} @media only screen and (max-width: 767px) { .widget .search-form .search-field::-webkit-input-placeholder { text-align: center; } .widget .search-form .search-field:-moz-placeholder { text-align: center; } .widget .search-form .search-field::-moz-placeholder { text-align: center; } .widget .search-form .search-field:-ms-input-placeholder { text-align: center; }}
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 1:02 am #23129
Hi Harry,
after the code the desktop is fine but the mobile is still like before the change.
Desktop :
Mobile :
Rahim Vaziri
CEO & Founder at Look.ir -
July 24, 2018 at 3:57 pm #23147
Hi Rahim,
Please add below code
@media only screen and (max-width: 767px) { .widget_search { text-align: center;} }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 24, 2018 at 4:15 pm #23149
Hi Harry,
This is what I have added :
/* search widget */ @media only screen and (min-width: 1025px) { .widget .search-form .search-field::-webkit-input-placeholder { color: #fff; } .widget .search-form .search-field:-moz-placeholder { color: #fff; } .widget .search-form .search-field::-moz-placeholder { color: #fff; } .widget .search-form .search-field:-ms-input-placeholder { color: #fff; }} @media only screen and (max-width: 767px) { .widget .search-form .search-field::-webkit-input-placeholder { text-align: center; } .widget .search-form .search-field:-moz-placeholder { text-align: center; } .widget .search-form .search-field::-moz-placeholder { text-align: center; } .widget .search-form .search-field:-ms-input-placeholder { text-align: center; } .widget_search { text-align: center; }}
And now I see that in the ipad mini the placeholder is still there and in the ipad it’s not center aligned!
Rahim Vaziri
CEO & Founder at Look.ir -
July 24, 2018 at 4:35 pm #23152
Harry,
I think there is no need of @media only screen and (min-width: 1025px) because I don’t want to have the placeholder on all resolutions and the 767px should be changed to the 960px or something less.
Beside this I didn’t find any string translation for the placeholder of the search widget in the theme.
If I had that I could hide it with one space instead of css use!
Am I right?
And for the first time I used the search feature and found that when the website finds the results, there is no sidebar in the result page, and the result page is so empty without any sidebar,
Check Here
How can I add primary sidebar in the results page?
Thank you.
Rahim Vaziri
CEO & Founder at Look.ir -
July 24, 2018 at 6:42 pm #23162
Yes, please change @media to screen what you want it do.
/* search widget */ .widget .search-form .search-field::-webkit-input-placeholder { color: #fff; } .widget .search-form .search-field:-moz-placeholder { color: #fff; } .widget .search-form .search-field::-moz-placeholder { color: #fff; } .widget .search-form .search-field:-ms-input-placeholder { color: #fff; } @media only screen and (max-width: 960px) { .widget .search-form .search-field::-webkit-input-placeholder { text-align: center; } .widget .search-form .search-field:-moz-placeholder { text-align: center; } .widget .search-form .search-field::-moz-placeholder { text-align: center; } .widget .search-form .search-field:-ms-input-placeholder { text-align: center; } .widget_search { text-align: center; }}
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.