Just a single element menu button that doesn't look like a burger
A Pen by Richie Arnold on CodePen.
NWS = { | |
$inputForm : {}, | |
offset: 0, | |
FormLength : 0, | |
FormLengthNew : 0, | |
char: ' ', | |
ku: function(selector, char = ' '){ | |
NWS.$inputForm = $(selector); |
<?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']); |
mysql -u username -p database_name < file.sql |
<?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 | |
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 ); | |
} |
jQuery(document).ready(function(){ | |
//set up the vars | |
var eCat = 'contact', | |
eAct = '', | |
eLabel = window.location.pathname; | |
//target href attributes that begin tel: | |
jQuery(document).on('click','[href^="tel:"]', function(e) { | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
##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 |