Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Elektromaus

Custom Font Header for mobile view

Question

Hello,

 

I would like to code a custom font into the header of the mobile view of my website. I have done so successfully for the regular view but it defaults into standard font when i switch to mobile view. Any ideas?

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

Yes, thats correct. And this is the mobile specific CSS I have in there so far:

 

---

 

@media @mobile {
/* Insert Code for Mobile Below This Line*/
@font-face {
    font-family: 'NOAH';
       src: url('https://static1.squarespace.com/static/5cf7ddfac0827b0001ca0b72/t/5d13085b0ebe8d0001347c5c/1561528412192/Fontfabric+-+Noah+Grotesque+Heavy.ttf');
  }

//ASSIGN NOAH REGULAR FONT// 
.has-site-title .mobile-Header-branding {
  font-family: 'NOAH' ; font-size: 35px;}

p, h1, h2, h3 {
-webkit-hyphens: manual !important;
-moz-hyphens: manual !important;
-ms-hyphens: manual !important;
hyphens: manual !important;
}
  
  body {text-align:justify}
  
 h, h1 ,h2, h3,  {
   font-family: 'NOAH';
  font-weight: 200; }
  
  
h1 {
 font-size: 22px;
 }

h2 {
 font-size: 15px;
 }

h3 {
 font-size: 15px;
 }

p {
 font-size: 15px;
 }

/* Insert Code for Mobile Above This Line */
}

 

---

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...