Support » Plugin: Font Organizer » Can’t Edit ” Additional CSS” After Saving

  • Resolved gordsellar

    (@gordsellar)


    Hi there,

    I added some CSS to the “Additional CSS” text box and saved it. Now when I try to edit it, it’s just locked text. I can select it, but I can’t edit it at all. (I was trying to add a special class for which there would be a different font setting, but the page I’m trying to publish isn’t posted yet.)

    I don’t mind going in an manually editing the Additional CSS manually someplace (if you tell me where I need to do it) but longer-term this is probably a bug that needs fixing… unless of course there’s a plugin conflict causing it.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author hivewebstudios

    (@hivewebstudios)

    Hey!

    On first thought I can’t seem to find a way in which our plugin can cause that, seems very much like sort of conflict to me.
    Looking at your website from the front, I can’t seem to see our plugin in use.

    Could you try and re-install it again, and put a very simple class, to see if the issue replicates? we need to collect some more data in order to resolve the issue you experience.

    Have a nice day!

    Hi there,

    Well, one problem: I have uploaded a number of fonts, and I’m not sure I have all of them on file anymore offline.

    Is there a way I can save the settings I have now somewhere, and hack them back in after we test it? (Or, at the very least, where can I download the fonts from on my server? They seem not to be in the plugin’s directory. Are they just files in the database now?)

    By the way, because I’m working on other site optimization stuff, I managed to figure out that my site is having some pretty serious problems because of this plugin. (IF you visit it, at https://www.gordsellar.com, you’ll see the content doesn’t load right away. Something’s gone wrong with the way it’s calling the fonts: the plugin seems to believe that at least some of the fonts I’ve uploaded are located in a directory called /fonts/ in the home directory of the WordPress installation… but no such folder exists.

    (At this point, that may be an artifact of critical I exported, and then added to a critical code injector, but it should also indicate the source of at least one of the plugin’s problems, I guess? I also see some error codes where my site is requesting an insecure font (http instead of https). Again, I don’t know where that error comes from, but if it’s the plugin I guess you can figure that out easily!)

    Anyway, if you let me know where I can redownload from my site the fonts I have uploaded , I don’t mind deleting and reinstalling the plugin… I’d be happy to eliminate the error I’m getting while not losing the font variety I have started to establish on my blog.

    Hi there,

    Ooops, I think I know what happened. I misconfigured some things with an optimization plugin and that caused some other problems—the missing /fonts/directory is part of that. I’m starting again from scratch with the fonts all hosted locally, and I’ll see if that helps…


    By the way I suspect I misconfigured the thing I put in “Additional CSS” so if nobody else has had the issue, I wouldn’t worry about it.

    Oh, but… I uninstalled the setting and then reinstalled it, and the broken CSS is still there. Maybe it’s misconfigured, I don’t know, but it didn’t get deleted when I deleted the plugin.

    The CSS is:

    #div.screenplay { font-family: “Courier New”, Courier !important; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 500; line-height: 26.4px; }

    I’m not very experienced at CSS and was messing around, so it’s probably malformed. But alarmingly, even after deactivating, deleting, and reinstalling, it’s still there, so I guess it’s stuck in the database now?

    The fonts I uploaded into the previous installation are all still on the server too, and were working right away after I reinstalled and activated the plugin, without having to reupload, so something weird is definitely going on. If you could tell me where in the database I should delete what, I’m willing to try see if that rectifies things. (I can always do a backup first and revert if I mess up.)

    • This reply was modified 1 year, 6 months ago by  gordsellar.
    • This reply was modified 1 year, 6 months ago by  gordsellar.

    Oh, and… Something VERY weird is going. I deleted the plugin, dropped the related tables (fo_elements *and* fo_usable_fonts) from the database (because uninstalling the plugin didn’t drop them automatically) AND deleted everything in the /wp-content/uploads/font-organizer/ directory.

    However, when I reinstalled the plugin, the bad CSS was still there, locked in the Additional CSS Settings section of the plugin’s settings.

    Is it possible this CSS is getting stored someplace else in the database by accident? Maybe somewhere it can’t be properly edited?

    UPDATE:

    Found it. You’re saving the Additional CSS into the _options table in the database, under fo_advanced_options, but not deleting it when the plugin is uninstalled. (That’s what I managed to find, anyway; didn’t find anymore fo_advanced_options stuff in the options table, but maybe you can double check to be sure.)

    I’ll try reinstall and stay very clear of the custom CSS for now, and hopefully everything will work okay.

    UPDATE 2: Oh, and you must also be saving other stuff in another table, because the default font settings are still in the database somewhere, regardless of how many times I delete and uninstall the plugin. (It’d be nice if you set up that data to be deleted when the plugin is deleted, as well, when you get an update out…)

    • This reply was modified 1 year, 6 months ago by  gordsellar. Reason: Found cause for weird behaviour
    • This reply was modified 1 year, 6 months ago by  gordsellar.
    • This reply was modified 1 year, 6 months ago by  gordsellar.
    Plugin Author hivewebstudios

    (@hivewebstudios)

    hello @gordsellar.
    Under advanced tab you can scroll down to “System Settings” section and check the box “Uninstall All”. This will remove all our database and files. However we use WordPress system to save the settings as you mentioned, and those settings might not be removed with this option. We will look into this to guarantee “Uninstall All” will remove everything as you expected.

    P.S you can go to ‘YOURSITE/wp-admin/options.php’ to view/edit all the options declared in your WordPress.

    Thank you very much, and please let us know if you have any more issues!

    Hi there,

    It seems like removing the messed-up CSS from the _options table, deleting and reuploading all the fonts, and and then rebuilding my critical CSS after all that seemed to sort out whatever problems I was having.

    Oh, that trick for viewing the options.php doesn’t work on my site. All I get is a dashboard page (regular sidebar) with the text “All Settings” at the top, but no actual settings listed beneath it. Weird.

    In any case, thanks for the suggestion and the plugin!

    Plugin Author hivewebstudios

    (@hivewebstudios)

    You welcome, glad to be of service 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t Edit ” Additional CSS” After Saving’ is closed to new replies.