• So I tried a little something different by adding a linear gradient to my post titles, which worked perfectly on the home page. When I clicked the title and went to the post the fonts were completely different. I was not trying to edit the single post headers, only the post titles on the home page. After removing the CSS the fonts look fine in the customizer but on the website they are basic skinny fonts that I never installed. I even added the

    @font-face { font-family: ArchivoBlack-Regular; src: url(www.website.com/wp-content/themes/botiga/fonts/ArchivoBlack-Regular.ttf); font-weight: normal; }

    code in the customizer but still no luck. I cleared the cache on the site multiple times as well as “purged all” and still the skinny fonts remain. I can’t figure out how editing CSS would throw everything off after I set all the fonts back to normal and removed the animation.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mfghost,

    I would like to troubleshoot your issue with my test site.

    Could you guide me step-by-step to reproduce your current font settings?

    Thread Starter mfghost

    (@mfghost)

    OK so I already changed the header fonts. They were Archivo Black but once I added the code below in the customizer The header text on the home/blog page worked fine but on the single post page & WooCommerce product titles changed to what I believe to be Archivo regular (they were very skinny) and when I went into “typography” in the customizer and changed the header fonts to anything else they would change to that font but if I changed back to Archivo Black they wouldn’t work. They would stay skinny. I then added the “@fontface” code after installing the Archivo Black font in the theme directory but the fonts still would not display at all. Then I just changed them to the current fonts.

    Here is the code I used:

    .posts-archive .entry-title a {
       text-transform: uppercase;
      background-image: linear-gradient(
        -225deg,
        #231557 0%,
        #44107a 29%,
        #ff1361 67%,
        #fff800 100%
      );
      background-size: auto auto;
      background-clip: border-box;
      background-size: 200% auto;
      color: #fff;
      background-clip: text;
      text-fill-color: transparent;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: textclip 2s linear infinite;
      display: inline-block;
          font-size: 30px;
    }
    
    @keyframes textclip {
      to {
        background-position: 200% center;
      }
    }

    The only edits to the above code were hex colors so I know that wasn’t the issue. Once the fonts didn’t work, like I said I installed the font to the directory, then tried this code, which worked for the home page titles but still made all other heading fonts skinny. They displayed correctly in the customizer for desktop, tablet and mobile sizes but when I looked on an actual mobile device they were not showing correctly. I tried both an Android and an iPhone. Below is the modified CSS I thought would bring the fonts back but I had no luck.

    @font-face {
      font-family: 'Archivo Black';
      src: url('https://website.com/wp-content/themes/botiga/fonts/ArchivoBlack-Regular.ttf') format('truetype');
      font-weight: normal;
    }
    
    @keyframes textclip {
      to {
        background-position: 200% center;
      }
    }
    
    .posts-archive .entry-title a,
    .single .entry-header .entry-title {
      text-transform: uppercase;
      background-image: linear-gradient(
        -225deg,
        #dbdcd7 0%, #dddcd7 24%, #e2c9cc 30%, #e7627d 46%, #b8235a 59%, #801357 71%, #3d1635 84%, #1c1a27
      );
      background-size: auto auto;
      background-clip: border-box;
      background-size: 200% auto;
      color: #fff;
      background-clip: text;
      text-fill-color: transparent;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: textclip 4s linear infinite; /* Adjust the animation duration here */
      display: inline-block;
      font-size: 30px;
      font-family: 'Archivo Black', sans-serif; 
    }
    
    /* Media Query for Mobile Devices */
    @media (max-width: 767px) {
      .posts-archive .entry-title a,
      .single .entry-header .entry-title {
        font-size: 24px; 
      }
    }
    

    Hope you can figure it out.

    Theme Author athemes

    (@athemes)

    Hi @mfghost,

    If we understand correctly, you are looking for a custom font solution. This is actually a feature we offer in Botiga Pro, but unfortunately not in the free version.

    Thread Starter mfghost

    (@mfghost)

    ni they were available in Google Fonts. I was using them before I added the CSS. Once the CSS was added in knocked them out and I couldn’t use them anymore for whatever they reason.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fonts Not Working Correctly After Edit In Customizer’ is closed to new replies.