Skip to content

Instantly share code, notes, and snippets.

@jimmi-joensson
jimmi-joensson / theme.json
Created April 7, 2022 05:07 — forked from ryanwelcher/theme.json
When adding theme.json to an existing Classic Theme, these settings will stop the default color and typography controls from being enabled.
{
"$schema": "http://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"layout": {
"contentSize": "750px"
},
"color": {
"background": false,
"custom": false,
@jimmi-joensson
jimmi-joensson / bit_workflow.md
Last active February 19, 2020 12:06
Bit Workflow

Working with Bit

The bit-cli has to be installed and initialized in the project

There are two ways to import and work with Bit components.

  • npm install for just using the component
  • bit import to work and change the component

NPM

First make sure @bit:registry=https://node.bit.dev is added to client/.npmrc. This registers bit's scope to npm.

@jimmi-joensson
jimmi-joensson / .htaccess
Last active January 14, 2019 21:36
.htaccess parts
Options -Indexes
# .htaccess primary domain to web redirect
# this file must be in the (public_html | web ) folder of your hosting account
# make the changes to the file according to the instructions.
<IfModule mod_rewrite.c>
# Do not change this line.
RewriteEngine on
#*************************************
@jimmi-joensson
jimmi-joensson / wp_essential.md
Last active July 1, 2021 08:05
WordPress Essentials

WordPress Essentials

This document has a collection of essential WordPress plugins plus a more advanced WP development setup

Paid Plugins

Advanced Custom Fields Pro - For custom fields

SearchWP - Includes ACF meta data in index + adds search statistic