PLEASE: Add block title to backend widget title

Posted in: Newsmag
Post count: 44

This issue requires immediate attention as it is very difficult to determine which widget block is for which purpose. I have to open each one and look for the block I want to edit or I have to open the page where that particular sidebar is and match the order with the backend order to get to the one I want to edit.

Please don’t say this is a request and you have many pending as this is not efficient and a bad UI

Post count: 6600

Hi,

That widget title is generated by WordPress and it’s difficult from technical point of view to change the title when updated and add it there. Sorry for the inconvenience, we will see what we can do!

Thanks for the message!

Post count: 44

Actually if you have a title field in your widget, it automatically appends its value to the widget block title. So to test this I changed the parameter name from ‘custom_title’ to ‘title’ in get_map_block_array() (td_config.php) and the titles showed in the backend.

The JS used in wp-admin – widjets.js

var title = $('input[id*="-title"]', widget).val() || '';
		if ( title ) {
			title = ': ' + title.replace(/<[^<>]+>/g, '').replace(/</g, '<').replace(/>/g, '>');
		}
		$(widget).children('.widget-top').children('.widget-title').children()
				.children('.in-widget-title').html(title);
Post count: 6600

Glad you’ve managed to find a solution eventually!
Thanks for your feedback and for sharing this!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.