sourcingwine 0 Posted May 6, 2020 Posted May 6, 2020 (edited) 版本是1.7.6.5 但是在之前几个版本里也是这种情况. 主题用的是X宝上买的主题. 网站地址: https://www.sourcingwine.com/ 一直以来产品都是批量上传导入的. 所以产品目录下的时候产品描述都会显示. 👇下图左边 但是在有一次编辑某单一产品描述后,回到产品目录下的时候. 产品描述都不被显示了.👆上图右边 然后最近学习了点html知识,查看了下. 产品目录下的内容 左边的产品描述 <div class="product-desc" itemprop="description">Baron Philippe de Rothschild Mise de la Baronnie Médoc 1989 Bouteille</div> <div class="product-desc" itemprop="description"><p>Chateau Fleur Cardinale - Saint-Emillion Grand Cru - 1999 - Bouteille</p></div> 相比左边的产品描述,右边的产品描述 在.product-desc下多嵌套一个p标签. 而这个p标签,在后台编辑单一产品描述的时候, 输入文字内容会自动添加. 即便是在源码模式(HTML)内容删除p标签. 保存输入后也会自动添加. 所以想请教下各位, 这种情况 有没有办法 使 所有产品目录下的 产品的产品描述都能正常显示? 还是需要修复哪里的样式表呢? 谢谢各位 Edited May 7, 2020 by sourcingwine (see edit history) Share this post Link to post Share on other sites
sourcingwine 0 Posted May 6, 2020 Posted May 6, 2020 刚刚又查看了下. .js-product-miniature .product_desc .product-desc p { font-size: 12px; color: #8c8c8c; line-height: 25px; padding: 15px 0; margin: 0; display: none } 找到.product-desc p的样式下面 display:none 改成display:inline. 样式跟正常的略微有差,但是能显示了. 具体会不会引发其他BUG,还待验证... Share this post Link to post Share on other sites
ZHSoft 1 Posted December 24, 2020 Posted December 24, 2020 应该是产品短描述导入错误了吧 Share this post Link to post Share on other sites
sourcingwine 0 Posted December 24, 2020 Posted December 24, 2020 网站已经不继续用prestashop了。 换成wp了。 网站也不再是电商了。只是个展示页面。 说回这个问题。(已经过去挺久了,印象不是特别深了) 主要原因还是用的主题的原因。 主题里面是批量导入的描述都是OK的。 但是每次修改的时候,如果点选描述框,它都会按照配置自己主题的CSS样式, 所以到后来我打开检查的时候 发现,如果更新了哪款产品的描述 在前台检查都会自动添加一个 <p>描述内容</p> 但是如果是批量导入的话 就不会带有 p 标签了 但后来没继续电商网站了, 这个问题也没有解决. 最后是换了个主题, 就没有这个问题了. Share this post Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now