简体   繁体   English

标题文本未出现在移动设备上

[英]Header text not appearing on mobile

This is how it looks on web这是它在网络上的样子
This is how it looks on mobile这是手机上的样子
The header text does not appear on mobile.标题文本不会出现在移动设备上。 Any reason why?有什么理由吗? I'm new to css.我是 css 新手。 Below is the custom css I've added: Thanks in advance.以下是我添加的自定义 css:提前致谢。

Update - Added the html as well.更新- 也添加了 html。 Sorry, bear with me, can't seem to add more than a few lines of codes without more description.抱歉,请耐心等待,如果没有更多说明,似乎无法添加多于几行的代码。

Update 2 - Added 2 screenshots of how a button looks on mobile with 2 different fonts.更新 2 - 添加了 2 个屏幕截图,显示按钮在移动设备上的外观,使用 2 种不同的字体。 Why is it one doesn't appear?为什么一个没有出现?

Click here to see screenshot of button with Gotham font - doesn't appear单击此处查看带有 Gotham 字体的按钮的屏幕截图 - 未出现
Click here to see screenshot of button with Grumpy font单击此处查看带有 Grumpy 字体的按钮的屏幕截图

 //ADDING FONTS// @font-face { font-family: 'GRUMPY'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e703047b02883185a0fed19/1584410695558/Grumpy+Black48.otf'); } @font-face { font-family: 'GOTHAM-MEDIUM'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e70326a8ddd1113d8ead425/1584411243146/GothamMedium.ttf'); } @font-face { font-family: 'GOTHAM-BOOK'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e703fe01356f60cd4de3565/1584414689162/GothamBook.ttf'); } //SETTING TYPEFACE// h1 { font-family: 'GRUMPY'; font-size: 7vh; } h2 { font-family: 'GOTHAM-MEDIUM'; font-size: 7vh; } h3 { font-family: 'GOTHAM-MEDIUM'; font-size: 5vh; } h4 { font-family: 'GOTHAM-MEDIUM'; font-size:4vh; } p { font-family:'GOTHAM-BOOK'; font-size: 2.2vh !important; } body { font-family:'GOTHAM-BOOK'; font-size: 2.2vh !important; }
 <div class="content"> <div class="sqs-layout sqs-grid-12 columns-12" data-type="page-section" id="page-section-5e6f422ffd82d42cb292dd66"> <div class="row sqs-row"> <div class="col sqs-col-12 span-12"> <div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-592cf9f5c18d780deacb"> <div class="sqs-block-content"> <h2 style="text-align:center;white-space:pre-wrap;"><strong>New Beach Collection</strong></h2> </div> </div> <div class="sqs-block button-block sqs-block-button" data-block-type="53" id="block-4b700310cae983fab358"> <div class="sqs-block-content"> <div class="sqs-block-button-container--center" data-animation-role="button" data-alignment="center" data-button-size="small"> <a href="/shop" class="sqs-block-button-element--small sqs-block-button-element">Shop Now</a> </div> </div> </div> </div> </div> </div> </div> </div> </section>

The issue why the Heading is hidden in Mobile, might be because you have unknowingly added CSS to hide them.标题在 Mobile 中隐藏的问题,可能是因为您在不知不觉中添加了 CSS 来隐藏它们。 I have added inline css to the heading element.我已将内联 css 添加到标题元素。 Kindly check the below code and see if this solves the issue.请检查以下代码,看看是否可以解决问题。 It would be better if you can share the website URL.如果能分享一下网址就更好了。 Seems like you have password-protected the website.好像您对网站设置了密码保护。 If you can remove the password protection for homepage, we can solve this issue in minutes then you can re enable it.如果您可以取消主页的密码保护,我们可以在几分钟内解决此问题,然后您可以重新启用它。

 <style> //ADDING FONTS// @font-face { font-family: 'GRUMPY'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e703047b02883185a0fed19/1584410695558/Grumpy+Black48.otf'); } @font-face { font-family: 'GOTHAM-MEDIUM'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e70326a8ddd1113d8ead425/1584411243146/GothamMedium.ttf'); } @font-face { font-family: 'GOTHAM-BOOK'; src: url('https://static1.squarespace.com/static/5e671ddf602f01370b0eff04/t/5e703fe01356f60cd4de3565/1584414689162/GothamBook.ttf'); } //SETTING TYPEFACE// h1 { font-family: 'GRUMPY'; font-size: 7vh; } h2 { font-family: 'GOTHAM-MEDIUM'; font-size: 7vh; } h3 { font-family: 'GOTHAM-MEDIUM'; font-size: 5vh; } h4 { font-family: 'GOTHAM-MEDIUM'; font-size:4vh; } p { font-family:'GOTHAM-BOOK'; font-size: 2.2vh !important; } body { font-family:'GOTHAM-BOOK'; font-size: 2.2vh !important; } </style> <div class="content"> <div class="sqs-layout sqs-grid-12 columns-12" data-type="page-section" id="page-section-5e6f422ffd82d42cb292dd66"> <div class="row sqs-row"> <div class="col sqs-col-12 span-12"> <div class="sqs-block html-block sqs-block-html" data-block-type="2" id="block-592cf9f5c18d780deacb"> <div class="sqs-block-content"> <h2 style="display:block !important;visibility:visible !important;text-align:center;white-space:pre-wrap;"><strong>New Beach Collection</strong></h2> </div> </div> <div class="sqs-block button-block sqs-block-button" data-block-type="53" id="block-4b700310cae983fab358"> <div class="sqs-block-content"> <div class="sqs-block-button-container--center" data-animation-role="button" data-alignment="center" data-button-size="small"> <a href="/shop" class="sqs-block-button-element--small sqs-block-button-element">Shop Now</a> </div> </div> </div> </div> </div> </div> </div> </div> </section>

在此处输入图片说明

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM