Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
- Make sure your
Local by FlyWheelWordPress install is a custom install
| // Changes Gravity Forms Ajax Spinner (next, back, submit) to a transparent image | |
| // this allows you to target the css and create a pure css spinner like the one used below in the style.css file of this gist. | |
| add_filter( 'gform_ajax_spinner_url', 'spinner_url', 10, 2 ); | |
| function spinner_url( $image_src, $form ) { | |
| return 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; // relative to you theme images folder | |
| } |
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel WordPress install is a custom install| # ***************************************************************************** | |
| # UPDATED VERSION AVAILABLE HERE: | |
| # https://github.com/LeCoupa/awesome-cheatsheets/blob/master/tools/nanobox_cli.sh | |
| # ***************************************************************************** | |
| # ***************************************************************************** | |
| # LOCAL ENVIRONMENT | |
| # ***************************************************************************** |
| <?php | |
| $args = array( | |
| 'post_type' => 'location', | |
| 'posts_per_page' => -1, | |
| 'order' => 'ASC', | |
| 'orderby' => 'title', | |
| 'facetwp' => true, | |
| 'tax_query' => array( | |
| array( | |
| 'taxonomy' => 'advertiser-level', |
| run.config: | |
| engine: ruby | |
| extra_packages: | |
| - git | |
| - nodejs | |
| - nginx | |
| - ImageMagick | |
| - optipng | |
| - jpegoptim | |
| - gifsicle |
| <h1>Testing display of HTML elements</h1> | |
| <h2>This is 2nd level heading</h2> | |
| <p>This is a test paragraph.</p> | |
| <h3>This is 3rd level heading</h3> | |
| <p>This is a test paragraph.</p> | |
| <h4>This is 4th level heading</h4> | |
| <p>This is a test paragraph.</p> | |
| <h5>This is 5th level heading</h5> | |
| <p>This is a test paragraph.</p> |
| <?php | |
| /** | |
| * Plugin Name: Convert ACF PHP to JSON | |
| * Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON. | |
| */ | |
| namespace ConvertAcfPhpToJson; | |
| /** | |
| * Add submenu item under 'Custom Fields' |
| # Installation --- | |
| # 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables. | |
| # 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir) | |
| # 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
| # push everything and initialize GitFTP) | |
| # | |
| # Usage --- | |
| # - On each commit to master branch, it'll push all files to the $FTP_HOST | |
| # - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises | |
| # - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all) |