Speedy Environment Setup for Web Development - Docker(Laradock)
Prerequisite
-System: Ubuntu 16.04
-install docker
-[install docker-compose](https://docs.docker.com/compose/install/)
-clone laradock
Config Laradock
Baidu Tongji - Trackevent
How to setup trackevent through JS in Baidu Event Tracking, a working guideline.
Setup JS-API
<script>
var _hmt
Post Pagination with Page Number- WordPress Theme Development
Replace the default Old-New Pagination with Numbered Pagination
Code
<?php
// Do not include the opening php code
function numeric_
Inject Tracking Code with a Plugin in WordPress
Plugin
My Custom Functions
Simply put, the code injected with the plugin will be appended to functions.php
Code
// Below
WeChat QR Code Toggler
QR Code (img) pop out when hover an (WeChat) icon
HTML
<div class="container">
<a
SSH Failure
Timeout
* Try another SSH client
* Remove key in the Known_Hosts file
Reference
Async Load WordPress Post
Reference
Load Infinite AJAX Scroll
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.
Local WordPress Development Environment with Docker
MySQL
Run MySQL container
docker run --name wordpressdb -d mysql:5.7
docker run --name wordpressdb -e MYSQL_ROOT_PASSWORD=
WordPress Theme Customiser
Reference
Customiser Object
Four main types
Panels
Containers for sections
Sections
UI containers
Settings
Accociate UI elements(controls) with settings