Skip to content

Instantly share code, notes, and snippets.

/// Gravity Forms OVERRIDES
//// Modify variables
body:has(#gravity_forms_theme_framework-css) .gform-theme--framework.gform-theme--orbital {
--gf-color-danger:#c02b0a;
--gf-color-primary: var(--primary);
/* Button Color and Hover color */
--gf-ctrl-btn-bg-color-primary:var(--primary);
--gf-ctrl-btn-bg-color-hover-primary:var(--primary-medium);
--gf-ctrl-border-color: var(--border-color-light);
/* Input field Radii */
html::before {
content: '';
position: fixed;
top: 0;
right: 0;
background: #000;
color: #fff;
font-size: 14px;
javascript:(function(){var b=document.getElementById('wpadminbar');if(!b)return;var h=b.dataset._hidden==='1',H=document.documentElement,B=document.body;if(!h){b.dataset._hidden='1';b.dataset._bAdm=B.classList.contains('admin-bar')?'1':'0';b.dataset._hAdm=H.classList.contains('admin-bar')?'1':'0';b.style.setProperty('display','none','important');H.style.setProperty('margin-top','0','important');B.style.setProperty('margin-top','0','important');B.classList.remove('admin-bar');H.classList.remove('admin-bar');}else{b.style.removeProperty('display');H.style.removeProperty('margin-top');B.style.removeProperty('margin-top');if(b.dataset._bAdm==='1')B.classList.add('admin-bar');if(b.dataset._hAdm==='1')H.classList.add('admin-bar');b.dataset._hidden='';}})();
<?php
// CHANGE THE NUMBER AT THE END TO THE FORM ID
add_filter( 'gform_pre_render_2', 'populate_posts' );
add_filter( 'gform_pre_validation_2', 'populate_posts' );
add_filter( 'gform_pre_submission_filter_2', 'populate_posts' );
add_filter( 'gform_admin_pre_render_2', 'populate_posts' );
function populate_posts( $form ) {
foreach ( $form['fields'] as &$field ) {
<?php
add_filter( 'wp_speculative_loading_enabled', '__return_false' );
?>
<?php
/* Remove "Rendered with Bricks" Admin Bar entry */
add_action('admin_bar_menu', 'remove_bricks_adminbar_item', 999);
function remove_bricks_adminbar_item($wp_admin_bar) {
$wp_admin_bar->remove_node('editor_mode');
}
?>
<?php
/* Disable Video Upload */
function disable_video_uploads( $mimes ) {
// Video mime types
$video_mimes = array(
'asf' => 'video/x-ms-asf',
'asx' => 'video/x-ns-asx',
'wmv' => 'video/X-ms-wmv',
'wmx' => 'video/x-ms-wmx',
'wm' => 'video/X-ns-wm',
<?php
// Entfernt die Spalte „Automatische Updates“ aus der Plugin-Übersicht
function remove_auto_updates_column($columns) {
unset($columns['auto-updates']);
return $columns;
}
add_filter('manage_plugins_columns', 'remove_auto_updates_column');
?>
/* Scrollbar magic */
/* You first need to target all scrollbars to override the DOM */
::-webkit-scrollbar {
-webkit-appearance: auto;
}
/* Then you can target the :horizontal class on it's own */
::-webkit-scrollbar-thumb:horizontal {
border-radius: 20px;
background-color: rgb(29 76 128);
<?php
/* add css to remove script selector from beaver builder modules */
add_action( 'wp_enqueue_scripts', 'bb_remove_fontselector');
function bb_remove_fontselector() {
echo "
<style>
.fl-font-field-font-wrapper {visibility: hidden;}
</style>
";
}