Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Can't figure out how to change names of sections in builder

Open gigit95 opened this issue 9 years ago • 5 comments

It's not an issue but does Unyson team plan to develop a possibility to add a custom text in the section name in "builder"? I mean "change name" option. unyson

gigit95 avatar Jun 02 '17 19:06 gigit95

add in options

		'section_title' => array(
			'type' => 'text',
			'label' => __('Sorting title', 'fw'),
			'value' => '',
			'desc' => __('Desc', 'fw')
		),

add in config.php

$cfg = array(
	'page_builder' => array(
		'tab'         => __('Layout Elements', 'fw'),
		'title'       => __('Section', 'fw'),
		'title_template' => '{{-title}}{{ if (o.section_title) { }} : <strong>{{= o.section_title}}</strong>{{ } }}',
		'description' => __('Add a Section', 'fw'),
		'popup_size'  => 'large',
		'type'        => 'section' // WARNING: Do not edit this
	)
);

danyj avatar Jun 02 '17 22:06 danyj

see also https://github.com/ThemeFuse/Unyson/issues/759

danyj avatar Jun 02 '17 22:06 danyj

THANK YOU SIR! Just a big "THANK YOU"! And a little question: is there any forum or some FB group where I could ask for help? I think, here, on github, it's more for issues and I don't want to be annoying. Or it's OK to ask for help here?

gigit95 avatar Jun 02 '17 22:06 gigit95

just ask away. this is the best place for it.

danyj avatar Jun 03 '17 00:06 danyj

Sorry, newbie question :-( Can someone point me to the correct file locations, please? If I have a theme child the config is within the child-themes framework-customizations, correct? But where is the config file? :-O Thx.

Toggenburger avatar Aug 10 '17 21:08 Toggenburger