View Categories

如何在NotificationX中使用通知栏?

7 min read

通知栏使您可以在网站上显示重要的通知或特别优惠,以立即吸引访问者的注意力。用 NotificationX,您可以轻松地在WordPress网站上设计一个引人入胜的通知栏,以使每个人都参与其中。

How to Configure Notification Bar in NotificationX #

Follow the step-by-step guide below to configure & style the notification bar on your website using NotificationX.

第 1 步:添加新通知 #

Go to your WordPress Dashboard and navigate to wp-admin -> NotificationX -> All NotificationX. Then right at the top, click on ‘Add New’. Or you can also simply go to the ‘Add New’ tab from the sidebar.

通知栏

Step 2: Select ‘Notification Bar’ as Your Notification Type #

完成第1步后,您将被重定向到 '资源' Tab page of your NotificationX. You can also put a title. From the options, select “通知栏” as your notification type. Then click on the '下一个' 按钮。

通知栏

Step 3: Design the Notification Bar #

来自 '设计' 标签,您可以选择一种布局,还可以灵活地使用 “高级设计” option to customize it as per your preference. NotificationX offers three awesome Premade layouts that you can pick from and get started. The chosen layout is how the “通知栏” will be displayed on your website. You can also see a preview of your design at the top.

通知栏

来自 “高级设计” section, you can play around with the Background & Text colors. You can also choose whether you want to use this notification bar in Elementor or the Gutenberg editor. There you can choose which layout you prefer. To know how to edit the bar in Elementor or Gutenberg, check these documentation below.

Then you can choose different background colors and a customized background image option. You can also choose your preferred text color for the bar. 

通知栏

For button and countdown, you can choose background and text colors as well. Based on your preference, you can add color to the close button and customize its size. The option of showing a close button in the preferred area is available.

In the advanced design, you can also change the background color, text color and font size of your ‘Link Button’. As per your preference, you can even decrease or increase the font size. Add custom CSS code if you want more flexibility for your notification bar. 

通知栏

After you are done designing the Notification Bar, click on '下一个' to continue.

Step 4: Add Content for Your Notification Bar #

Next, go to the '内容' tab. There you will find the option to add ‘Static Text’ or ‘Sliding Text’. Add your preferred content and you can see how it will look in the preview. You can also customize the text as you want. 

通知栏

To make your bar content more engaging you can choose ‘Sliding Text’ option. For this option add multiple texts for your notification bar. To add multiple texts, add your text and then click on ‘Add New’ button to add another text. After adding text you can also change the sequence by simply dragging and dropping the texts. Choose the sliding interval timing for the text. 

通知栏

You can also use a ‘Button’ to redirect your visitors to a certain page of your website. You will find an option to add different button text and URL. You can also add ‘Transition Speed’‘Transition Style’ to the button. 

通知栏

Add Coupon Code

You can enable the coupon code option if you want to give discounts via code. You will find the option to add coupon button text. Add the coupon code, so that visitors will click on the button and it will be automatically copied. You can also add ‘Tooltip’ for further instructions on the coupon code. Choose your preferred background, text and border color for the button. 

After that, you can use the checkbox to enable/disable the ‘Countdown’ option. If it’s enabled, then you can add a ‘Countdown Text’ ‘Countdown Time’ of your preference. The ‘Countdown’ feature will give your visitors a sense of urgency to grab the offer currently going around before it’s expired. You also have a checkbox to use a 永久关闭 按钮。因此,如果用户点击关闭按钮,它将不再显示在网站上。您也可以选择启用 ‘Evergreen Countdown Timer’ 如果你想。要了解更多信息, 检查此文档.

After you are done with the configuration, simply click on the ‘Next’ button to continue.

Step 5: Configure Display Option for the Bar #

来自 '显示' tab, you can set the pages where you want to display the Notification Bar. You also have the option to restrict the Notification for only certain user roles. By default, ‘Show On’ 设定为 ‘Show Everywhere’ 结果,通知栏将显示在网站的每个页面中。

You will also get the option to show the bar by setting different conditions in the ‘Bar Reappearance’ option. There you will find three available options from the dropdown: 

  • Don’t show the bar again for the user: Where a specific user will only see the notification bar once. 
  • Show the bar again when the users visit the website next time: Visitors will see the bar when they visit the website next time.
  • Show the bar when the user refreshes to another page: When the visitor refreshes another page, the bar will appear.
通知栏

Step 6: Customize Notification Appearances #

Under the ‘Customize’ tab, you will find five separate sections: Appearance, Animation, Targeting,  Timing & Behavior. From the ‘Appearance’ section, you can set the position where you want to display the Notification Bar and use the checkbox to disable/enable ‘Sticky Bar’, ‘Close Button’ & ‘Hide on Mobile’ options.

You can set the position of the Notification Bar to either the top or the bottom of your website. If the Sticky Bar is chosen, then the ‘Notification Bar’ will be in a fixed position. As a result, no matter where you try to navigate on your page, it will always show up.

You can choose the display overlapping option to show the notification bar overlapping the content. In this section, you can also choose a scheduling option and select daily, weekly or custom scheduling options to select how many times you want to show the notification.

通知栏

Next, from the animation section, add how you want to show your notification bar more attractively. You can also choose the option to hide the notification with animation. 

通知栏

Your discount offer might not be for every user. For this, you can choose the targeting option and specify your target customer. From the target location, you can select which country you want this notification bar for. You can also choose a specific role for whom you want to show this notification bar.

通知栏

在里面 ‘Timing’, you can set an ‘Initial Delay’ time after which your ‘Notification Bar’ will be popped up. By default, it is set to 5 seconds. You can also hide the ‘Notification Bar’ after a certain amount of time by checking the box ‘Auto Hide’ and setting a time in the ‘Hide After’ field.

You can use the checkbox to decide whether to open your set link to open in a new window or a new tab as well. If you have previously set a URL in your Button, when your visitors click on it, the new page will be displayed in either a new window or a new tab, depending on your settings.

Step 7: Publish the Notification Bar #

完成第6步后,请点击 '发布' 按钮。结果, “通知栏” 将成功创建。

通知栏

By following these steps and a bit more modifying & styling, your final outcome would look something like this.

最终结果 #

通知栏

这是您可以轻松设计和展示吸引人的方式 通知栏 on your WordPress website using NotificationX. If you face any issues, you can contact our 专门的支持团队.

供电 BetterDocs

  • 00
  • 00小时
  • 00Mins
  • 00Secs

Wait! Already Leaving?

Our Exclusive Birthday Gift