• Resolved yonghoonlee

    (@yonghoonlee)


    Previously I used shortcode override such as list_tick_paging=”0″.
    However, for new Ditty, the shortcode override never works.

    Do you have any other method to override, other than using shortcode options?
    If not, do you plan to implement those override that were existed in the OLD Ditty News Ticker legacy format?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    Yes, there is a way to override Display settings with the new Ditty. You will need to have Ditty 3.0.10 or greater to have this functionality.

    It’s a little different than with the ditty_news_ticker shortcode, though.

    Within your shortcode add a “display_settings” attribute. Then use a query string to set any custom settings for the display. Keep in mind the names of the various settings are different than ditty_news_ticker attributes. Here is an example of disabling the paging for a List Display (update the id attribute for your Ditty):

    [ditty id=12876 display_settings="paging=0"]

    If you want to change multiple settings use the following formatting (add & between settings):

    [ditty id=12876 display_settings="paging=0&spacing=100&itemBgColor=#CCCCCC"]

    Some settings are actually arrays, in which case you need to add pipes and semi-colons to format them correctly:

    [ditty id=12876 display_settings="paging=0&spacing=100&itemBgColor=#CCCCCC&itemPadding=paddingTop:50px|paddingBottom:50px|paddingLeft:50px|paddingRight:50px"]

    I don’t have all the variable names for the settings listed out yet, as I’m still working through the documentation. But, if you are familiar with looking at source code through your browsers developer tools, you can find the input names of the various fields when editing your Ditty Display. The input names are the same names you’d use for the overrides.

    Hopefully this helps you get started. Let me know if you have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Override does not work in new Ditty’ is closed to new replies.