Thanks Josh! Your videos are always clear and easy to understand. Can you elaborate on WHY someone would use params rather than just putting different verbiage in the shortcode, or targeting the colors with CSS? I'd be interested to hear a real-world use case.
There are many reasons but it comes down to what your end goals are. Parameters help you construct design systems for Elements compared to one-off implementations. Part of the reason we surfaced Parameters for customers in Cornerstone is it was much of the tooling we used internally to create custom Elements.
Element Parameters are a completely different approach to Element construction, and more importantly, management. We give an example from the docs specifically about a Button. Here it is for reference, but do take some time to read the entire docs on Parameters: theme.co/docs/parameters. "Let's take the humble Button. It is likely that if you have made this into a Component, you will want to update some content within it on a case-by-case basis. The two most common pieces of content you may wish to update within the button are its text label and href value. With Parameters, we could easily create custom controls on our button component and wire them up where necessary to expose these data-points and make them editable per instance."
Powerful!
You guys are THEE first devs to bring true dynamic components to WP.
Yep!
Thank you Josh, your tutorials are always great!
Glad you are enjoying them!
Amazing work as always Josh and the parameters are sooooo powerful it's unreal.
Many thanks!
Thanks Josh! Your videos are always clear and easy to understand. Can you elaborate on WHY someone would use params rather than just putting different verbiage in the shortcode, or targeting the colors with CSS? I'd be interested to hear a real-world use case.
There are many reasons but it comes down to what your end goals are. Parameters help you construct design systems for Elements compared to one-off implementations. Part of the reason we surfaced Parameters for customers in Cornerstone is it was much of the tooling we used internally to create custom Elements.
Very good content :)
Many thanks!
That´s cool! But what is stopping me from doing exactly the same with a simple button element, which has more control?
Element Parameters are a completely different approach to Element construction, and more importantly, management. We give an example from the docs specifically about a Button. Here it is for reference, but do take some time to read the entire docs on Parameters: theme.co/docs/parameters. "Let's take the humble Button. It is likely that if you have made this into a Component, you will want to update some content within it on a case-by-case basis. The two most common pieces of content you may wish to update within the button are its text label and href value. With Parameters, we could easily create custom controls on our button component and wire them up where necessary to expose these data-points and make them editable per instance."