WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
[resolved] Customizing Widget (3 posts)

  1. Angela
    Member
    Posted 2 years ago #

    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) {
    		extract($args);
    
    		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?

    Regards,
    Angela

    http://wordpress.org/extend/plugins/qtranslate/

  2. Angela
    Member
    Posted 2 years ago #

    Anyone? I really need this done.

    Regards,
    Angela

  3. Angela
    Member
    Posted 2 years ago #

    I really need to style this widget, it looks way too wide on my page. Anyone?

    Regards,
    Angela

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags