Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is unable to change the logo for the Greek language because it is hardcoded in the theme's

header-menu.php

file.

Solution:
We recommend modifying the hardcoded image URL in the

themes/salient-child/includes/partials/header/header-menu.php

file to the desired logo for the Greek language. Here is the section of code that needs to be updated:

<?php if(ICL_LANGUAGE_CODE=='el'){ ?>
    <a id="logo" href="https://www.cap.com.cy" data-supplied-ml-starting-dark="false" data-supplied-ml-starting="false" data-supplied-ml="true">
        <img class="stnd skip-lazy" width="211" height="80" alt="C.A. Papaellinas Group" src="[URL to the Greek logo]">
        <!-- Additional image tags if necessary -->
    </a>
<?php } else { ?>
    <!-- Code for other languages -->
<?php }  ?>

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 1 month ago.

Assisted by: Bruno Kos.

Author Posts
April 30, 2024 at 7:04 am

nikolasK-2

I am trying to change the logo for the greek language and added translations to the English image and it doesn't show

April 30, 2024 at 8:04 am
April 30, 2024 at 2:01 pm #15581592

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

We found that it doesn't work because it is hardcoded in themes/salient-child/includes/partials/header/header-menu.php.

<?php if(ICL_LANGUAGE_CODE=='el'){ ?>
				<a id="logo" href="<em><u>hidden link</u></em>" data-supplied-ml-starting-dark="false" data-supplied-ml-starting="false" data-supplied-ml="true">
                    <img class="stnd skip-lazy" width="211" height="80" alt="C.A. Papaellinas Group" src="<em><u>hidden link</u></em>"><img class="mobile-only-logo skip-lazy" alt="C.A. Papaellinas Group" width="211" height="80" src="<em><u>hidden link</u></em>"><img class="starting-logo skip-lazy" width="211" height="80" alt="C.A. Papaellinas Group" src="<em><u>hidden link</u></em>"><img class="starting-logo dark-version skip-lazy" width="211" height="80" alt="C.A. Papaellinas Group" src="<em><u>hidden link</u></em>">                </a>
				<?php } else { ?>
				<a id="logo" href="<?php echo esc_url( home_url() ); ?>" data-supplied-ml-starting-dark="<?php echo esc_attr( $nectar_header_options['using_mobile_logo_starting_dark'] ); ?>" data-supplied-ml-starting="<?php echo esc_attr( $nectar_header_options['using_mobile_logo_starting'] ); ?>" data-supplied-ml="<?php echo esc_attr( $nectar_header_options['using_mobile_logo'] ); ?>" <?php echo wp_kses_post( $nectar_header_options['logo_class'] ); ?>>	
                    <?php nectar_logo_output( $nectar_header_options['activate_transparency'], $nectar_header_options['side_widget_class'], $nectar_header_options['using_mobile_logo'] ); ?>
                </a>
				<?php }  ?>

So you need to change the image url there.