OceanWP v4.0 loses Google Fonts

Check this! All my OceanWP websites lost their default font and fell back to something Roman, so everything looked ugly! Basically all websites using OceanWP did no longer load their Google fonts after the update to version 4.0.

Solution: I had to manually enable the fonts again! How?
Go to WP Dashboard > Appearance > Customizer > Typography > Google Font Settings and enable Google Fonts – hit “publish” and done!

Looks like someone at OceanWP forgot to check backwards compatibility…

Have a nice day!

KB5043145 update breaks USB

DO NOT INSTALL THAT UPDATE!
(updated 12/10/2024 see at bottom of article)

At least on two of my computers, it completely disabled the USB ports, leaving me without mouse, keyboard, bluetooth and any way of giving any input to the computer to do anything.
Luckily I had Google Remote Desktop installed previously so I could take over the screen and fix the issue.

Not everyone, but others do have the same issue, see:
https://techcommunity.microsoft.com/t5/windows-insider-program/major-problem-with-version-23h2-for-x64-based-systems-kb5043145/m-p/4256541
I also posted my issue here:
https://www.elevenforum.com/t/kb5043145-windows-11-cumulative-update-preview-build-22621-4249-22h2-and-22631-4249-23h2-sept-26.28865/

So what happened:

Continue reading KB5043145 update breaks USB

How to change background-image opacity in CSS without affecting the text

Thank you so much for your quick solution… coder-coder.com

copy-paste

When building a website, you may often want to put a background image on an HTML <div> that also contains text or other content.

And to make the text stand out, you want to change the opacity of that background image in CSS so that it’s semi-transparent. But you’ve tried, and you can’t change the opacity of the background image without also affecting the text or other child elements!

What can you do? Not to worry– this article will give you some practical solutions to controlling your background image opacity.

So, first, the bad news…

Continue reading How to change background-image opacity in CSS without affecting the text

Access Windows Share without a password

Older laptop, simple user to logon without any password; Simply click to login and use the computer.

Now, if you want to access a share on that computer, using that same user, and gave the correct rights to be able to access it, it will not work… This was my solution from 2011, which still worked today!
Start gpedit.msc and find and disable this setting:

Happy sharing!
Have a nice day…

OceanWP Header background image black

Did you try to control this with a function?
And did it stop working recently and is now only showing a blacked out area?
Did you use the hook ocean_page_header_background_image and the function as posted in the OceanWP docs?

Well… Just change your script to give back the image ID instead of the URL:

if ( is_singular( 'post' ) ) {
  // $bg_img = get_stylesheet_directory_uri() . '/img/my-image.jpg';
  $bg_img = 1394;
}

You’re welcome.
Have a nice day!

PS.
Also posted to support hoping maybe OceanWP can fix this, so we can use the image filename/URL again?

PHP8 and function list() = each()

Time to write something about PHP again. With PHP 7.2, the function each() is deprecated. The documentation says: “Warning This function has been DEPRECATED as of PHP 7.2.0. Relying on this function is highly discouraged.“.
If you ignored this warning before, in PHP8 you will now get the following error: Fatal error: Uncaught Error: Call to undefined function each() in /path/file.php:line
So, what do you do when you find this in your old code or in some library that you use, but is not being updated anymore? Stackoverflow to the rescue…

Continue reading PHP8 and function list() = each()