The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP eCommerce
[resolved] Translate the "Search" button text (8 posts)

  1. nikydox
    Posted 2 years ago #

    Hi, I want to translate the "Search" text from the search button and I can't find it anywhere:

    wp-content\languages\... NO
    wp-content\themes01\... NO

    And I also checked a lot of other folders, function.php files, .js files; I can't find it. Can you help? Thanks.


  2. gmet
    Posted 2 years ago #


    gold_shopping_cart.php around line 582

    should be what your looking for.

  3. nikydox
    Posted 2 years ago #

    Hi, thanks for your answer. However I did not find any gold_shopping_cart.php file in wp-content/wp-e-commerce/... Where exactly is this file?

  4. gmet
    Posted 2 years ago #

    separate folder, not the main WPEC folder

    is in the gold cart plugin folder

  5. nikydox
    Posted 2 years ago #

    Hi, thanks. I don't have the gold cart plugin installed. Only wp-e-commerce and wp-e-commerce-grid-view.

  6. gmet
    Posted 2 years ago #

    cool grid plugin, didnt know of that, but I have the gold one from the WPEC guys.

    well post your site...........or

    I use a plugin called firebug in mozilla firefox browser. you can select html, right click, click 'Inspect Element with Firebug'. And it will pull up a browser with that area selected and show the DIV tag names you might search to find what your looking for.

    I then search my WPEC folder for those words.

    Has been amazingly helpful for finding these type of things to modify, including colors changes, font size changes etc.

    You need some HTML backgroud to decipher the code.

    **Comment out, try not to delete the code, then you can always go back if you mess things up.

    these are PHP pages so use this <?php /*?>code to hide<?php */?>

  7. nikydox
    Posted 2 years ago #

    Hi and thanks again. I finally managed to understad how this works. There is a code calling the search form in header.php: <?php get_search_form(); ?>. If the theme in use does not have a searchform.php file included in the main directory, WordPress uses the default one that is included in the core files. So you can create a searchform.php file with customized code. In my case I just copied the html code displayed in chrome and replaced the "search" text with the right translation.

  8. gmet
    Posted 2 years ago #

    cool. glad you got it working

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.