Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1284440
    lvandeemter
    Participant

    Hi,

    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!

    #1284508
    Thai
    Moderator

    Hi 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 🙂

    #1284788
    lvandeemter
    Participant

    Thanks,

    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

    #1284867
    Rupok
    Member

    Hi 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!

  • <script> jQuery(function($){ $("#no-reply-1284440 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>