• Resolved kuivah

    (@kuivah)


    I edited template-tags.php in my Sela-child-theme. I tried to change the texts “Leave a comment”, “1 Comment”, “x Comments” to the native language of my blog.

    But the changes are not realized through the child theme. It works if I edit the main php-file in Sela. Any idea why the edits for the child theme do not work with template-tags? I have succesfully edited other php-files in my child theme.

    My blog: http://laurisalmi.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi, not being able to see your code, the first thing that occurs to me is to ask is if you added a filter to your child functions.php file so that the software knows to use the new template-tags.php file. Just on the off chance you haven’t seen it, here is a link to the Child Theme Codex page.

    Moderator Kathryn Presner

    (@zoonini)

    Hi kuivah! There’s an easier way to get a Finnish translation of the theme installed, instead of making hard-coded changes in a child theme. It involves adding the Sela Finnish translation to your site instead of making manual changes in a child theme.

    The Finnish translation of Sela is here:

    https://translate.wordpress.com/projects/wpcom/themes/sela/fi/default/

    There are some pending translations (in yellow) which I’m trying to get approved by a Finnish GlotPress validator, so you’ll have all the latest text strings in the file. Once that’s done, I’ll let you know.

    The steps at that point will be:

    1. From the dropdown menu at the bottom left, choose the .mo file format option, and click Export to download the Finnish translation file and save it on your hard drive.
    2. Rename the file sela-fi.mo on your hard drive.
    3. Upload the file to your site in this spot in your WordPress install:
    /wp-content/languages/themes/sela-fi.mo

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Editing template-tags.php in child theme’ is closed to new replies.