When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
<?php | |
/** | |
* Plugin Name: WPMOD | |
* Description: CPT | |
* Version: +100500 | |
*/ | |
/** | |
* | |
* general |
"postcssSorting.config": { | |
"order": [ | |
"custom-properties", | |
{ | |
"type": "at-rule", | |
"name": "mixin" | |
}, | |
"declarations", | |
"at-rules", | |
"rules" |
// ==UserScript== | |
// @name whatsapp-full-screen | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Enable full-screen mode for WhatsApp Web on larger screens | |
// @author tolyandimov | |
// @match https://web.whatsapp.com/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=whatsapp.com | |
// @grant none | |
// ==/UserScript== |
The point to use a slug (semantic URL) besides of improve the SEO of your articles is to prevent that the user, at the creation of for example an article, it uses special characters that aren't allowed in a URL, appropiate the usage etc. What target usage means, is context dependent.
In this article, you'll learn how to slugify a string in PHP properly, including (or not) support (conversion) for cyrilic and special latin characters.
The following function exposes a simple way to convert text into a valid slug: