Wordpress 网站编辑器。我不明白为什么导航菜单在整个网站编辑器中可见,但在公共网站上不可见

问题描述 投票:0回答:1

二二十四主题。我正在创建一个新网站。我之前已将 3 个网站更改为该主题,但对于该网站,我无法在公共网站 https://aframjavea.com/ 上显示菜单。菜单按预期呈现在站点编辑器中的所有页面上,包括预览。 这是标题模板的代码

<!-- wp:group {"align":"full","className":"wc-blocks-pattern-header-large wc-blocks-header-pattern","style":{"spacing":{"padding":{"right":"40px","left":"40px","top":"24px","bottom":"24px"}}},"layout":{"type":"default"}} -->
<div class="wc-blocks-pattern-header-large wc-blocks-header-pattern wp-block-group alignfull" style="padding-top:24px;padding-right:40px;padding-bottom:24px;padding-left:40px"><!-- wp:group {"align":"full","layout":{"type":"default"}} -->
<div class="wp-block-group alignfull"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"align":"full"} -->
<div class="wp-block-columns alignfull are-vertically-aligned-center is-not-stacked-on-mobile"><!-- wp:column {"verticalAlignment":"center","width":"70%","layout":{"type":"default"}} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:70%"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"shouldSyncIcon":true} /-->

<!-- wp:site-title /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","width":""} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
<div class="wp-block-group"><!-- wp:woocommerce/customer-account {"displayStyle":"icon_only","iconStyle":"line","iconClass":"wc-block-customer-account__account-icon"} /-->

<!-- wp:woocommerce/mini-cart /--></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:group {"align":"full","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull"><!-- wp:navigation {"ref":126} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"0","left":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:0;padding-left:0"><!-- wp:search {"label":"","showLabel":false,"placeholder":"Search","buttonText":"Search","buttonUseIcon":true,"query":{"post_type":"product"},"style":{"border":{"radius":"0px"}}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

这是网站编辑器中的外观 在此输入图片描述

如果有人能指出我正确的方向,我将不胜感激

我尝试移动标题内的导航块,更改导航设置并禁用插件。

menu navbar
1个回答
0
投票

问题似乎是由我短暂使用过的 YITH 主题引入的一些损坏引起的。全屏编辑菜单块时,只能使用 + 创建正确的菜单条目

© www.soinside.com 2019 - 2024. All rights reserved.