• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Loco Translate + Mai Lifestyle Pro theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Internationalization and Translations › Loco Translate + Mai Lifestyle Pro theme

This topic is: not resolved

Tagged: Custom Post Type, genesis, Loco Translate, Mai Lifestyle pro, strings, Translate

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 5 months ago by actualiza.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 24, 2018 at 1:11 am #222696
    actualiza
    Participant

    Hi,
    I've created custom post type in functions.php into Mai Lifestyle Pro theme folder, and I want to translate them. I've installed Loco Translate but when I select the theme to translate only shows 4 strings, doesn't display CPT strings.

    I've added this to de style.css header:
    Text Domain: aktion-aventura

    This in functions.php:
    add_action( 'after_setup_theme', 'aktion_aventura_child_localization' );
    function aktion_aventura_child_localization(){
    load_child_theme_textdomain( 'aktion-aventura', get_stylesheet_directory() . '/languages' );
    }

    What more I have to do to translate this custom post type strings?
    Thank you very much!

    August 24, 2018 at 7:55 pm #222707
    JiveDig
    Participant

    Hi there, I haven’t personally used Loco Translate but you need to make sure the strings in the CPT code are translateable, and use a text-domain that Loco Translate will pick up.

    Also, I don’t think the theme is where your CPT code should go either. You’re safer putting that code in a plugin.


    Lead developer of Mai Theme

    August 27, 2018 at 2:14 am #222734
    actualiza
    Participant

    Ok JiveDig, I will try it that way.

    Thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble