Skip to content

TUrn Toggle bar into contact float

/*CONTACT FLOAT TOGGLE BAR*/ #toggle-bar-wrap { position: fixed; background-color: #000000b0; inset-inline: unset; inset-block-start: unset; box-shadow: unset; padding: 25px; border-radius: 15px; overflow: visible; max-width: 150px; right: 25px; bottom: 90px; } #toggle-bar-wrap:after { /*content: ''; position: absolute; bottom: 0; right: 20px; width:…

Mehr Lesen

Placeholder text colors

/*SEARCH PLACEHOLDER*/ #mobile-menu-search-input::-webkit-input-placeholder { color: #cacaca; } #mobile-menu-search-input:-moz-placeholder { color: #cacaca; } #mobile-menu-search-input::-moz-placeholder { color: #cacaca; } #mobile-menu-search-input:-ms-input-placeholder { color: #cacaca; } #mobile-menu-search-input::placeholder { color: #cacaca; }

Mehr Lesen

Total Theme Fixes

Problem: Stretched WPBakery Rows are wider than regular rows. This is a very annoying anomaly in the WPBakery Pagebuilder. The way it handles column gaps is like they add 15px on all sides. For stretched rows it is calculated differently,…

Mehr Lesen

Change User Role from PHPMYADMIN

To change a WordPress user role in phpMyAdmin, follow these steps: 1. Access phpMyAdmin: Log in to your hosting control panel (like cPanel) and open phpMyAdmin. Select your WordPress database from the left-hand menu.  2. Locate the user: Go to…

Mehr Lesen

Show all image size urls for given attachment_id

$metadata = wp_get_attachment_metadata( $thumbnail_id ); $base_url = wp_upload_dir()['baseurl']; if ( ! empty( $metadata['sizes'] ) ) { foreach ( $metadata['sizes'] as $size => $data ) { $url = $base_url . '/' . $data['file']; echo "Size: $size → URL: $url<br>"; } }

Mehr Lesen

Editing WITH vi editor

To edit /etc/yum.conf with vi, run: sudo vi /etc/yum.conf Press i to enter insert mode and make changes. Press Esc, then type :wq and press Enter to save and exit. To exit without saving, use :q!.

Mehr Lesen

Simple Plus („+“) Shortcode

function plus_func($atts) { extract( shortcode_atts( array( 'symbol' => '+++', ), $atts ) ); $return = '<span class="symbol">'.$symbol.'</span>'; return $return; } add_shortcode('plus','plus_func');

Mehr Lesen

Total Theme: Add Templates to submenu Items

Add the class "megamenu-template-1" to the submenu item to replace its content. Add this code to the functions.php // Override the menu item with the 'megamenu-template-1' class with a dynamic template add_filter( 'walker_nav_menu_start_el', function( $output, $item, $depth, $args ) {…

Mehr Lesen
An den Anfang scrollen