Linux 软件免费装
Banner图

Simple Banner - An easy to use Banner/Bar/Notification/Announcement for the top or bottom of your website

开发者 rpetersen29
更新时间 2024年5月8日 11:48
捐献地址: 去捐款
PHP版本: 3.0.1 及以上
WordPress版本: 6.5.3
版权: GPLv2 or later
版权网址: 版权信息

标签

top free banner notice notification simple bar announcement bulletin cta

下载

2.17.0 2.15.2 1.1.0 1.2.0 1.2.1 1.4.0 1.4.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.2 2.1.3 2.10.0 2.2.0 2.2.1 2.2.2 2.4.0 2.4.6 2.4.7 2.5.0 2.6.0 2.7.0 2.8.0 2.9.1 2.9.2 2.9.3 2.9.4 2.4.3 2.13.2 2.15.1 2.2.3 2.4.1 2.9.0 2.10.2 1.3.0 2.10.5 2.4.2 2.4.4 2.4.5 2.10.6 2.10.7 2.10.8 2.10.4 2.12.0 2.12.1 1.0.3 2.1.0 2.16.0 2.13.0 2.13.1 2.15.4 1.0.5 2.12.3 2.14.0 1.0.4 2.1.1 2.13.3 2.14.1 2.3.0 2.14.2 1.0.2 2.15.0 2.10.3 2.11.0 2.15.3 1.0.1 2.10.1 2.10.9 2.12.2 2.17.1

详情介绍:

This plugin makes it easy to display a simple announcement banner or bar at the top of your website. You can easily customize the color of the links, text, and background of the bar from within the settings. You can also customize to your heart's desire by adding your own custom CSS. There's also a fancy preview section within the settings so you can see your changes before you save them.

安装:

From your WordPress dashboard
  1. Visit 'Plugins > Add New'
  2. Search for 'Simple Banner'
  3. Activate 'Simple Banner' from your Plugins page.
  4. Visit 'Simple Banner' in the sidebar to create a new banner.
From WordPress.org
  1. Download 'Simple Banner'.
  2. Upload the 'simple-banner' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)
  3. Activate 'Simple Banner' from your Plugins page.
  4. Visit 'Simple Banner' in the sidebar to create a new banner.

屏幕截图:

  • This is the second screen shot.
  • This is the third screen shot.
  • This is the settings page... and the fourth screen shot.

升级注意事项:

2.17.1
  • Fix relative paths in preview banner, tested to WP 6.5
2.17.0
  • New disabled page paths feature
2.16.0
  • New prepend element feature
2.15.4
  • Bug fixes
2.15.3
  • New start after date feature
2.15.2
  • z-index now configurable
2.15.1
  • Aria label on close button, addEventListener instead of onscroll
2.15.0
  • New insert inside element feature
2.14.2
  • More bug fixes
2.14.1
  • Bug fix
2.14.0
  • Wordpress 6.2 support, close button expiration supports fractional days, new remove after date feature
2.13.3
  • Even more bug fixes
2.13.2
  • More bug fixes
2.13.1
  • Bug fixes
2.13.0
  • New pro version payment system
2.12.3
  • Support for WPML/Polylang
2.12.2
  • Support for WP 6.1
2.12.1
  • Bug fix
2.12.0
  • Security improvements
2.11.0
  • New feature: ability to change expiration date by specific time
2.10.9
  • Bug fix in preview banner.
2.10.8
  • Fix security bug in admin panel.
2.10.7
  • Bug fix for XSS.
2.10.6
  • Bug fix for console error.
2.10.5
  • Bug fixes & improvements.
2.10.4
  • More changes to stop scammers.
2.10.3
  • Change to stop scam security sites from emailing me.
2.10.2
  • Bug fixes for sites with no administrator role.
2.10.1
  • Bug fixes. Remove some unnecessary script params.
2.10.0
  • Bug fixes for disabled pages checkboxes, added experimental feature to disable banner on posts.
2.9.4
  • Bug fixes for disabled pages array.
2.9.3
  • Bug fixes for disabled pages.
2.9.2
  • Bug fixes and added close button color setting.
2.9.1
  • Bug fixes and additional variables added to debug mode.
2.9.0
  • Added close button and settings.
  • Add .simple-banner-button class to allow custom close button styles.
  • Preview banner now scrolls with you down the page.
  • Updated documentation regarding cookies.
  • Other bug fixes.
2.8.0
  • Add .simple-banner-text class to allow custom text styles. Removed text from page source code when disabled.
2.7.0
  • Add .simple-banner-scrolling class to allow custom scrolling styles.
2.6.0
  • Add option to use Wordpress action wp_open_body for banner insertion.
2.5.0
  • Added Font Size option, changed layout for better preview banner visibility.
2.4.7
  • Fix bug to permissions removal.
2.4.6
  • Banner now shows in sidebar upon activation.
2.4.5
  • Fix permissions clearout method.
2.4.4
  • Fix php error.
2.4.3
  • Fix bug for that hid banner on pages with no id, fix some permissions issues.
2.4.2
  • Disable header margin/padding when banner is hidden or disabled, fixed homepage disabling bug, added option to keep/remove custom css/js when disabled or hidden.
