Secure Page Font Change

Discussion in 'SaleJunction E-Commerce WordPress Theme' started by rogerschnur, Jan 24, 2014.

  1. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    I just went live with a new website and noticed that the font I programmed into the code, Roboto, changes when visitor goes to secure page https in cart. How can I keep the new font?

    Click here for website
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  3. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    Please go one more page to the checkout and you will see the font change.
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  5. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
  6. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    Like I said before, click on the proceed to checkout button so you go to the https:
     
  7. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.

    Code:
    .woocommerce h3, .woocommerce p, .woocommerce span, .woocommerce th, .woocommerce td, .woocommerce label, .woocommerce select,  .woocommerce input{
    font-family: symbol;
    }
    .woocommerce input {
    font-family: symbol ! important;
    }
    .fullwidth .fullwidth_inner h1.page-title {
    font-family: symbol;
    }
    .fullwidth_inner .woocommerce form .form-row textarea {
    font-family: symbol;
    }
    .fullwidth_inner .woocommerce form .form-row .input-text{
    font-family: symbol;
    }
     
    In place "symbol" you can put your font.
    This will solve your issue.
     
  8. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    I did as you said and I'm still not getting Roboto. I tested in both Firefox and Chrome cleaning cache and cookies. Here's what I pasted in styling options, and you can verify by looking at source code on homepage:

    .woocommerce h3, .woocommerce p, .woocommerce span, .woocommerce th, .woocommerce td, .woocommerce label, .woocommerce select, .woocommerce input{
    font-family: roboto;
    }
    .woocommerce input {
    font-family: roboto! important;
    }
    .fullwidth .fullwidth_inner h1.page-title {
    font-family: roboto;
    }
    .fullwidth_inner .woocommerce form .form-row textarea {
    font-family: roboto;
    }
    .fullwidth_inner .woocommerce form .form-row .input-text{
    font-family: roboto;
    }

    Also, why when I'm on the https page, are all the other links now https too? If someone wants to go back to homepage, shouldn't it convert back to http:?
     
  9. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14
    UPDATE: I found the answer...

    In the Appearance > Editor > Stylesheet > I removed the http: from the url and instead have it starting with //

    original: @import url(http://fonts.googleapis.com/css?family=Roboto);

    revised: @import url(//fonts.googleapis.com/css?family=Roboto);

    Now it works with both the http: and the https:
     
    Piyush likes this.
  10. rogerschnur

    rogerschnur Member

    Joined:
    Mar 19, 2013
    Messages:
    216
    Likes Received:
    14

Share This Page