Wowchemy-hugo-modules: widgets: Add support for all widget background options in Slider widget

Created on 7 Nov 2019  路  4Comments  路  Source: wowchemy/wowchemy-hugo-modules

Hi;

I hope it's a feature request and not a bug report
I try to apply design.background but at the item level
and the code won't let me add more than one [design.background]

this is work

widget = "slider" weight = 11 [[item]] title = "Left" content = "I am left aligned :smile:" [design.background] gradient_start = "#0000F9" gradient_end = "#86007D"

this don't work

widget = "slider" weight = 11 [[item]] title = "Left" content = "I am left aligned :smile:" [design.background] gradient_start = "#0000F9" gradient_end = "#86007D" [[item]] title = "Right" content = "I am right aligned :smile:" [design.background] gradient_start = "#86007D" gradient_end = "#0000F9"

enhancement good first issue help wanted

All 4 comments

Firstly, TOML does not work like that. [design.background] will be interpreted by TOML parser as the widget's design, not an item's design - TOML parser looks at the path of the param and not any nesting of this kind.

Secondly, [design.background] is unsupported by the Slider widget. The Slider widget has its own settings per slide as documented here: https://sourcethemes.com/academic/docs/page-builder/#slider

Hence, you appear to be requesting a new feature for colour gradients to be supported by the Slider widget.

@gcushen
If other show interest, yes it would be a nice addon

however I'm happy with this workaround

````
+++
widget = "slider"
weight = 11

interval = 4200
height = "25vh"

[design.background]
gradient_start = "#0000F9"
gradient_end = "#86007D"
text_color_light = true

[[item]]
title = "Center"
content = "I am center aligned :smile:"
cta_label = "Get Academic"
cta_url = "https://sourcethemes.com/academic/"
cta_icon_pack = "fas"
cta_icon = "graduation-cap"

[[item]]
title = "Left"
content = "I am left aligned :smile:"

[[item]]
title = "Right"
content = "I am right aligned :smile:"
+++
````

@gcushen
If other show interest, yes it would be a nice addon

I'm showing interest as well. It'd be nice to have that feature just like in the Hero widget. Also, it'd be great if we could have a parallax effect also in the Slider widget the same as we have it in the Hero widget.

Thanks for such an awesome theme.

Closing due to little demand and the discussion going stale with no contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

petzi53 picture petzi53  路  4Comments

halfrost picture halfrost  路  3Comments

Framartin picture Framartin  路  4Comments

gcushen picture gcushen  路  3Comments

ivlis picture ivlis  路  4Comments