wordpress添加留言板_java

wordpress添加页面

Do you want to divide your posts into tabs to save space and make it easier for users to find what they’re looking for? In this article, we will show you how to add tabbed content in WordPress posts and pages.

您是否想将帖子划分为多个选项卡以节省空间并使用户更轻松地查找所需内容? 在本文中,我们将向您展示如何在WordPress帖子和页面中添加选项卡式内容。

wordpress添加留言板_java_02

(Video Tutorial)

演示地址

If you don’t like the video or need more instructions, then continue reading.

如果您不喜欢该视频或需要更多说明,请继续阅读。

First thing you need to do is install and activate the Tabs Shortcode and Widget plugin. This plugin works out of the box, and there are no settings for you to configure.

您需要做的第一件事是安装并激活Tabs Shortcode和Widget插件。 该插件可以直接使用,没有可供您配置的设置。

Simply create a new post, and on the post edit screen, you will notice a new shortcode button. Clicking on the button will reveal a menu.

只需创建一个新帖子,然后在帖子编辑屏幕上,您就会注意到一个新的简码按钮。 单击按钮将显示一个菜单。

wordpress添加留言板_java_03

Click on the tabs layout option in the menu, and it will launch the plugin’s tab editor interface.

单击菜单中的选项卡布局选项,它将启动插件的选项卡编辑器界面。

wordpress添加留言板_java_04

The first option on the tab editor is to choose the number of tabs you want to display. Next, you can choose the layout type. The plugin supports, horizontal and vertical tabs. After that you need to provide each of your tabs a title, choose an icon if you like, and then add the tab content.

选项卡编辑器上的第一个选项是选择要显示的选项卡数量。 接下来,您可以选择布局类型。 该插件支持水平和垂直选项卡。 之后,您需要为每个选项卡提供标题,如果需要,请选择一个图标,然后添加选项卡内容。

Repeat the process for all your tabs. The last option on the popup is to add a custom CSS class. If you would like to change the appearance of the tabs, then you should enter a CSS class here.

对所有选项卡重复该过程。 弹出窗口上的最后一个选项是添加一个自定义CSS类。 如果要更改选项卡的外观,则应在此处输入CSS类。

During the whole process, you will be able to see a live preview of your tabs on the right side. Once you are done, click on the insert button to add the tabs in your WordPress post.

在整个过程中,您将能够在右侧看到选项卡的实时预览。 完成后,单击“插入”按钮以在WordPress帖子中添加选项卡。

Save and preview your post and you will see your tabs in action.

保存并预览您的信息,您将看到您使用的标签。

(Adding a Tabbed Widget in WordPress)

The plugin also provides a widget to add tabbed content into your WordPress sidebars. Simply visit Appearance » Widgets and add OTW Shortcode Widget to a sidebar.

该插件还提供了一个小部件 ,可将选项卡式内容添加到WordPress边栏中。 只需访问外观»小部件,然后将OTW短代码小部件添加到侧边栏。

wordpress添加留言板_python_05

In the widget settings area, click on the add button to add tab layout. This will bring up the same tab editor we showed you earlier. Simply create your tabs using the user interface and add it to the widget. Lastly, click on the save button to store your widget settings.

在窗口小部件设置区域中,单击添加按钮以添加选项卡布局。 这将调出我们之前显示的选项卡编辑器。 只需使用用户界面创建选项卡,然后将其添加到小部件即可。 最后,单击“保存”按钮以存储您的小部件设置。

You can now preview your website to see the tabbed content widget in action.

现在,您可以预览您的网站,以查看带标签的内容小部件的运行情况。

More adventurous users can also check out this tutorial on how to add a jQuery tabber widget in WordPress.

更多喜欢冒险的用户还可以查看本教程,了解如何在WordPress中添加jQuery tabber小部件 。

We hope this article helped you learn how to add tabbed content in WordPress posts and pages. You may also want to take a look at our list of 8 best jQuery tutorials for WordPress beginners.

我们希望本文能帮助您学习如何在WordPress帖子和页面中添加选项卡式内容。 您可能还想看看我们为WordPress初学者提供的8种最佳jQuery教程列表。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Google+上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-add-tabbed-content-in-wordpress-posts-and-pages/

wordpress添加页面