• Resolved tjharley

    (@tjharley)


    Seems as though the default font is loading up, not the custom font. I converted an otf file to woff and the font isn’t showing up. Any suggestions? Also, is there a way to make the red background white? None of the custom styling I entered seems to be loading up either.

    Thanks!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter tjharley

    (@tjharley)

    After some more troubleshooting, it looks like the plugin is not playing nice with Divi Theme. Also, with a default theme, it is still not saving the min/max sizes and is defaulting to 8pt on both. Any way to fix these issues? Thank you!

    Thread Starter tjharley

    (@tjharley)

    Ok, so I’ve got the font working now but it’s still a bit wonky accepting the styling changes. For instance, it still won’t save min/max sizes and some colors.

    Plugin Author kontur

    (@kontur)

    Hey,

    it’s hard to debug remote, so I’ll try ask a couple of questions to get to the bottom of it.

    I see on the sample page above a couple of things:

    – The woff files exist and should be correctly passed in, but somehow the plugin does not finish initiating the Fontsampler
    – When I remove the “on-loading” class to see the styling of the Fontsampler it looks like you managed to style some colors and the fonts actually render
    – The only woff files that seem to get loaded, though, come from fast.fonts.net – are those other interface fonts / fonts of the theme?
    – The theme is pay to use, so I can’t debug myself with that exact theme, I’m afraid
    – Regarding saving styles: Do you have a “notifications” tab in Fontsampler, and if so, does it contain warnings about file permissions?
    – Regarding saving styles: Are you changing the default styles or the styles of one particular font sampler
    – If you are editing the default settings, is the fontsampler you use using the defaults styles, or overwriting them?
    – When you save the settings, to you get a warning message about permissions?
    – Regarding the fonts not loading: I see the font files you request in the Fontsampler get returned with font/woff headers. I am not certain, but you might want to try using .htaccess to overwrite the return headers to application/font-woff, for example like so
    – Which particular colors don’t get saved?
    – What are the values for min/initial/max sizes you are trying to save?

    Thread Starter tjharley

    (@tjharley)

    – Fonts seem to be loading up correctly now.
    – The settings still aren’t being saved, neither in the custom not settings or the default font settings. If I change the min/max size and save, it reverts to whatever random number is saved. It won’t let me change the number.
    – I’m not getting any warnings about permissions.
    – Also, stylings are not saving either (slider colors/sizes, etc.)

    Would it be helpful to provide you with a login so you can see what’s happening?

    Plugin Author kontur

    (@kontur)

    Thanks for the reply.

    Please don’t send me logins.

    For me the fonts don’t load on the page you linked above. Or more precise the fonts load, but the Fontsampler is not visible. Maybe you could make a single page hidden from the public that is entirely empty except for having one Fontsampler on it?

    Also in the above page it looks like there is html markup errors. The Fontsampler elements get rendered in <code> tags which they shouldn’t, and running the source code through a html validator shows multiple errors that could affect why Fontsampler isn’t rendered correctly.

    As for the settings not saving at all, I wonder if there is some database error that causes the saving to fail altogether. Can you enable logging in your WordPress? Since this most likely will log errors from other parts of the site as well, which might get displayed to users, you might want to enable logging, test saving the settings again, and then disable it again. Logging works by adding constants to your wp-config.php file. For example you could add:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    
    // Disable display of errors and warnings 
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
    
    // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
    define( 'SCRIPT_DEBUG', true );`
    
    
    Save the wp-config.php file, then go to the Fontsampler settings and try saving, and then remove the above portion again. Then see what is in the file: /wp-content/debug.log
    
    What version of WordPress and Fontsampler are you running?
    • This reply was modified 7 years, 1 month ago by kontur.
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Reads*

    Please don’t send me logins.

    Thank you @kontur for that. ??

    @tjharley Please don’t repeat that offer, that’s going to far and the plugin author is providing great support here. Please read his suggestions carefully, I’m sure with some effort it will get sorted out.

    Plugin Author kontur

    (@kontur)

    Cheers @jdembowski.

    @tjharley Don’t worry about it, I am sure you had best intentions. With a admin level wordpress login someone can essentially lock you out of your own webserver, steal all your and your users’ data, and do all sorts of other harm. Furthermore, should I be willing to help debug on your site in good faith but still mess something up, we’d be in a pickle of who’s liable. Of course I do development for hire where I’d look into issues like this, but that’s a different discussion altogether, and for the benefit of other users possibly encountering the same issues you do, I would very much like to know myself what is going on ??

    Plugin Author kontur

    (@kontur)

    @@tjharley please respond if this helped you identify what the problem was or otherwise I am inclined to close the ticket.

    Plugin Author kontur

    (@kontur)

    Without further info I am closing this issue as resolved. Can’t help without knowing what’s wrong.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Default Font Loading Up’ is closed to new replies.