Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
<html> | |
<head> | |
<title>jsonp test</title> | |
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#select_link').click(function(e){ | |
e.preventDefault(); | |
console.log('select_link clicked'); | |
/** | |
* | |
* @author pixeline | |
* @link https://github.com/eddiemachado/bones/issues/90 | |
* | |
*/ | |
/* Remove Width/Height attributes from images, for easier image responsivity. */ | |
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 ); |
/** | |
* Fit caption to the width of any image | |
*/ | |
.captioned-figure { | |
display: table; | |
table-layout: fixed; | |
} | |
.captioned-figure img { | |
margin-bottom: 10px; | |
border: 0; |
Install Package Control for easy package management.
Ctrl+`
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
// Load the http module to create an http server. | |
var http = require('http'); | |
// Create a function to handle every HTTP request | |
function handler(req, res){ | |
var form = ''; | |
if(req.method == "GET"){ | |
<?php | |
// Published under GPL | |
// tutorial here: https://codeable.io/community/how-to-import-json-into-wordpress/ | |
class Developer_Import { | |
public function __construct() { | |
add_action( 'wp_ajax_import_developer', array( $this, 'import_developer' ) ); |