Home Forums Themes Support Myha Myha footer change with language

Tagged: 

  • This topic has 7 replies, 2 voices, and was last updated 1 week ago by admin.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7660
    savonspotions
    Supported

    Dear Support, we would like to have a footer for each languages allocation but the theme can’t let us choose the footer for each pages, how can we force the pages with a specific footer for instance one footer for natural language and force pages in english with footer_en or footer _lang as you can create multiple footer blocks?

    Thanks for your support.

    #7665

    Hi,
    Thanks for choosing our product!
    We have just checked your site and see in your case you need go to: wp-content/themes/myha/footer.php
    and add this code after line 28:

    $lang = wpm_get_language();
    if ( $lang == 'fr' ) {
    	$footer_id = 29696;
    } else {
    	$footer_id = 29766;
    }

    https://prnt.sc/v16s0i
    You can find Footer ID like this:
    https://prnt.sc/v16s98
    Hope this helps!

    ****
    Regards,
    HaruTheme

    #7674
    savonspotions
    Supported

    Thank you very much for this solution. One last question then, when we update the theme, is there a way for me to update the theme without loosing the modification of the code added?

    Again thanks for your support.

    #7677

    Hi,
    You can use child theme and Override footer.php via child theme.
    It similar in this topic:

    How to customize WordPress theme using Child theme


    Hope this helps!

    ****
    Regards,
    HaruTheme

    #7684
    savonspotions
    Supported

    Dear support,
    I tested to add this code :

    $lang = wpm_get_language();
    if ( $lang == 'fr' ) {
    	$footer_id = 29696;
    } else {
    	$footer_id = 29766;
    }

    The footer doesn’t change.
    I verified footer ID, this one is correct.
    Can you help me please for this problem?

    For your information, the functions.php file is in myha_child folder.
    Regards

    #7685

    Hi,
    We have just checked your site and you need add this code:

    $lang = wpm_get_language();
    if ( $lang == 'fr' ) {
    	$footer_id = 29696;
    } else {
    	$footer_id = 29766;
    }

    in wp-content/themes/myha/templates/footer/footer.php
    & wp-content/themes/myha/templates/footer/footer-stylesheet.php
    https://prnt.sc/v3ggks
    https://prnt.sc/v3ggr4
    Hope this helps!

    ****
    Regards,
    HaruTheme

    #7688
    savonspotions
    Supported

    Dear Support,

    Thank you for you help.

    Regards

    #7689

    Thanks for your feedback!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.