Site logo

[Resolved] Filtre generate_logo_href not work

Home Forums Support [Resolved] Filtre generate_logo_href not work

Home Forums Support Filtre generate_logo_href not work

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1560691
    Romain

    Good morning all,
    I am using polylang and would need to change the logo url so that it points to the correct homepage.
    After some research on the forum I came across the generate_logo_href filter.
    I have the impression that this one is not working.
    I tried the following function but the url is still the same.

    add_filter( 'generate_logo_href', function() {
      $home_link = pll_home_url(pll_current_language());
      return $home_link;
    } );

    Do you have an idea

    Romain

    #1561624
    Leo
    Staff
    Customer Support
    #1561718
    Romain

    Hi,

    Yes I tried this solution, when in doubt, I even tried to return a different string (url) and nothing is changed.

    Romain

    #1561824
    Leo
    Staff
    Customer Support

    How are you adding the code?

    Can you link me to the page in question?

    #1561861
    Romain

    The code was added in the functions.php file of my theme (child).

    The problem is visible on:

    https://rdr-it.com: site root in French so url ok
    https://rdr-it.com/en: url on the French version
    https://rdr-it.com/es url on the French version

    Romain

    #1562818
    Romain

    Sorry, the filter works fine … You just have to do the same thing on the title 🙂

    #1562854
    Elvin
    Staff
    Customer Support

    Hi,

    Sorry, the filter works fine … You just have to do the same thing on the title

    Is this issue resolved?

    To clarify: are you asking the filter for the site title as well? let us know.

    Let us know. 🙂

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