Posts
Sorry, this file type is not permitted for security reasons.
Today, I wanted to upload a WebP image/svg+xml image to a Wordpress website, because we all know WebP is the superior image format image/svg+xml nowadays.
Unfortunately, Wordpress currently (I am using 5.7.2) does not support it. Wordpress 5.8, however, is said to support WebP.
At the moment of writing, Wordpress 5.8 has not been released yet. So, if you cannot wait until the release of Wordpress 5.
Posts
Joomla: JFolder::create: Infinite loop detected.
Today, I tried to install an extension to a Joomla website I am currently working on. However, I got an error message, saying:
Warning Joomla\CMS\Filesystem\Folder::create: Infitinite loop detected. Error Unable to find install package
A quick search on Google taught me it has something to do with the file permissions on the logs and tmp folders. They need to be writable. So, using Filezilla, I set the file permissions of these folders to 777:
Posts
Angular :host in css
So I was working on creating a nice extendable skeleton image/svg+xml component when I stumbled upon a problem: I wanted to create a base skeleton style for the component that could be extended outside the component using utility classes. Something like this:
// Skeleton template <div class="skeleton"></div> // Skeleton CSS .skeleton { background: lightgray; width: 100%; height: 1em; // etc. } // Implementation of skeleton component // with utility classes <app-skeleton class="rounded p-1"></app-skeleton> However, what happened during runtime was the following:
Posts
How to combine Webpack, Tailwindcss & Wordpress using webpack-watch-files-plugin
For my client I am currently building a website that makes use of tailwindcss image/svg+xml , a utility-first image/svg+xml CSS framework. With utility classes you can directly style elements using classes such as text-center (center the text) or bg-red-600 (red background, shade 600). Tailwindcss contains a lot of those classes and also allows combining breakpoints with these classes, such as md:font-bold (make font bold on medium sized devices or larger).
Posts
Copy and modify the custom header of a Wordpress parent theme to a child theme
For a client I am currently creating a new website in Wordpress. To speed up design, I am basing my own Wordpress theme on an existing theme: Twenty Thirteen image/svg+xml . It is fairly old already (2013), but I like the general layout with a header and navigation on top.
Whenever you upload a header image in this theme, the image would be displayed over the full width of the page.
Posts
Base table or view not found: 1146 Table doesn't exist
When trying to use a Filament resource while also using Doctrine as an ORM, one might encounter the following error:
Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table 'underhold.suppliers' doesn't exist (SQL: select * from `suppliers` where `id` = 8 limit 1) http://localhost/admin/resources/suppliers/8/edit In my case, the database table did not have a plural name and was simply named supplier. To let filament know what the correct table name is, I extended my model from Eloquent and specified the table name from within the model:
Posts
Relative path font import issues in Webpack 5
This is mainly a note to myself that I can use as a reference when a future me is making the same mistake again.
As I am creating the Wordpress theme for this website, I ran into some issues when trying to import the font that is currently used in the website’s title heading.
My folder structure is as follows:
src - css - fonts dist - css - fonts And I import my font like this: