WordPress.org

Ready to get started?Download WordPress

Forums

Corpo
[resolved] Editing theme titles (9 posts)

  1. stylep
    Member
    Posted 11 months ago #

    Sorry for asking too much, this is my first WP install.

    Where can I find the titles on the website like "Latest Projects" or "Learn more"?

    I thought these are defined in the .php files and I can easily rewrite them (for translation purposes), but they are not there.

  2. alex27
    Member
    Theme Author

    Posted 11 months ago #

    This texts are inside template files, but if your creating translation to other language, you should follow instructions found in theme documentation (look at the bottom).

  3. stylep
    Member
    Posted 11 months ago #

    And where are these template files? I mean, I couldn't find any of the texts that I wanted to change in the Template editor.

  4. lfreitas
    Member
    Posted 11 months ago #

    I'm translating the theme and I can't find the string to "Latest Projects" that appear on home page.

    I changed the "Portfolio Page Title" in Theme Options but it only affects the archive page (/projects).

    I use Sublime Text 2 function to search in files for "Latest Projects" and the only result is in line 132 of /corpo/options.php, that says:
    " options[] = array( "name" => __('Do you want to display latest projects section on the Home Page?','corpo'), ".

    Where could this be?

  5. alex27
    Member
    Theme Author

    Posted 11 months ago #

    Please note that portfolio is not built into the theme, it comes from Corpo Toolkit plugin and that's where those texts are located.

  6. lfreitas
    Member
    Posted 11 months ago #

    Thanks, Alex!

    I found the string, but I didn't found any .po in Corpo Toolkit folder... so if I translate the php file I would lose it in an update.

    Is there a solution to this or should I just create a .po myself?

  7. stylep
    Member
    Posted 11 months ago #

    I found everything I wanted. The last thing I'd like to change is the projects page texts ([domain]/project/[projectname] - where should I look for that?

  8. alex27
    Member
    Theme Author

    Posted 11 months ago #

    This is also in the plugin, portfolio.php where the custom post type is constructed. But I don't recommend that - this will be lost during plugin update, no way around it.
    For future plugin release, I'll probably prepare .po files to facilitate translations.

  9. stylep
    Member
    Posted 11 months ago #

    Thanks, I found everything I wanted. I resolve this topic.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.