Tagged: x
-
AuthorPosts
-
December 7, 2016 at 6:00 am #1284440
lvandeemterParticipantHi,
Is it possible to change the font-size of the text of the search page? This is soo huge now.
– I cannot write script, so it would be very helpful if you help me step-by-step.Another question about het search page: The language is now English ‘type and press enter to search’.
I would like to put a Dutch sentence there. How can I do that?thank you in advance for your help!
I love working with X!December 7, 2016 at 6:54 am #1284508
ThaiModeratorHi There,
Is it possible to change the font-size of the text of the search page? This is soo huge now.
Please add the following CSS:
.search-results h2.entry-title { font-size: 110%; }Another question about het search page: The language is now English ‘type and press enter to search’.
I would like to put a Dutch sentence there. How can I do that?Please add the following code under functions.php file locates in your child theme:
add_filter('gettext', 'x_translate_text' , 20, 3); function x_translate_text ( $translated_text, $text, $domain ) { $translation = array ( 'Type and Press “enter” to Search' => 'Your Dutch text', ); if( isset( $translation[$text] ) ) { return $translation[$text]; } return $translated_text; }Hope it helps 🙂
December 7, 2016 at 10:50 am #1284788
lvandeemterParticipantThanks,
The search-text is smaller and that is very nice.
But the text you type is still very big. Is it possible to make this smaller too?Thanks in advance for your help! Translation works
December 7, 2016 at 11:49 am #1284867
RupokMemberHi there,
Thanks for writing back. You can try this CSS :
.x-searchform-overlay .form-search .search-query { font-size: 5em; }Let’s adjust the font-size with your preferred value.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1284440 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
