codeexplorer1
Forum Replies Created
-
Forum: Plugins
In reply to: [Wayra - Click to Order or Chat] Reduce margin on button next to add to cartI have done. By modifying class name of button with non variation parameter.
You are welcome. From button functionality I mean that on click of button language can be changed. At present this functionality can be achieved by selecting opposite language only. For displaying buttons for two different languages side by side one need to modify the code.
Thanks.
Forum: Plugins
In reply to: [WPGlobus] Shortcode to place language switcher anywhereThanks.
Forum: Plugins
In reply to: [WPGlobus] Shortcode to place language switcher anywhere<div class=”wpglobus-selector-box”> <?php
/**
* Filter that prevent using language that hasdraftstatus.
* That works with modulePublishfrom WPGlobus Plus add-on.
*/
$enabled_languages = apply_filters( ‘wpglobus_extra_languages’, WPGlobus::Config()->enabled_languages, WPGlobus::Config()->language );foreach ( $enabled_languages as $language ):
$url = null;
$is_current = true;if ( $language != WPGlobus::Config()->language ) {
$url = WPGlobus_Utils::localize_current_url( $language );
$is_current = false;
}$flag = ‘
flags_url . WPGlobus::Config()->flag[ $language ].'” />’;
$link = $flag . ‘ ‘ . WPGlobus::Config()->en_language_name[$language] . ‘ ‘;printf( ‘%s‘, ( empty( $url ) ? ” : ‘href=”‘ . esc_url( $url ) . ‘”‘ ), ( $is_current ? ‘class=”wpglobus-current-language”‘ : ” ), $link );
endforeach; ?>
</div>
Forum: Plugins
In reply to: [WPGlobus] Shortcode to place language switcher anywhereThanks for the guidance. It worked. The remaining aspect is that instead of Language Code that I have configured in plugin. I am getting complete name of the language. Can you please suggest, how to overcome that?
Forum: Plugins
In reply to: [Simple Side Tab] More than two tabs horizontallyThank you.