Yes, you can add a “mode” attribute to your shortcode to override the mode that is setup for the ticker. Examples:
[ditty_news_ticker id="794" mode="scroll"]
or
[ditty_news_ticker id="794" mode="list"]
There isn’t any way to add an image to every list item right now. You could use the “mtphr_dnt_tick” filter (add to your functions.php file or a custom functions plugin) to add an image to every item, but currently there isn’t a way to tell if your ticker is using list mode or not. I guess you could add the image to every tick and then use css to hide the image wherever you don’t want it.
function add_image_to_ticks( $contents) {
return '<img src="src-to-image" />'.$contents;
}
add_filter( 'mtphr_dnt_tick', 'add_image_to_ticks' );
Thread Starter
krkjee
(@krkjee)
Awesome – Thank you!
Is it possible to force linebreaks in only one of the two modes?
Yes, just add the following attribute:
line_breaks=”0″ (do not force line breaks)
or
line_breaks=”1″ (force line breaks)
Thread Starter
krkjee
(@krkjee)
Sorry for my late response. This is brilliant, thanks!