WordPress.org

Forums

Sentense of Serch to change (13 posts)

  1. niktabah
    Member
    Posted 4 years ago #

    hai.. like to change the word/sentence of search in the serch box to Type and Wait to Search.Please refer attached link

    http://img222.imageshack.us/i/87534172.jpg/

    hope i will get the answer here

    nik
    http://mathsfx.com/

  2. Emil Uzelac
    Theme Review Admin
    Posted 4 years ago #

    FTP to your site, or login via dashboard. Locate wp-content/themes/k2/searchform.php and change it there:

    <input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search &raquo;', 'k2_domain'); ?>" />
  3. niktabah
    Member
    Posted 4 years ago #

    tq for your quick reply Emil Uzelac..

    inside my searchform.php..i found the following
    <input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search »', 'k2'); ?>" />

    where should i change on my above code??

    sorry i new in this area

    Nik

  4. Samuel B
    moderator
    Posted 4 years ago #

    change
    Search >>
    to what you want

  5. niktabah
    Member
    Posted 4 years ago #

    Dear Emil Uzelac and Samuel B...

    i have change the
    <input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search ยป', 'k2'); ?>" />

    to

    input type="submit" id="searchsubmit" value="<?php esc_attr_e('
    Type and Wait to Search;', 'k2'); ?>" />

    but nothing happen..

    is it , it the correct place i replace it??

  6. Emil Uzelac
    Theme Review Admin
    Posted 4 years ago #

    According to K2 sidebar.php:

    <div id="search"><h4><?php _e('Search','k2_domain'); ?></h4>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    	</div>

    This is in searchform.php so that's the place where it should be.

  7. niktabah
    Member
    Posted 4 years ago #

    Dear Emil Uzelac & Samuel B, and others
    below is the Sidebar (sidebar.php) code for my K2 version K2 1.1 RC1 and i using Wp Version 3.0.4

    <?php
    /**
    * The template for displaying the sidebar.
    *
    * @package WordPress
    * @subpackage K2
    * @since K2 unknown
    */

    if ( ! get_post_custom_values('hidesidebar1') && is_active_sidebar('widgets-sidebar-1') ): ?>

    <div id="widgets-sidebar-1" class="widgets secondary">
    <?php dynamic_sidebar('widgets-sidebar-1'); ?>
    </div><!-- #widgets-sidebar-1 -->

    <?php endif; ?>

    <?php if ( ! get_post_custom_values('hidesidebar2') && is_active_sidebar('widgets-sidebar-2') ): ?>

    <div id="widgets-sidebar-2" class="widgets secondary">
    <?php dynamic_sidebar('widgets-sidebar-2'); ?>
    </div><!-- #widgets-sidebar-2 -->

    <?php endif; ?>

    <div class="clear"></div>

    according to the above code i cannot find the latest code given by Emil Uzelac..

    hope it will be solve next..

  8. Emil Uzelac
    Theme Review Admin
    Posted 4 years ago #

    Just downloaded K2 1.1 RC1 and searchform.php looks the same to me :) And that was what I could find.

  9. Samuel B
    moderator
    Posted 4 years ago #

    same here

  10. niktabah
    Member
    Posted 4 years ago #

    Dear Emil Uzelac & Samuel B...

    tq for your effort to help me..tq very much..it mean i can't change the word/sentence of search in the serch box to Type and Wait to Search????

    so any suggestion or any plugin to solve it??

  11. Emil Uzelac
    Theme Review Admin
    Posted 4 years ago #

    I went and searched the entire theme and the only place where you're able to change this was indeed the searchform.php. What I would like to know if you're making the changes via FTP wp-content/themes/k2/searchform.php directly or via Dashboard? The reason why is that sometimes if your WordPress theme files aren't with the correct file permissions you won't be able to save the changes directly from there and FTP would be your best bet. Now the very last resource that I can think of is to update this from your /languages/k2.pot folder.

    #: ../searchform.php:5
    msgid "Search &raquo;"
    msgstr ""

    To open k2.pot you'll need plain text editor i.e. Notepad or similar.

  12. niktabah
    Member
    Posted 4 years ago #

    Dear Uzelac...
    tq for your effort sir...
    for your information, i have making the changes via Dashboard..i will try it using FTP wp-content/themes/k2/searchform.php

  13. Emil Uzelac
    Theme Review Admin
    Posted 4 years ago #

    not a problem :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags