Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22432

    Hi Kriesi and team,

    Thanks for Your Corona theme.

    Nice theme!

    I’v managed to do customization on it.

    But, one simple question I still can’t figure it out.

    How can I modify the heading (image selector texts) in a portfolio page?

    That is, like in your demo page http://www.kriesi.at/themes/corona/templates/portfolio-3-columns/

    how can I change the word/text “All’ into my own language?

    I do not intend to use any multi-language support, just a simple hard-coded change is OK.

    I’ve inspected its element, and its CSS should be something like: .sort_by_cat .active_sort.

    But I still can’t see where I can modify the text itself.

    Looking forward to your help and assistance.

    Thanks in advance!

    #115780

    Hi,

    Most people make a .pot language file (its free) which has all the english phrases of the theme, and then they put their own language next to it, and theme takes care of the rest. because otherwise you will have to go through a large number of pages to change things. Also some of the words / phrases are already inside the database where they are placed as soon as you activate the theme, and so are far from easy to reach.

    Here is the free po editor http://sourceforge.net/projects/poedit/?source=directory , with it you make a file and dump it in the languages folder of the theme.

    However if you wish to locate the various english words one by one, you will need to follow the directions in this post which will tell you how to locate anything and everything you want. http://www.kriesi.at/support/topic/changing-to-antoher-language#post-102486

    Thanks,

    Nick

    #115781

    Hi Nick,

    Thanks so much for Your reply!

    Yes, I guess using the .PO and .MO files is a much better way of translating the words

    instead of manually modifying them in various pages despite the capability of folder-based

    text searching of modern code editor like Notepad++ to replicate/implement Unix-style grep functionality.

    I am able to use PO editor to translate the words now, yet I have a small question on it.

    I’m using a child theme to implement my customization on Corona theme.

    Yet, the PO & correspondingly derived MO files have to be put under the original Corona

    folder, that is under: corona/lang instead of my child theme’s folder. Is this an expected behavior?

    FYI, I’m using the latest WordPress with multi-site support.

    Thanks in advance again for Your kind help and assistance!

    #115782

    Hi,

    Please look here

    http://codex.wordpress.org/Child_Themes#Internationalization

    http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain

    You will need to add the function described here to your child theme’s function.php file (which is probably empty or doesn’t exist, but make a new file and call it functions.php and add the code below as the only thing in it.). You would create a language folder called /languages/ in your child theme and drop the correctly named file into the language folder, and then add the code below to functions.php located in the main folder of your child theme.

    <?php
    function my_child_theme_setup() {
    load_child_theme_textdomain( 'avia_framework', get_stylesheet_directory() . '/languages' );
    }
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    ?>

    Thanks,

    Nick

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Changing the heading (image selector heading texts) in Portfolio Page’ is closed to new replies.