danneniko
Forum Replies Created
-
Oh wow. It works flawlessly when you activate the css cache in Oxygen builder.
Forum: Plugins
In reply to: [Multisite Language Switcher] “Alternate” tags missing on homepagepeterbisset, is it the HTML lang tags you’re trying to change? if so, try this:
// Change de to de-DE if ( get_locale() == 'de_DE' ) { // Make this variable global global $__language_attribute; // Set the language we want to use $__language_attribute = 'de-DE'; // Listen for the language filter add_filter('language_attributes', '__language_attributes_use_global'); function __language_attributes_use_global($lang){ global $__language_attribute; return "lang=\"$__language_attribute\""; } }
Forum: Plugins
In reply to: [Multisite Language Switcher] “Alternate” tags missing on homepageTry putting this in functions.php
// Adjust to the correct hreflang tags in the alternate tags
function my_msls_head_hreflang( $language ) {
if ( ‘de_DE’ == $language ) {
$language = ‘de-DE’;
}
if ( ‘de_AT’ == $language ) {
$language = ‘de-AT’;
}
return $language;}
add_filter( ‘msls_head_hreflang’, ‘my_msls_head_hreflang’ );Forum: Plugins
In reply to: [Multisite Language Switcher] “Alternate” tags missing on homepageI’m having the exact same issue. Rolling back to 2.3.0 works fine for me
Forum: Plugins
In reply to: [Multisite Language Switcher] Not compatible with wordpress 5.4?That fixed the icon issue, the alternate tags are still missing in the source code
Forum: Plugins
In reply to: [Multisite Language Switcher] Not compatible with wordpress 5.4?Yep it did
Ok thanks for the reply ?? the client thought it was a nobrainer
Solved like this:
<?php if($alm_loop_count == (($alm_loop_count-1) % 3 == 0)) {echo '<div class="row">';} ?> <div class="entry-content col-xs-6 col-lg-4 alm-repeater-template page-<?php echo $alm_page; ?>"> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail(); ?> </a> <?php endif; ?> <div class="entry-titles"> <?php the_title( sprintf( '<a href="%s" rel="bookmark" class="entry-title">', esc_url( get_permalink() ) ), '</a>' ); ?> </div> </div> <?php if($alm_loop_count % 3 == 0 ) {echo '</div>'; } ?>