php 将切换搜索图标添加到标题菜单模块中
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 将切换搜索图标添加到标题菜单模块中相关的知识,希望对你有一定的参考价值。
@media only screen and (min-width: 992px ){
.add-search-icon .fl-module-content .menu {
margin-right: 10px;
}
.fl-row-content-wrap .fl-page-nav-search {
margin-top: 20px;
}
.fl-row-content-wrap .fl-page-nav-search a {
color: #fff;
}
}
<?php
/**
* Adding search icon at right side of the menu module
* Must be using Beaver theme
* @return void
*/
add_action( 'fl_builder_after_render_module', 'xmit_add_search_icon_themer_header', 10 );
function xmit_add_search_icon_themer_header( $module )
{
//* Checking that you are using BB Theme
if( ! class_exists( 'FLTheme' ) )
return;
$id = '';
if( $module->settings->class === "add-search-icon" )
$id = $module->node;
if( $module->settings->type == "menu" && $module->node == $id )
{
//* Display the search icon
FLTheme::nav_search();
}
return;
}
以上是关于php 将切换搜索图标添加到标题菜单模块中的主要内容,如果未能解决你的问题,请参考以下文章