• Hi,

    My custom font not working…
    I’m using a custom theme and I added the custom font in wp-content/themes/atelier-child/woocommerce/pdf/yourtemplate/fonts/fsjoey.ttf

    /* Load font */
    @font-face {
    font-family: ‘FS Joey’;
    font-style: normal;
    font-weight: normal;
    src: local(‘FS Joey’), local(‘FS Joey’), url(<?php echo $this->get_template_path(); ?>/fonts/fsjoey.ttf) format(‘truetype’);
    }

    body {
    font-family: ‘FS Joey’, sans-serif;
    font-style: normal;
    font-weight: normal;
    }

    Can you help me?
    Thanks

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Have you also copied all the template files to the yourtemplate folder and selected it in the General PDF Invoice settings?

    Thread Starter carlossync

    (@carlossync)

    Yes!

    Plugin Contributor Ewout

    (@pomegranate)

    That is odd… Are you not seeing any change in the font? Do other changes in your template styles show up in the PDF?

    Thread Starter carlossync

    (@carlossync)

    Everything continues the same…

    Plugin Contributor Ewout

    (@pomegranate)

    “Everything continues the same…” – meaning you don’t see any effect from other changes either? In that case perhaps you’re not editing the correct file. Could you try renaming the yourtemplate folder to something else and reselecting it in the Template settings?

    Thread Starter carlossync

    (@carlossync)

    Done, but there are no changes… I don’t know what may be happening

    Plugin Contributor Ewout

    (@pomegranate)

    Could you post a screenshot of the custom template folder structure as showing the files? Can you double check that no other PDF Invoice plugins are active on the site?

    Thread Starter carlossync

    (@carlossync)

    Thread Starter carlossync

    (@carlossync)

    Hey! Solved! I don’t know what I’ve done, but now it works!
    thanks for attention

    Plugin Contributor Ewout

    (@pomegranate)

    Looks fine to me, assuming you have selected the template names Custom in the PDF Invoice template settings… If you can confirm that there are no other invoice plugins on the site, I have no explanation for why the changes don’t have any effect.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom fonts not working’ is closed to new replies.