Okay
  Public Ticket #1111950
How can I translate my portfolio page title ?
Closed

Comments

  •  2
    Stephane started the conversation

    Hello,


    The site works with WPML (latest version), in 2 languages : EN and FR.

    And Kalium 2.0.5 version.

    How can I set a translated title for the portfolio page (using the portfolio template and 'portfolio' slug) ? If I set the title in the options, It's not recognized as a string to translate by WMPL, and the same title is used for FR and EN.

    If I do not use the portfolio template and create a customized portfolio page with distincts slugs (such as 'realisations' for FR and 'works for EN) and if I add inside (with VC)  a text block (for title) and a portfolio block below, I can of course set a title that is different for both languages. 
    But once in a portfolio item page, the button to go back to portfolio uses a single URL that cannot have to values (FR and EN) in the kalium options. So URL is wrong in one language.

    Can you help ?

    Thank you for your support,

    Stephane

  •  1,558
    Laborator replied

    Hi Stephane,

    Can you please share your site credentials here, because we need to login to your site and see this issue live. Your information is safe (private) in this thread. To include your credentials click Insert Credentials button in editor toolbar. (See how)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  2
    Samixm replied

    Hello Art,

    Here are my admin credentials.

    Thanks,


    Site CredentialsWP
    WordPress Credentials
    Username:smartin
    Password:Lipopotefou39
    {"wp":{"use":true,"adminUrl":"","username":"smartin","password":"Lipopotefou39"},"ftp":{"use":false,"url":"","port":"","user":"","password":"","path":""}}

     

  •  1,558
    Laborator replied

    Hi there,

    Cannot access your site, this is what I am getting when trying to enter it:


    (view large version)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  2
    Samixm replied

    The website is www.buischaer.com

  •  1,558
    Laborator replied

    Hi Samixm,

    We looked this issue, we will need to login into FTP and check if we can have a multi-lingual portfolio archive, and make sure you provide the whole FTP credentials as you can see previously your link was not included in the credentials table.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  2
    Samixm replied

    Art, sorry for the missing URL.

    Here is a FTP access, you will find a fullbackup (today) in /web/wp-content/uploads/backwpup-7c5b70-backups

    Site CredentialsFTP
    FTP Credentials
    FTP URL:www.buischaer.com
    User:njre_smartin
    Password:Lipopotefou39
    Path:/web/wp-content/uploads/backwpup-7c5b70-backups
    {"wp":{"use":false,"adminUrl":"","username":"","password":""},"ftp":{"use":true,"url":"www.buischaer.com","port":"","user":"njre_smartin","password":"Lipopotefou39","path":"/web/wp-content/uploads/backwpup-7c5b70-backups"}}

     

  • [deleted] replied

    Hi Stephane,

    I have logged in to your FTP and analyzed the problem. I saw that you are using an old version of WPML (3.3.8) and current version is 3.6.3  and also old version of Kalium as well (1.9.4.2) and current version is 2.0.6.

    So if you update the WPML first and the problem is solved then you don't need to update the theme to fix this problem. 

  •  2
    Samixm replied

    Hi Arlind,


    WMPL is now updated and Kalium too (but 2.0.5).

    The issue remains the same : I cannot set a distinct portfolio slug for both languages so the portfolio back button goes back to the correct portfolio page (FR or EN).

    If I uses the default slug ('portfolio') for both languages, I cannot set a distinct title (FR and EN) for the porfolio page.


    Thank your for your support,

    Knd Regards,


    Stephane

  • [deleted] replied

    Hi Stephane,

    I have checked sample portfolio item:

    French:

    http://www.buischaer.com/creation-dune-habitation/

    English:

    http://www.buischaer.com/en/creation-dune-habitation/


    On French version when I click the four squares icon it sends me to this page:

    http://www.buischaer.com/portfolio/

    On English version when I click the four squares icon it sends me to this page:

    http://www.buischaer.com/en/portfolio/


    So the correct language is shown for each current language.

  •  2
    Samixm replied

    HI,

    Yes default URL (using 'portfolio' slug) are correct in both languages as you can see I do not use 'portfolio' as slug for my portfolio pages but 'realisations' (FR) and 'works' (EN) (2 pages that include Portfolio Visual composer blocks). In this case the back button does not work because if I set a custom portfolio slug (in your options), I cannot set it for both languages.


    If I use 'portfoiio' as slug, back button URLS are ok for both languages, but I cannot set the portfolio page title in both languages. Because your options panel does not support multilanguage.

    Thanks,

    Kind Regards

  • [deleted] replied

    Hi Stephane,

    After adding the following code in the end of functions.php file it fixed the problem:

    // Fix portfolio homepage link
    function portfolio_home_link_replacement( $args ) {
    $portfolio_page_id = 7;

    if ( function_exists( 'icl_object_id' ) ) {
    $args['url'] = get_permalink( icl_object_id( $portfolio_page_id ) );
    }

    return $args;
    }

    add_filter( 'kalium_get_portfolio_query', 'portfolio_home_link_replacement' );

    I have checked the id of portfolio page which is 7, then added in$portfolio_page_id = 7and now archive URL is pointing correctly to the portfolio page.

    I hope this works fine for you.