2.4.1
  • PHP warning fix.
2.4.0
  • Added some new fields (hiding, position, and header top margin/padding) to help with banner customization.
2.3.0
  • Added permissions adding and updated documentation.
2.2.3
  • CSS Changes.
2.2.2 Added version number to css and js file to force update on version change. 2.2.1 Removed addslashes version of text now that message is handled via js. 2.2.0 Optimized scripts for loading banner, added debug mode for troubleshooting. 2.1.2 Changed pro version payment link again. 2.1.2 Changed pro version payment link. 2.1.1 Added jQuery back for compatibility issues. 2.1.0 Removed jQuery dependency from project. 2.0.7 Bug fixes for settings page. 2.0.6 Bug fixes for script. 2.0.5 Repo fixes. 2.0.4 Bug fixes for scripts. 2.0.4 Bug fixes for banner text. 2.0.3 Update Donate button color. 2.0.2 Bug fixes for pro version. 2.0.1 Bug fixes with script load. 2.0.0 Added Pro version features. 1.4.1 Fix preview banner bugs, Simple Banner can accept all formats. 1.4.0 Add Donate button and change some form CSS. 1.3.0 Replace double quotes with single quotes in Simple Banner Text. 1.2.1 Bug fix with links. 1.2.0 You can now preview text in the preview banner up top. 1.1.0 Added ".simple-banner { }" around Simple Banner Custom CSS to show that custom CSS is scoped to the banner and hopefully eliminate some support issues about custom CSS. No functionality changes. 1.0.5 No code changes. 1.0.4 Now showing on mobile for most popular themes. 1.0.3 Additional fixes for more themes, specifically "Twenty *" themes by Wordpress. 1.0.2 If your banner didn't work before, it probably does now. 1.0.1 Just updated some stuff for the readme. No functionality change. 1.0.0 This is the first version.

常见问题:

What does the banner look like in my DOM?

This is how the banner will look in your HTML: <code> <div id="simple-banner" class="simple-banner"> <div class="simple-banner-text"> <span> YOUR SIMPLE BANNER TEXT HERE </span> </div> </div> </code>

The banner or changes to the banner aren't showing up, or are only showing up when I'm logged in, what's wrong?

Your browser frequently caches scripts associated with a website in order to improve speed and performance. There are also some wordpress plugins that cache scripts to improve performance. If you aren't seeing your banner or the changes you made to the banner, first clear your browser cache and if that doesn't work, look for any plugin that bundles or caches scripts and clear that as well.

Why is my banner covering my header or behind my header?

Your theme probably uses absolute positioning for its header in this case. Try changing the positioning of your banner and see if that helps. This changes the position CSS attribute of the banner. More information can be found here. If none of this works, you may need a custom solution for your banner. You can either try to find another plugin that suits your needs or you can purchase the pro version and open a support ticket to fix your situation.

My homepage isn't disabled even though I set it as disabled.

Some themes use a page id of 1 for the homepage, other themes set that id dynamically. This has recently been fixed, but if you are still experiencing issues, please open a support ticket. In the meantime you can use the following custom JavaScript to disable on your homepage: document.addEventListener('DOMContentLoaded', function(){ if (window.location.href === "YOUR_WEBSITE_URL_HERE"){ document.getElementById('simple-banner').remove(); } }, false);

Is there a Pro version?

Yes, but you should look through the support topics before you decide if you need the pro version.

Does this plugin use cookies?

Yes, they are used only if you enable the close button. These cookies fall under the category of "strictly necessary cookies" and do not need consent from the user, more information here. If cookies are disabled on the user's browser, the banners close button expiration setting will not work and the banner will show on each refresh.

How do I re-enable my banner after I hit the close button

You can clear your browser's cookies or in the browser's console you can execute: document.cookie = "simplebannerclosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; You can also set your Close button expiration to blank, 0, or a date in the past. This method may require a refresh or two of the browser on your website page.

How do I disable the banner in my posts?

This feature is being actively developed, in the meantime you can use this custom JavaScript: document.addEventListener('DOMContentLoaded', function(){ if (window.location.pathname.includes("post")){ document.getElementById('simple-banner').remove(); } }, false);

I have the Divi theme and the banner isn't showing.

Try setting the "Prepend element" setting to header. If that doesn't work, set your banner position to relative and try this in 'Website Custom CSS': #main-header:not(.et-fixed-header) { position: relative; } #top-header:not(.et-fixed-header) { position: relative; }

更新日志:

2.17.1 2.17.0 2.16.0 2.15.4 2.15.3 2.15.2 2.15.1 2.15.0 2.14.2 2.14.1 2.14.0 2.13.3 2.13.2 2.13.1 2.13.0 2.12.3 2.12.2 2.12.1 2.12.0 2.11.0 2.10.9 2.10.8 2.10.7 2.10.6 2.10.5 2.10.4 2.10.3 2.10.2 2.10.1 2.10.0 2.9.4 2.9.3 2.9.2 2.9.1 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 2.3.0 2.2.3 2.2.2 2.2.1 2.2.0 2.1.3 2.1.2 2.1.1 2.1.0 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.4.1 1.4.0 1.3.0 1.2.1 1.2.0 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0