This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ | |
?> |