Just a single element menu button that doesn't look like a burger
A Pen by Richie Arnold on CodePen.
<?php | |
function profiles($action = FALSE, $id = FALSE) { | |
$data = $this->data; | |
//set the file upload path is the method as the admin controler might upload files for different things | |
$this->original_path = realpath(APPPATH . '../uploads/profiles'); | |
$this->thumbs_path = realpath(APPPATH . '../uploads/profiles/thumbs'); | |
$view_content = __FUNCTION__; |
##Put our core files and folders in the cms folder | |
##Put our content files and folders in the content folder | |
|--my_wp_folder | |
| |--index.php | |
| |--wp-config.php | |
| |--wp-wapper-config.php | |
| |--cms | |
| | |--wp-admin | |
| | |--wp-includes |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
<?php | |
class Jetpack { | |
/** | |
* Get $content_width, but with a <s>twist</s> filter. | |
*/ | |
public static function get_content_width() { | |
$content_width = isset( $GLOBALS['content_width'] ) ? $GLOBALS['content_width'] : false; | |
return apply_filters( 'jetpack_content_width', $content_width ); | |
} |
%post__img{ | |
img, .wp-caption{ | |
display: block; | |
max-width:100%; | |
height: auto; | |
overflow: hidden; | |
&.alignleft{ | |
float: left; | |
margin: 0.5em 1.5em 0.5em 0.5em ; |
<?php | |
//filters WordPress the_category_list to return onlt the first category. | |
function first_cat($cats) | |
{ | |
return [$cats[0]]; | |
} | |
add_filter('the_category_list', 'first_cat'); |
<?php | |
/* wp-contact-from-7 */ | |
define ('WPCF7_AUTOP', false ); // set to false to remove <br> tags | |
/* That's all, stop editing! Happy blogging. */ |
<?php | |
// disable default dashboard widgets | |
function disable_default_dashboard_widgets() { | |
global $wp_meta_boxes; | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); // Right Now Widget | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_activity']); // Activity Widget | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Comments Widget | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); // Incoming Links Widget | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); |
NWS = { | |
$inputForm : {}, | |
offset: 0, | |
FormLength : 0, | |
FormLengthNew : 0, | |
char: ' ', | |
ku: function(selector, char = ' '){ | |
NWS.$inputForm = $(selector); |