FIX Manual fix on button artisans du patrimoine
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c2e1c1de76
commit
700e4f6268
|
|
@ -66,7 +66,9 @@ function add_custom_item_to_menu($items, $args)
|
|||
/* BOUTON METIERS DU PATRIMOINE */
|
||||
|
||||
// Getting label before switching blog
|
||||
$button_label = get_current_blog_id() == 1 ? __('Artisans du patrimoine', 'homegrade') : __('Artisans du patrimoine', 'metiers-du-patrimoine');
|
||||
$current_lang = apply_filters('wpml_current_language', null);
|
||||
|
||||
$button_label = $current_lang == 'nl' ? 'Vakmensen in het erfgoed' : 'Artisans du patrimoine';
|
||||
switch_to_blog(2);
|
||||
// $home_url_metiers_patrimoine = get_home_url();
|
||||
$home_url_metiers_patrimoine = get_the_permalink(43);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user