[wordpress插件] DMG Custom Menu WidgetDMG自定义菜单小部件

wordpress 插件 文章 2020-04-20 10:31 458 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Displays a menu created on the ‘Appearance > Menus’ page as a list of links.

将在“外观>菜单”页面上创建的菜单显示为链接列表。

Includes advanced options to add CSS styles, modify the title and add HTML/ Text before and after each link.

包括高级选项,用于添加CSS样式,修改标题以及在每个链接前后添加HTML /文本。

Replaces the built in Menus Widget (WP_Nav_Menu_Widget).

替换内置的菜单小部件(WP_Nav_Menu_Widget)。

A hook is available to filter the title: dmg_custom_menu_widget_title.

可以使用钩子来过滤标题: dmg_custom_menu_widget_title

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_related_pages_widget_title' , 'myTitleFilter');

add_filter('dmg_related_pa​​ges_widget_title','myTitleFilter');

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

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

wordpress-plugins/custom-menu-widget/.

wordpress-plugins / custom-menu-widget / 。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/dmg-custom-menu-widget directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / dmg-custom-menu-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. 拖动到“外观>小部件”页面上任何活动的侧边栏上

下载地址
https://downloads.wordpress.org/plugin/dmg-custom-menu-widget.1.0.zip
-EOF-

AI助手支持GPT4.0