[Support request] Logo Link always links to english on my multi language site

Home Forums Support [Support request] Logo Link always links to english on my multi language site

Home Forums Support Logo Link always links to english on my multi language site

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1855023
    Simon

    Hi,
    on my site the logo link always links back to the homepage in english.
    this is my site https://www.indexuniverse.eu/
    i had the free generate press version before and it worked there.
    https://www.indexuniverse.eu/de/ for example links back to https://www.indexuniverse.eu

    #1855423
    David
    Staff
    Customer Support
    #1855830
    Simon

    where do i have to add it?

    #1855850
    Ying
    Staff
    Customer Support

    Hi Simon,

    Check this on how to add PHP: https://docs.generatepress.com/article/adding-php/

    #1855869
    Simon

    Its not working
    i added it like this
    https://prnt.sc/1b547z2

    #1855923
    Ying
    Staff
    Customer Support

    Check if the snippet is Activated and saved.

    Usually, the link should link back to the front page of this language by default.

    Are you using the Polylang plugin?

    #1855976
    Simon

    yes i use Polylang
    and as i said.
    i used the free version of generatepress and it worked.
    now i upgraded and choose another theme from the site library.
    and yes the snippet is activated and saved

    #1856006
    Ying
    Staff
    Customer Support

    i used the free version of generatepress and it worked.

    So if you disable the GP premium plugin it works?

    #1856358
    Simon

    yes.
    if i disable it it works.
    so i need to diable it?
    but i lose all the features

    #1857033
    David
    Staff
    Customer Support

    Odd – i checked your site and you don’t have a logo – i see just the site title – so that code shouldn’t work for either free or GP Premium. You would need this snippet to filter the Title:

    add_filter( 'generate_site_title_href', function( $url ) {
    	if ( function_exists( 'pll_home_url' ) ) {
    		return pll_home_url();
    	}
    
    	return $url;
    } );
    #1857276
    Simon

    working now
    thanks =)

    #1857391
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.