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 | |
//* remove the first slash to toggle the enabled code | |
$time = microtime( true ); | |
/*/ | |
$time = microtime(); | |
/**/ | |
// thanks @lamemind |
<?PHP | |
/* | |
* Sort Next/Previous Post Link Buttons Alphabetically | |
*/ | |
function filter_next_post_sort($sort) { | |
if (get_post_type($post) == 'portfolio_page') { | |
$sort = "ORDER BY p.post_title ASC LIMIT 1"; | |
} | |
else{ | |
$sort = "ORDER BY p.post_date ASC LIMIT 1"; |