• Resolved yda5

    (@yda5)


    Hey ??
    There is one thing that I can’t translate to my language on the theme, I managed to translate the all theme by using “Loco translate” but this one word I couldn’t find there, I also checked on “theme editor” everywhere, But nothing..
    https://ibb.co/rfqKCMf
    As you can see that word” by” is the one.
    Thanks.

    • This topic was modified 4 years, 10 months ago by yda5.
    • This topic was modified 4 years, 10 months ago by yda5.
    • This topic was modified 4 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi.
    Is that translation ready in the theme?
    Which theme is it?

    Thread Starter yda5

    (@yda5)

    Hey, What do u mean by “ready” ?
    Theme – HitMag

    For theme localization, language files are used (see https://developer.www.ads-software.com/apis/handbook/internationalization/localization/#translating-themes-and-plugins).
    And in theme templates, translate functions are used, like __(), _e() or _x().

    I asked if the theme has one of those functions in “by” word.
    In HitMag theme, there is it. Around line 64 of /hitmag/inc/tempalte-tags.php.

    $byline = sprintf(
      esc_html_x( 'by %s', 'post author', 'hitmag' ),
      '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
    );
    Thread Starter yda5

    (@yda5)

    Legend ! It works! thank you.
    I have another question and it would be great if you could help me, my “search” widget button is on the opposite way, I mean it’s made for english readers i guess, and in my language we read and write from right to left, so need to change somehow the direction of the button if it’s possible.
    https://ibb.co/HxRC9GW
    The red arrow it’s where the button should be.

    • This reply was modified 4 years, 10 months ago by yda5.
    • This reply was modified 4 years, 10 months ago by yda5.

    How about add css like this:

    .search-form .search-submit {
      right: unset;
      left: 0;
    }
    Thread Starter yda5

    (@yda5)

    It workssss !! :D:D
    Thank you so much again for your great help!

    • This reply was modified 4 years, 10 months ago by yda5.

    Congrat!
    Pls mark as resolved, thanks.

    Thread Starter yda5

    (@yda5)

    NP ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Language of the theme’ is closed to new replies.