Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] wp-shortcodes not enquing option types css/js #2544

Open
danyj opened this issue Apr 23, 2017 · 2 comments
Open

[bug] wp-shortcodes not enquing option types css/js #2544

danyj opened this issue Apr 23, 2017 · 2 comments

Comments

@danyj
Copy link
Contributor

danyj commented Apr 23, 2017

@andreiglingeanu

If option type is not used anywhere in page/post settings

the option type _enqueue_static does not run,

in taxonomy/category .php

https://github.com/ThemeFuse/Scratch-Theme/blob/master/scratch-parent/framework-customizations/theme/options/taxonomies/category.php

add ONLY editor with shortcodes set to true

			'test' => array(
				'type' => 'wp-editor',
				'size' => 'large',
				'editor_height' => 100,
				'editor_type' => 'tinymce',
				'wpautop' => true,
				'shortcodes' => true,
				'value' => 'This is dummy heading text',
				'label' => __('Heading', 'fw'),
				'desc' => esc_html__('Add heading text', 'fw')
			),

in editor insert any shortcode that has your custom option type, or addable popup ( or other special option type ) and once added open that shortcode.

Shortcode options CSS/JS will not load , unless you use the option type somewhere in category.php

even some of Unyson default options like addable popup do not load their scripts

screenshot_14

@andreiglingeanu
Copy link
Collaborator

Yeah, we encountered that too. That's a known bug and there's not a proper fix for that yet. We can only add sub-optimal hack for that.

I'll think about it.

cc. @GheorgheP

@danyj
Copy link
Contributor Author

danyj commented Oct 25, 2017

@ViorelEremia waiting for fix please respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants