Useful snippets for working with templates in WordPress
There is a couple of pieces of code snippets which I find useful when working with templates inside WordPress. Here is a couple I use on a regular basis
Front end developer
There is a couple of pieces of code snippets which I find useful when working with templates inside WordPress. Here is a couple I use on a regular basis
By default Laravel when logging a user into a website the session time is set to 120 minutes. They may be instances where you need this increased. As with most things in Laravel Its straight forward to do.
Using the command line there are optimisation you can do with images rather than using a photo editing program to perform some basic image editing. The code below is what I tend to use more often. For all the code below its assuming Debian based system like Ubuntu.
Now that I tend to use TailwindCss for most of my projects I’ve noticed that I don’t really use Sass anymore. I was and still a huge fan of Sass/Scss and I still do use it on legacy projects. When I first started using Sass, I used to use loads of the features sass offers such as writing functions to build grids, convert px to rems and create colour palettes. But now CSS is getting increased features this isn’t the case much anymore.
I host/look after several different websites. Over the years I’ve used several different hosting companies. I want to run through what my current site setup which I’m using to manage the site I look after.