Just a single element menu button that doesn't look like a burger
A Pen by Richie Arnold on CodePen.
%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 ; |
/** | |
* When developing locally define these constants in your wp-config.php instead to your database. | |
* This saves time when moving your database. | |
*/ | |
if (!defined('WP_SITEURL')) { | |
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']); | |
} | |
if (!defined('WP_HOME')) { | |
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); |
<?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] |
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) { | |
<?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 ); | |
} |
<?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'); |
mysql -u username -p database_name < file.sql |