[Plugin: Post-Ticker] Great little plugin, worked first time.
-
Just the kind of plugin I like, does exactly what it says on the tin and worked first time. For those looking to make changes to the style of the ticker, I found a quick and dirty inline style works just fine. For my site I needed to change the title of the post in the ticker to white. I edited the plugin through wordpress and just added..
style=”color: white;
to the ticker_content() function – fourth line from bottom in snippet below.
Great work and thanks,
Steve
https://www.powershotsmag.com
https://www.momofoto.co.ukfunction ticker_content(){
$posts = ticker_get_posts(
get_option(‘ticker_type’),
get_option(‘ticker_category_filter’),
get_option(‘ticker_num_posts’),
get_option(‘ticker_user_specified_posts’)
);
foreach ($posts as $post_id => $post){
$title=$posts[$post_id][‘post_title’];
$excerpt=$posts[$post_id][‘post_excerpt’];
$link=$posts[$post_id][‘url’];
echo ‘<span style=”color: white;”><b>’.$title.’: </b></span>’;
echo ‘<span>‘.$excerpt.’… </span>’;
}
}
- The topic ‘[Plugin: Post-Ticker] Great little plugin, worked first time.’ is closed to new replies.