Fonts setup is kind of messy I think

The reason I say this is because I deleted a bunch of fonts that I had added from Google Fonts site using the import link. What I have now is a lot of repeated links to the fonts as well as the fonts that I had deleted are still being linked to. I'm thinking the links to deleted ones may be because they were imported with a group and I may not have deleted all of them from that group, but at the same time, there's no reference within the app to know what was all imported with a single link. I think the only way to clean this part up will be to import each font separately. I will try that to make sure that this part is cleanable, but that doesn't fix the duplicated link lines in the code.

An example is the following line in my code (which you can see on the test site right now at: http://eiwd.work/pgbm-temp/index.html This line is repeated once:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cormorant+Upright|El+Messiri|Kurale|Mirza|Rakkas|Tillana|Yatra+One">

This line is repeated twice:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Astloch|Cormorant+Unicase|Fascinate+Inline|Fondamento|Kumar+One|Lobster+Two|Quintessential">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Astloch|Cormorant+Unicase|Fascinate+Inline|Fondamento|Kumar+One|Lobster+Two|Quintessential">

This line is repeated twice:

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cormorant+Upright|El+Messiri|Kurale|Mirza|Rakkas|Tillana|Yatra+One">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cormorant+Upright|El+Messiri|Kurale|Mirza|Rakkas|Tillana|Yatra+One">

And so on. Font lines seem to be the only things repeated in the Head so all else seems ok so far.

Being that I see that your JS is also duplicating, I'm wondering if you are dragging a pre-made component that has those fonts/js attached therefore it's replicating the links everytime you drag the component in to your design?

Saj

Wow I never saw this answer Saj, sorry took so long lol.

No the JS isn't repeating although it sort of looks like it is. I checked with the developer of WowSlider a while back to see what files might be duplicates and they assured me they were all necessary even for multiple galleries, so apparently there are different things for each gallery within those repeated looking files. It's just the fonts that seem to be repeating so far as I can see.

I haven't tested my theory on weather or not it's due to multiple fonts in one link from Google or not. I believe it is, but we'll see. We don't seem to have a way to alter that link we added which may be needed to fix this issue, not sure. I just know there's something not quite right with the Fonts setup. Thanks for checking on this for me too!

You bring up another point that might become an issue if adding new files to our directories overwrites them. I know we've been asking for something on that line so that we don't have to keep renaming a file when we upload a replacement, and then delete the old one etc. (I tend to just delete the old one first lol, saves time). Anyways, with things like the components, when we drag them in we drag various files, and directories along with them which we cannot see to find out if there are any conflicts ahead of time so they could overwrite something we really need and have edited extensively. I'll be posting more on this in the Ideas forum I think.

Yeah I looked again and your right the scripts are not being dup'ed. I tried the thought that dragging and dropping would cause an issue but I don't seem to be getting that to be a problem but I can image that if font call is slightly different that it then like actually cause something similar to happen.

Saj

Just bumping this thread up because this is still an issue and I don't want it to get lost in the shuffle. :P