最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - Hide duplicate entry title

programmeradmin1浏览0评论

I am using Divi, which introduces the Post / Page title as "h1.entry-title." And, I'm also using Open Menu plugin, which also introduces their custom post type Page title as "h1.entry-title."

So, I want to hide the Open Menu h1.entry-title only, because I don't need duplicate titles.

I'm trying to target the specific Open Menu entry-title by adding he div ID in the CSS rule, but it's still hiding both and not one over the other.

Should I just add a filter to the child theme in functions.php to filter it out? I'm not a dev, so I don't write PHP. Not sure what to write to filter that out.

I am using Divi, which introduces the Post / Page title as "h1.entry-title." And, I'm also using Open Menu plugin, which also introduces their custom post type Page title as "h1.entry-title."

So, I want to hide the Open Menu h1.entry-title only, because I don't need duplicate titles.

I'm trying to target the specific Open Menu entry-title by adding he div ID in the CSS rule, but it's still hiding both and not one over the other.

Should I just add a filter to the child theme in functions.php to filter it out? I'm not a dev, so I don't write PHP. Not sure what to write to filter that out.

Share Improve this question edited Apr 23, 2019 at 6:09 norman.lol 3,2413 gold badges30 silver badges35 bronze badges asked Apr 23, 2019 at 2:32 Tony ZeoliTony Zeoli 1602 silver badges12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

You can hide open menu entry title by adding below css code in custom css section.

.openmenu > h1{ display:none }

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论