vik3d
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Hacks
In reply to: Set default/active tab by dayThanks bcworkz,
Yes a javascript activates the tab is clicked on.<script type="text/javascript">jQuery("#tabwrap1 a").click(function (e) { e.preventDefault(); jQuery(this).tab("show"); }); if(jQuery(".nav-tabs").length > 0){ var url = jQuery(location).attr("href"); var idx = url.indexOf("#"); var hash = idx != -1 ? url.substring(idx+1) : ""; if(hash != ""){ jQuery(".tab-content #"+hash).siblings(".tabs-container").removeClass("in active"); jQuery(".nav-tabs a[href=\"#"+hash+"\"]").parent().siblings("li").removeClass("active"); jQuery(".tab-content #"+hash).addClass("in active"); jQuery(".nav-tabs a[href=\"#"+hash+"\"]").parent().addClass("active"); } } </script>Forum: Plugins
In reply to: [Plugin: qTranslate] Translate menu descriptionI found this cube3x and it worked!
I added these lines to the theme’s functions.php
remove_filter('nav_menu_description', 'strip_tags'); add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' ); function cus_wp_setup_nav_menu_item($menu_item) { $menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content ); return $menu_item; }After that all html codes stay in the menu description textboxes and it made the translation work as I wanted.
Viewing 2 replies - 1 through 2 (of 2 total)