passing current-language to body

This commit is contained in:
Antoine M 2023-11-28 17:32:42 +01:00
parent 252a76a317
commit d3d32cc51d

View File

@ -7,10 +7,10 @@
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<?php $currentLanguage = apply_filters('wpml_current_language', null); ?>
<body <?php body_class(); ?>> <body <?php body_class(); ?> current-language="<?php echo $currentLanguage ?? "" ?>">
<?php <?php
do_action('tailpress_site_before'); do_action('tailpress_site_before');
global $post; global $post;