itzelm
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Language Switcher] language dropdown in header not workingYea, thanks. It works. You are awesome!
Of course I will donate to your plug in. 🙂
Forum: Plugins
In reply to: [Multisite Language Switcher] language dropdown in header not workingNo success. Let’s review. I added this to the functions.php
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
function my_msls_output_get( $url, $link, $current ) { return sprintf( '<option value="%s"%s>%s</option>', $url, ( $current ? ' selected="selected"' : '' ), $link ); } add_filter( 'msls_output_get', 'my_msls_output_get', 10, 3 );in the header page I added this
<select id="msls_languages"> <?php if (function_exists ('the_msls')) the_msls (); ?> </select>Immediately followed by this
<script> $(function(){ // bind change event to select $('#msls_languages').bind('change', function () { var url = $(this).val(); // get selected value if (url) { // require a URL window.location = url; // redirect } return false; }); }); </script>Still not working.
Forum: Plugins
In reply to: [Multisite Language Switcher] language dropdown in header not workingThanks for your response.
I closed the select tag. I also added the Javascript immediately after the </select>. It still does not work.
I find interesting that a few weeks ago, I followed the same instructions and was able to make it work (without the dropdown option). But then I needed to reinstall the template and the header and functions page were replaced. So, I had to add the code again. This time it does not work.
Forum: Plugins
In reply to: [Multisite Language Switcher] language dropdown in header not workingThanks here is the page http://www.e-contentinternational.com