我正在使用Divi Theme,我需要一种在全宽菜单模块中集成UberMenu的方法。
我搜索了header.php
,但我看不到任何有关全宽菜单模块的代码。
当我使用检查员
查看时,我就会发现这一点<div class="et_pb_fullwidth_menu
et_pb_module
et_pb_bg_layout_light
et_pb_text_align_left
et_dropdown_animation_fade
et_pb_fullwidth_menu_0"
style="background-color: #ffffff;"
data-bg_color="#ffffff"
我在主题上找不到这样的东西。
我尝试使用相同的主题位置,但看起来ubermenu没有任何效果,我仍然可以看到正常的全宽菜单。
<div class="entry-content">
<div style="" id="wp-wpined_textarea-wrap" class="wp-core-ui wp-editor-wrap html-active"><link rel="stylesheet" id="dashicons-css" href="ht.tp://localhost/wordpress/wp-includes/css/dashicons.min.css?ver=4.3.1" type="text/css" media="all">
<link rel="stylesheet" id="editor-buttons-css" href="ht.tp://localhost/wordpress/wp-includes/css/editor.min.css?ver=4.3.1" type="text/css" media="all">
<div style="width: 307px;" id="wp-wpined_textarea-editor-tools" class="wp-editor-tools hide-if-no-js"><div id="wp-wpined_textarea-media-buttons" class="wp-media-buttons"><button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="wpined_textarea"><span class="wp-media-buttons-icon"></span> Add Media</button></div>
<div class="wp-editor-tabs"><button type="button" id="wpined_textarea-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="wpined_textarea">Visual</button>
<button type="button" id="wpined_textarea-html" class="wp-switch-editor switch-html" data-wp-editor-id="wpined_textarea">Text</button>
</div>
</div>
<div id="wp-wpined_textarea-editor-container" class="wp-editor-container"><div style="padding: 0px; height: 0px;" id="qt_wpined_textarea_toolbar" class="quicktags-toolbar"><div style="width: 307px;" id="qt_wpined_textarea_toolbar_inner"><input id="qt_wpined_textarea_strong" class="ed_button button button-small" aria-label="Bold" value="b" type="button"><input id="qt_wpined_textarea_em" class="ed_button button button-small" aria-label="Italic" value="i" type="button"><input id="qt_wpined_textarea_link" class="ed_button button button-small" aria-label="Insert link" value="link" type="button"><input id="qt_wpined_textarea_block" class="ed_button button button-small" aria-label="Blockquote" value="b-quote" type="button"><input id="qt_wpined_textarea_del" class="ed_button button button-small" aria-label="Deleted text (strikethrough)" value="del" type="button"><input id="qt_wpined_textarea_ins" class="ed_button button button-small" aria-label="Inserted text" value="ins" type="button"><input id="qt_wpined_textarea_img" class="ed_button button button-small" aria-label="Insert image" value="img" type="button"><input id="qt_wpined_textarea_ul" class="ed_button button button-small" aria-label="Bulleted list" value="ul" type="button"><input id="qt_wpined_textarea_ol" class="ed_button button button-small" aria-label="Numbered list" value="ol" type="button"><input id="qt_wpined_textarea_li" class="ed_button button button-small" aria-label="List item" value="li" type="button"><input id="qt_wpined_textarea_code" class="ed_button button button-small" aria-label="Code" value="code" type="button"><input id="qt_wpined_textarea_more" class="ed_button button button-small" aria-label="Insert Read More tag" value="more" type="button"><input id="qt_wpined_textarea_close" class="ed_button button button-small" title="Close all open tags" value="close tags" type="button"></div></div><textarea class="wp-editor-area" rows="20" autocomplete="off" cols="40" name="wpined_textarea" id="wpined_textarea"></textarea></div>
</div>
<span class="wpined-con" rel="3223"><div class="et_pb_section et_pb_fullwidth_section et_pb_section_0 et_section_regular"><div class="et_pb_fullwidth_menu et_pb_module et_pb_bg_layout_light et_pb_text_align_left et_dropdown_animation_fade et_pb_fullwidth_menu_0" style="background-color: #ffffff;" data-bg_color="#ffffff">
<div class="et_pb_row clearfix">
<nav class="fullwidth-menu-nav"><ul style="background-color: rgb(255, 255, 255);" id="menu-salon" class="fullwidth-menu nav downwards"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3251"><a href="ht.tp://localhost/wordpress/?page_id=3243">Services</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3252"><a href="ht.tp://localhost/wordpress/?page_id=3241">Gallery</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3250"><a href="ht.tp://localhost/wordpress/?page_id=3245">About us</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3249"><a href="ht.tp://localhost/wordpress/?page_id=3247">Contact</a></li>
</ul></nav>
<div class="et_mobile_nav_menu">
<a href="#" class="mobile_nav closed">
<span class="mobile_menu_bar"></span>
<ul style="background-color: rgb(255, 255, 255);" id="mobile_menu1" class="et_mobile_menu"><li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3251 et_first_mobile_item"><a href="ht.tp://localhost/wordpress/?page_id=3243">Services</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3252"><a href="ht.tp://localhost/wordpress/?page_id=3241">Gallery</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3250"><a href="ht.tp://localhost/wordpress/?page_id=3245">About us</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3249"><a href="ht.tp://localhost/wordpress/?page_id=3247">Contact</a></li>
</ul></a>
</div>
</div>
</div>