• Resolved pallisvans

    (@pallisvans)


    I’m making my own theme ready for translation but am stuck on two things, everything else is done.

    This string in functions.php

    $data = wp_list_categories('show_count=1&echo=0&title_li=<a href="#">Categories</a>');

    And this string in searchform.php

    <input type="text" onfocus="if(this.value=='Search here') this.value='';" onblur="if(this.value=='') this.value='Search here';" value="Search here..." name="s" id="s" />

    Any thoughts would be appreciated ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pallisvans

    (@pallisvans)

    Solved the searchform:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
        <input type="text" onfocus="if(this.value=='Search here') this.value='';" onblur="if(this.value=='') this.value='Search here';" value="<?php esc_attr_e( 'Search here', 'artpress' ); ?>" name="s" id="s" />
    </form>

    Other one remains a mystery.

    Thread Starter pallisvans

    (@pallisvans)

    Ok, found it:
    $data = wp_list_categories('show_count=1&echo=0&title_li=<a href="#">' . __('Categories','your_textdomain') . '</a>' );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate string in functions.php and searchform.php’ is closed to new replies.