• Hi!
    I have created a childstheme of scrappy and changed most of the prewritten textes as “Category Archives” and so on to my language Swedish cause the rest of my page is on Swedish, but I can’t find where the “Posted on”-text has its origin! The text only showns on media smaller than 1020px and the css is in the class .media-posted-on but in which php-file is the “Posted on”-text?
    I’m not so good at php-code so I dont want to change it very much just make it write “Publicerat den” instead of “Posted on”.
    Can somebody please help me?
    I whould be very grateful! Thanks!

Viewing 1 replies (of 1 total)
  • Hey there seaskonst,

    Hope you’re well today!

    Since the word is translatable the easiest way to change it would be by using translation files. You can find more info on how to translate your theme here:

    http://codex.wordpress.org/Translating_WordPress

    You could change it in the code but I wouldn’t recommend that since the changes will be lost when you update the theme. The text is located in template-tags.php on line 120, the line looks like this:

    printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'scrappy' ),

    The best way would be to copy the file to your child theme and make the changes there, simply replace Posted on in that line with the word of your choice.

    Hope this helps 🙂

    Cheers,
    Bojan

Viewing 1 replies (of 1 total)
  • The topic ‘Change "Posted on" to diffrent language’ is closed to new replies.