Support » Plugin: qTranslate » [Plugin: qTranslate] Customizing Widget

  • Resolved Angela


    I would like to remove the title (the ‘Language ‘ portion) when adding qTranslate as a widget. I found this line in qtranslate/qtranslate_widget.php:

    function widget($args, $instance) {
    		echo $before_widget;
    		$title = empty($instance['title']) ? __('Language', 'qtranslate') : apply_filters('widget_title', $instance['title']);
    		$hide_title = empty($instance['hide-title']) ? false : 'on';
    		$type = $instance['type'];
    		if($type!='text'&&$type!='image'&&$type!='both'&&$type!='dropdown') $type='text';
    		if($hide_title!='on') { echo $before_title . $title . $after_title; };
    		qtrans_generateLanguageSelectCode($type, $this->id);
    		echo $after_widget;

    I noticed there is also seems to be a hide title option, but its option is nowhere found in the interface configuration. If anyone knows, please reply.

    Also, I need to style this, I tried, using the qtrans_language_chooser class (for the list), but it doesn’t seem to work well. I would like to add some divs around that to style it. Exactly which line of code do I need?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: qTranslate] Customizing Widget’ is closed to new replies.