Skip to content

Instantly share code, notes, and snippets.


cannelflow cannelflow

View GitHub Profile
View 1.php
// enqueue styles for child theme
// @
function example_enqueue_styles() {
//enqueue bootstrap.min.css
wp_enqueue_style( 'bootstrap-css', '' );
//enqueue bootstrap.min.js
View testimonial
//this makes a's width:50% and hwight:100%
.testimonial .et-pb-slider-arrows a {
position: absolute;
display: block;
height: 100%;
width: 50%;
top: 0;
z-index: 10;
cannelflow / removedot.php
Created Sep 19, 2017
this code will remove dots after excerpts in divi theme
View removedot.php
if ( ! function_exists( 'truncate_post' ) ) {
function truncate_post( $amount, $echo = true, $post = '', $strip_shortcodes = false ) {
global $shortname;
if ( '' == $post ) global $post;
$post_excerpt = '';
View functions.php
// Theme Support
function mywordstrap_theme_setup(){
// Nav Menus
View content-project.php
//get data from advanced custome field
$project_title = get_field('project_title');
$project_body = get_field('project_body');
<section id="project">
View page-home.php
Template Name: Home Page
get_header(); ?>
Section Hero
View how-to-npm-14
It's fine, of course, to explicitly check for outdated modules,
and then run `npm install` to pull them in.
However, if you want to be a bit more lazy about it, there's a special
npm command that will UPDATE all of your deps to the max version you
allow in your package.json.
Can you guess what command that might be? (`npm help` might help you)
Update all your deps to the latest version possible, and then
View samp.js
type 1
//app.js code
var app1 = require("./Component/app1.js")
//app1.js code
var app = "Hello From app1.js"
module.exports = app;
type 2
//app.js code
var app1 = require("./Component/app1.js")
View day1.js
// Declare second integer, double, and String variables.
var j=12;
var d1 = 4.0;
var s1 = "is the best place to learn and practice coding!"
// Read and save an integer, double, and String to your variables.
var a = i+j;
var b = (d+d1).toFixed(1);
var c = s+s1;
// Print the sum of both integer variables on a new line.
View demo.js
tried like
//update data
"x": function (d) { return xScale(; },
"y": function (d) { return yScale(d.gdp); },
"width": xScale.rangeBand(),
attr("height", 0).
attr("y", h).
You can’t perform that action at this time.