GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running my static site with a very basic wordpress theme.
It is based on the wordpress service, where somehow my hosting space is part of the wordpress cloud, I get pushed out updates, which I don't like and is stupid but whatever.
I see that whenever someone goes to my site it loads google apis, I think this is from the theme. I am wondering if I can just cut those out of the code without breaking things.
Why does a static page wordpress theme need a google api if not for tracking features? I figure at least.
jmichaelhudson.net is my site.
Ideally yeah I would do it all myself, maybe if I were somehow stronger and more stoic, but I need me site for it to be primarly about the words right now.
Also, the stuff I am writing is about some important stuff you may not find elsewhere, you should consider it.
Am not a wordpress expert, but know wp relies heavily upon php. Some questions for you:
Do you have your wordpress system on your local hard drive, and can you do sftp uploads? Have you any familiarity w/ php scripting? (Or, at least, the capability of learning php via online examples.)
If yes to the above, find the themes folder, and open the script that contains the Google API call. (I assume you are using wp's default settings, so your theme will be the default one.) BACK UP THE FILE, then edit out the offensive code. Upload via sftp, and see if you've done what you intend. Be prepared for some trial-and-error, backtracking, and restoring of backups.
Alternatively, your site is static, and quite simple. You may want to just write your own static html pages, and forget wordpress. If you want help with that, i might be available.
BTW, i like your site. Have borrowed your Orwell quote for my own quote jar. Hope you don't mind.
I see that whenever someone goes to my site it loads google apis, I think this is from the theme. I am wondering if I can just cut those out of the code without breaking things.
It's an API to make use of non-standard fonts. So you can take it out but it may break your presentation.
I can't process, visually, the orange-on-black pages. Much too hard on the eyes.
Yes, that's just my opinion, and what little I read looked interesting, but...
That said, I have to agree that if the site is static, don't use WordPress at all, if you can. Way too much overhead, IMO.
Looking at the source, there's links to fonts.googleapis.com and fonts.gstatic.com. All 3 are in the header section.
This means that they are most likely coded into the (default) page template of that theme. That's where you have to go.
PS: wordpress is total overkill for a simple static site.
Thanks guys this is helpful, I will let you know how it goes.
As for the guy who was turned off by my sites colors, can't please everybody.
I very frequently copy text from a site I find difficult to read into leafpad or something.
The important thing is conveyance of text, and yes I do hope some day fairly soon to step up and do it all myself with raw html, but I have to admit also that wordpress did cut the time of putting up a lot of content quite a bit. Of course, you have to know not to install any of the social media or fancy plugins or you will be the proud member of a bot net.
Thanks guys this is helpful, I will let you know how it goes.
As for the guy who was turned off by my sites colors, can't please everybody.
I very frequently copy text from a site I find difficult to read into leafpad or something.
The important thing is conveyance of text, and yes I do hope some day fairly soon to step up and do it all myself with raw html, but I have to admit also that wordpress did cut the time of putting up a lot of content quite a bit. Of course, you have to know not to install any of the social media or fancy plugins or you will be the proud member of a bot net.
Thanks, Ill leave open for now and report back.
If “The important thing is conveyance of text,” then one should try to please everybody.
My comment wasn’t about being “pleased,” it was that, in my case, the color theme was physically too difficult to read. It wasn’t an opinion...I was advising you of a fact. Thank you for the suggestion for working around the bad design, but I’ll pass.
It is, of course, your site to do with as you wish. Good luck.
I looked through all of the php files I had access to through the normal interface, they must be buried somewhere in other linked files. ctrl-f found no google in header.php. Ill go to the wordpress forums this is not a lq but you guys were helpful.
Ideally, Sean, I would like a dropdown in the upper right where background and text color could be changed to several hundred presets or customized on every single page of the internet.
How hard could that be? Or it is just a browser add on?
What are the most universally accepted text/background colors in your opinion? Maybe I will just like those better myself anyway?
I also wonder though if there is anything more subjective as what text color one wants to read in.
I know I seemed dismissive but I am actually very open to new ideas on this topic.
I looked through all of the php files I had access to through the normal interface, they must be buried somewhere in other linked files. ctrl-f found no google in header.php. Ill go to the wordpress forums this is not a lq but you guys were helpful.
Ideally, Sean, I would like a dropdown in the upper right where background and text color could be changed to several hundred presets or customized on every single page of the internet.
How hard could that be? Or it is just a browser add on?
What are the most universally accepted text/background colors in your opinion? Maybe I will just like those better myself anyway?
I also wonder though if there is anything more subjective as what text color one wants to read in.
I know I seemed dismissive but I am actually very open to new ideas on this topic.
What you suggest about allowing visitors to select colors would be a reasonably complex (because of the "several hundred presets") javascript or server-side scripting to manipulate/change the CSS for a page.
In my opinion, the best colors to use are black on white, although, as you can see here, black on most any pale background (LQ uses tan and a light blue) can work as well. I was recently told by a UX expert that the current trend to "dark mode" in mobile devices was actually much harder on the user's vision. That's my 2 cents.
There are probably considerable discussions available on line.
Looking at the source, there's links to fonts.googleapis.com and fonts.gstatic.com. All 3 are in the header section.
This means that they are most likely coded into the (default) page template of that theme. That's where you have to go.
Quote:
Originally Posted by mikudo
I looked through all of the php files I had access to through the normal interface, they must be buried somewhere in other linked files. ctrl-f found no google in header.php.
header.php sounds good. It probably includes more stuff via if statements or some such. Take a look inside.
Normal interface is a bad way to say the wordpress admin menu which includes a 'theme editor' where you can edit the files.
New information, ctrl+f on the page does not search the code. If you click the code, a txt window pops up that says 'use /re/ syntax for regex search' but whatever I type in there doesn't work. I tried several combinations and nothing would search the code, any ideas what would actually search text here?
But I did manually look over header.php and I did not see any gorgle crap. But I think it does have to be in some of these files. There was a link to this which I found interesting and not alarming, https://gmpg.org
@scasey: I would rather die than spend the rest of my life looking at black text on white background. The light should contain the information, not the absence thereof. A white screen with some black words on it is putting out energy and light to express blank space, which I also find from a general engineering perspective so backwards it makes my eyes twitch just thinking about it. Black to express blankness is what is to me logical and good on the eyes. But it really just has to be darkish, dark greens and blues also look nice.
Imagine if you went back to the green text crt days and told the engineer that you thought the background should be green and omitting the green to make black letters, that is what you are saying is the right way. I thought you would have some interesting pallets to suggest, but to sit here all day like some intern in msword staring at blinding whitespace all day is out of the question.
There are lots of ways to hurt your eyes with dark contrast themes as well, like I have written about extensively also here at LQ, management is always looking for a one size solution for their low budget office, while every single human has slightly different lighting needs, and it is a very personal decision what colors you want to stare at for 8 hours a day. This illustrates problems with an authoritarian and hierarchical economic model that threaten what we know as the 'personal' computer.
Ok I downloaded my site, I have the full vhosts file and so I can search all code. I had to set up stuff I was trying to not have to set up, out of laziness and wanting to focus on content. It is also like learning a specific provider's setup.
I realized that for some reason the theme editor's search feature just doesn't work, maybe with my browser, so it was returning negative hits on searches for strings that were actually there. Nor does it let you search with browser, the code is in a special window that doesn't search, which was all misleading and threw me off.
With my full site I was able to search exactly where you guys said, the wp-content/ folder with
grep -rnw wp-content/ -e 'googleapis' | more
and
grep -rnw wp-content/ -e 'fonts.google' | more
And tada, there were two lines in the twenty-sixteen theme. Now commented out, now no google loads, site not affected. I suspect something might break if I tried to use different theme fonts but who cares about that.
And now everyone else who asks the same question will know just what to do I hope.
And tada, there were two lines in the twenty-sixteen theme. Now commented out, now no google loads, site not affected. I suspect something might break if I tried to use different theme fonts but who cares about that.
Great.
FWIW, I'd actually remove the lines because commented they still get loaded by your clients (the lines, not the fonts) and possibly bots and crawlers too.
About fonts: IMO, one should only use the generic (system independent) font names serif, sans-serif, monospace (there's one or two more I don't remember now).
Anything beyond that - cleverly created font definitions that try to account for every possible use case - is just web designers faffing around.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.