Skip to content

Instantly share code, notes, and snippets.

View gbissland's full-sized avatar

Gareth Bissland gbissland

View GitHub Profile
@TwisterMc
TwisterMc / bb-search.php
Last active July 22, 2024 19:28
Beaver Builder - Add Search to Mobile
<?php
/**
* Add Search Box to Mobile
* Adds a search box to mobile, below the header.
* To move it above the header, change fl_after_header to fl_before_header
*/
function bbMenuPolish_addMobileSearch(){
if ( wp_is_mobile() ) {
get_search_form();
}
@TwisterMc
TwisterMc / beaver-builder-logo.php
Last active June 11, 2020 15:19
Customize the WordPress login screen with the logo uploaded to Beaver Builder
<?php
/**
* Add Beaver Builder logo to login screen.
*
* @action login_enqueue_scripts
*/
function nerd_login_logo() {
$logo_image = get_theme_mod( 'fl-logo-image-retina' );
@lukecav
lukecav / functions.php
Last active August 22, 2025 11:56 — forked from eteubert/wordpress-passwort-reset-unmultisite.php
WordPress Multisite: Password Reset on a Subsite.
/**
* Password reset on sub site (1 of 4)
* Replace login page "Lost Password?" urls.
*
* @param string $lostpassword_url The URL for retrieving a lost password.
* @param string $redirect The path to redirect to.
*
* @return string
*
* @since 1.0.0
@spivurno
spivurno / gp-unique-id-exclude-from-gravity-pdf.php
Created March 23, 2017 13:36
Gravity Perks // GP Unique ID // Exclude Unique ID Fields from Gravity PDF
<?php
/**
* Gravity Perks // GP Unique ID // Exclude Unique ID Fields from Gravity PDF
* http://gravityperks.com
*/
add_filter( 'gform_form_post_get_meta', function( $form ) {
foreach( $form['fields'] as &$field ) {
if( $field->get_input_type() == 'uid' ) {
$field->cssClass = 'exclude';
}
@iambrianreich
iambrianreich / google-reviews.php
Last active November 12, 2021 21:02
Use the Google Places API to render a Google My Business reviews badge on a WordPress site using shortcodes.
<?php /** @noinspection SpellCheckingInspection */
/**
* This file contains the WordPress code for rendering a Google Reviews badge.
*
* Usage:
*
* 1. Create a Google API Console account if you have not already done so.
* 2. Register for the Google Places API.
* 3. Create an API key.
* 4. Ensure that the API key can be used from wherever this script will execute
@spivurno
spivurno / gw-gravity-forms-cache-buster.php
Last active June 8, 2021 19:09
Gravity Wiz // Gravity Forms // Cache Buster
<?php
/**
* Gravity Wiz // Gravity Forms // Cache Buster
*
* Bypass your website cache when loading a Gravity Forms form.
*
* @version 0.2
* @author David Smith <[email protected]>
* @license GPL-2.0+
* @link http://gravitywiz.com/
@carlosonweb
carlosonweb / search.php
Last active October 2, 2019 11:26
Custom Search Results Page for Beaver Builder Child Theme
/**
*
* BB Theme Search Results Page with no sidebars.
* I added as well the ID = "bb-custom-search-result" so you can apply custom CSS to it.
*
* Try the CSS below, for example, to remove the right border and increase the width of the search results content.
*
* @media (min-width: 992px){
* #bb-custom-search-result{
* border: none;
@fastlinemedia
fastlinemedia / fl_builder_icon_sets.php
Created July 24, 2017 23:01
Using the fl_builder_icon_sets filter to add custom icon fonts to Beaver Builder
function my_custom_icons( $sets ) {
$path = get_stylesheet_directory() . '/my-custom-icons/';
$url = get_stylesheet_directory_uri() . '/my-custom-icons/';
$data = json_decode( file_get_contents( $path . 'selection.json' ) );
$icons = array();
foreach ( $data->icons as $icon ) {
$prefs = $data->preferences->fontPref;
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 5, 2025 16:35 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@neilgee
neilgee / bb.css
Last active May 29, 2018 22:25
Beaver Builder CSS Snippets
/* Content Slider
* Set Opacity Bg on text 100% wide to overlay image - then position text with fl-slide-title and fl-slide-text
---------------------------------------------------------------------------------------------------- */
@media (min-width:768px) {
.hero-slider-row .fl-slide-2 .fl-slide-title,
.hero-slider-row .fl-slide-2 .fl-slide-text {
width: 65%;
margin: 0 auto !important;
}