Skip to content

Instantly share code, notes, and snippets.

@webdevs-pro
webdevs-pro / index.php
Created February 1, 2020 22:36
Script to autoheight for acf wysiwyg and textarea editor
<?php
// SCRIPT TO AUTOHEIGHT FOR ACF WYSIWYG AND TEXTAREA EDITOR
// add class `autosize` to field to work
class ACFAutosize {
public function __construct() {
// echo javascript
add_action("acf/input/admin_footer", array($this, "echoJs"));
add_action("acf/input/admin_head", array($this, "echoCss"));
}
public function echoJs() {
@noellesteegs
noellesteegs / cf7-radio-check.css
Created April 21, 2020 14:42
Replace Contact Form 7's checkboxes and radio buttons with Divi's icon font
.wpcf7-checkbox .wpcf7-list-item input[type=checkbox],
.wpcf7-radio .wpcf7-list-item input[type=radio] {
visibility: hidden;
margin: 0;
width: 0!important;
}
input[type=checkbox] + .wpcf7-list-item-label,
input[type=radio] + .wpcf7-list-item-label {
font-size: initial;
font-weight: initial;
<?php
/**
* WordPress pagination with consecutive page numbers, arrows, and an ellipses
* Style rules tested with Elementor on the Twenty-Twenty theme. YMMV.
* Example:
* « Previous 1 2 3 4 … 436 Next »
*
* PHP Code Source: https://wordpress.stackexchange.com/a/327711
*/
?>