Linux 软件免费装
Banner图

Neuedaten News Ticker

开发者 bastianschwabe
更新时间 2026年8月31日 01:13
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

notification bar banner ticker announcement marquee

下载

1.0.0

详情介绍:

News Ticker adds a slim announcement bar to your site — for a sale, a deadline, a service notice or any other message that should not wait for the next blog post. Each announcement is a separate item with its own headline, teaser and button, so you can prepare several of them and switch them on and off one by one. If more than one item is live, the bar rotates between them. If a message is too long for the available width, the text scrolls while the button stays put on the right. Features Styling The bar ships with a yellow background and black text and exposes every colour as a CSS custom property, so a theme can restyle it without fighting specificity: .neuedaten-news-ticker { --neuedaten-news-ticker-bg: #ffdd00; --neuedaten-news-ticker-fg: #000; --neuedaten-news-ticker-button-bg: #000; --neuedaten-news-ticker-button-fg: #ffdd00; } Placing the bar from your theme Set "Position in the DOM" to Placed by the theme and print it wherever you like — this renders server side, so there is no layout shift: <?php if ( function_exists( 'neuedaten_news_ticker_has_items' ) && neuedaten_news_ticker_has_items() ) { neuedaten_news_ticker_render(); } ?> neuedaten_news_ticker_get_html() returns the markup instead of printing it, and the [news_ticker] shortcode works in content. For developers

安装:

  1. Upload the plugin folder to /wp-content/plugins/ or install it through the Plugins screen.
  2. Activate the plugin.
  3. Go to Info Ticker and add your first item: headline, teaser, button label and link.
  4. Publish the item.
  5. Adjust Info Ticker → Settings if you want a different position, scope or dismiss behaviour.

屏幕截图:

  • Editing a ticker item, including the optional schedule.
  • The settings screen.

升级注意事项:

1.0.0 Initial release.

常见问题:

How do I deactivate a single announcement?

Set the item to draft. Only published items inside their schedule are shown.

What happens if several items are live at the same time?

The bar rotates between them. You can set the interval under Info Ticker → Settings; rotation pauses while a visitor hovers over the bar or focuses an element inside it.

The text does not scroll. Is something broken?

The text only scrolls when it does not fit into the available width. Make the browser window narrower, or use a longer teaser, to see it.

How do I place the bar inside my own header?

Two ways. Without touching your theme, choose "Inside a target element" under Info Ticker → Settings and enter a CSS class or ID, for example .page-header. The bar is inserted as the first child of the first matching element; this needs the plugin JavaScript, and the fixed position option is ignored. If you can edit your theme, choose "Placed by the theme" instead and call neuedaten_news_ticker_render() in your template. That renders server side, so the bar is there from the first paint and reserves its space without a layout shift.

Does it work without JavaScript?

Yes, with reduced functionality. The first live item is shown, the text is truncated instead of scrolling, and the dismiss button is hidden.

Can I change the colours?

Yes, through the CSS custom properties listed in the description, or by switching the plugin stylesheet off and writing your own.

更新日志:

1.0.0