Skip to content

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

TOTAL THEME Replacement Variables

/** * Add Custom Dynamic Variables. * * @link https://total.wpexplorer.com/docs/snippets/add-custom-dynamic-variables/ * @since 5.6.1 */ add_filter( 'totaltheme/replace_vars/vars', function( $vars ) { // Check if the post has a featured image if (has_post_thumbnail(get_the_ID())) { $class = 'xxx'.get_the_ID(); // Return an empty string…

Mehr Lesen
An den Anfang scrollen