• 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

Blog title not linking with WPML and Genesis

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 › Blog title not linking with WPML and Genesis

This topic is: not resolved

Tagged: blog title, genesis, wpml

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 2 months ago by JanHoek.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 7, 2015 at 4:14 am #136266
    sebgates
    Member

    Hi. I have managed to translate a website: http://atmakriya.org/ - there are currently 2 languages (English and Italian) The only issue is that the blog title link does not work after you navigate away from the first page you land on. WPML have written an article on why this happens and give a solution - the only issue is there is no header.php in a Genesis child theme and when I checked the Genesis framework files the header.php does not contain the code they are talking about.

    How would I use the function they gave in the tutorial with Genesis so the blog title links correctly?

    http://wpml.org/documentation/support/creating-multilingual-wordpress-themes/home-page-link/

    http://atmakriya.org/
    January 10, 2015 at 9:49 am #136881
    JanHoek
    Participant

    You could use something like this;

    add_filter( 'genesis_seo_title', 'child_header_title', 10, 3 );
    /**
     * Change default Header URL.
     * 
     * @author Jan Hoek
     * 
     */
    function child_header_title( $title, $inside, $wrap ) {
        $inside = sprintf( '<a href="?php echo icl_get_home_url() ?>" title="%s">%s</a>', esc_attr( get_bloginfo( 'name' ) ), get_bloginfo( 'name' ) );
        return sprintf( '<%1$s class="site-title">%2$s</%1$s>', $wrap, $inside );
    }

    I'm not familiar with WPML but you can give it a try.


    Hi, my name is Jan Hoek. Sure, they all say I have a big head, but I like to think it’s way too small for all my ideas.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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