[wordpress插件] DMG Text WidgetDMG文字小工具

wordpress 插件 文章 2020-04-20 10:51 553 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

DMG Text Widget replaces the standard text widget with one that includes advanced options to apply a CSS class, add paragraphs, apply shortcodes, hide the title and make the title a link.

“ DMG文本小部件”将标准文本小部件替换为包含高级选项的标准文本小部件,这些高级选项可应用CSS类,添加段落,应用短代码,隐藏标题并使标题成为链接。

Two hooks are available to filter the title and text;

两个钩子可用于过滤标题和文本;

dmg_text_widget_title for the title and dmg_text_widget_text for the text.

标题为 dmg_text_widget_title ,文本为 dmg_text_widget_text

For example, to change the title on a single page or post, you could add this to your functions.php file:

例如,要在单个页面或帖子上更改标题,可以将其添加到functions.php文件中:

function myTitleFilter( $title )

 函数myTitleFilter($ title)

{    

{    

if( is_singular() )    

if(is_singular())    

{        

{        

return "$title";    

返回“ $ title ”;    

}    

}    

else    

其他    

{        

{        

return $title;    

返回$ title;    

}

}

}

}

add_filter( 'dmg_text_widget_title' , 'myTitleFilter');

add_filter('dmg_text_widget_title','myTitleFilter');

More information about this plugin can be found at http://dancoded.com/tag/

有关此插件的更多信息,请访问 http://dancoded.com/tag/

dmg-text-widget/.

dmg-text-widget / 。

Adding CSS Class(es)

添加CSS类

Enter strings, either space or comma separated, which will be applied as CSS classes to the widget wrapper.

输入以空格或逗号分隔的字符串,这些字符串将作为CSS类应用于窗口小部件包装程序。

These classes are sanitized using the sanitize_html_class() function built in to WordPress.

可以使用WordPress内置的 sanitize_html_class()函数对这些类进行清理。

Make the Title a link

为标题添加链接

Enter a valid URL to make the title a link.

输入有效的URL,以使标题成为链接。

Automatically add paragraphs

自动添加段落

This setting automatically adds paragraph tags to any text.

此设置会自动将段落标签添加到任何文本。

This uses the WordPress wpautop() function.

这使用了WordPress wpautop()函数。

Apply shortcodes

应用简码

This setting processes the text and applies any shortcodes found.

此设置处理文本并应用找到的所有简码。

Show the Title

显示标题

This setting controls the visibility of the widget title.

此设置控制小部件标题的可见性。

If unchecked, the title (including the before_title and after_title code defined when registering the sidebar) will not be displayed.

如果未选中,则标题(包括注册边栏时定义的 before_title after_title 代码)将不会显示。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/dmg-text-widget directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / dmg-text-widget 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ page in the WordPress admin area
    4. 通过WordPress管理区域中的“插件”页面激活插件

    5. Drag onto any active sidebar on the ‘Appearance > Widgets’ page
    6. 拖动到“外观>小部件”页面上任何活动的侧边栏上

    7. Click on the ‘Show Advanced’ link in the widget to change advanced options.
    8. 点击小部件中的“显示高级”链接以更改高级选项。

下载地址
https://downloads.wordpress.org/plugin/dmg-text-widget.1.1.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] BP Birthday GreetingsBP生日祝福
[wordpress插件] Easiest Contact Form for WordPress – AP Contact FormWordPress最简单的联系表– AP联系表
[wordpress插件] Developer monitor by VentureGeeksVentureGeeks的开发人员监视
[wordpress插件] Check Baidu Result查看百度结果
[wordpress插件] Bank Transfer Confirmation Form银行转帐确认表格
随便看看
微信开放平台跟公众平台有什么区别? 3608
怎么添加小程序支付功能? 4516
教育科技公司申请微信支付被拒绝? 4799
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472