[wordpress插件] Bootstrap Glyphicons in Visual Editor在Visual Editor中引导Glyphicons

wordpress 插件 文章 2020-03-09 12:00 419 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Adds the Glyphicons included with Twitter Bootstrap 3 to the WordPress visual editor.

将Twitter Bootstrap 3附带的Glyphicons添加到WordPress可视编辑器中。

All credit goes to those 2 places for their awesome work!

所有的功劳归功于这2个地方!

I just loved the Glyphicons with Bootstrap so much and wanted a way to insert them into posts if I felt like it.

我只是非常喜欢带有Bootstrap的Glyphicons,并希望有一种方法可以将它们插入帖子中(如果我喜欢的话)。

I figured others might want the same functionaily.

我认为其他人可能也想要相同的功能。

'>

Instructions for use:

使用说明:

Method A (Visual Editor – Preferred):

方法A(可视化编辑器-首选):

    1. Edit/Add any Page or Post

      编辑/添加任何页面或帖子

    2. In the visual editor you will see a new bright red “G” button.

      在可视编辑器中,您将看到一个新的亮红色“ G”按钮。

      Click the button

      点击按钮

    3. You will now be presented with a selection menu.

      现在将显示一个选择菜单。

    4. Simply select any icon and the shortcode will be placed into your post/page!

      只需选择任何图标,便会将短代码放入您的帖子/页面!

    Method B (Manual Shortcode):

    方法B(手动简码):

    Insert shortcode into your post.
        

    在您的帖子中插入简码。
        

    [glyphicons icon=”iconname”]

    [glyphicons icon =“ iconname”]

    Method C (Manual into Theme):

    方法C(手动转换为主题):

    Since this loads the necessary fonts and css for the Glyphicons you may put them anywhere using the standardized code:    

    由于这会为Glyphicons加载必要的字体和CSS,因此您可以使用标准化代码将它们放置在任何地方:    

安装步骤

    1. Upload contents of bootstrap-glyphicons-in-visual-editor.zip to the /wp-content/plugins/ directory.
    2. bootstrap-glyphicons-in-visual-editor.zip 的内容上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Go to the visual editor for any page or post and use the new bright red button.
    6. 转到任何页面或帖子的可视编辑器,然后使用新的鲜红色按钮。

下载地址
https://downloads.wordpress.org/plugin/bootstrap-glyphicons-in-visual-editor.zip
-EOF-

AI助手支持GPT4.0