Skip to content

Rename Sidebar „Add New“ Label

In the Total theme i.e. for the portfolio or staff custom post types, the menu labels are not properly translated. This is how to fix this: add_filter('register_post_type_args', function($args, $post_type) { if ($post_type === 'portfolio') { $args['labels']['add_new'] = 'Neu'; $args['labels']['add_new_item'] =…

Mehr Lesen

Create WordPress user with PHPMyAdmin

Just change the according datafields in the following query to create the new user: INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES ('your username', MD5('your password'), 'your firstname & your lastname', 'your email', '0'); The new user now needs…

Mehr Lesen

Total Theme: Overwrite Menu Items by class

Better approach //THEME - MEGAMENU - ICONBOX function add_nav_description( $item_output, $item, $depth, $args ) { $menu_name = 'MAIN'; //print_r($item); if ( !empty( $item->description ) && $menu_name == $args->menu->name ) { $icon_id = get_post_meta( $item->ID, '_menu_item_totaltheme_icon', true ); $icon_id = str_replace('id_',…

Mehr Lesen

Forminator preloader

You need to wrap the form shortcode in a form-wrap shortcode to make it work. //FORMINATOR PRELOADER - give form class form-wrap add_action( 'wp_footer', function() { global $post; if ( ! $post instanceof WP_Post || ! has_shortcode( $post->post_content, 'forminator_form' )…

Mehr Lesen

WOOCOMMERCE PRODUCT CAT TREE Shortcode

//PRODUCT CAT TREE function woo_cards_product_filter_shortcode( $atts ) { if ( ! function_exists( 'totalthemecore_call_non_static' ) ) { return; } // Load AJAX filter scripts totalthemecore_call_non_static( 'Vcex\Ajax', 'enqueue_scripts' ); // Get target grid ID from shortcode attribute $target = isset( $atts['target'] )…

Mehr Lesen

Forminator CSS Material design with great upload field

Upload field not shown in screenshot /*---------------------------*/ /*FORM .forminator-textarea */ .forminator-input { border-top: 0; border-right: 0; } /*FORMINATOR SUBMIT BUTTON RIGHT ARROW .forminator-button-submit { display: flex; align-items: center; } .forminator-button-submit:after { content: "\e914"; color: var(--wpex-btn-color, var(--wpex-on-accent)); font-size: 40px; padding-left: 10px;…

Mehr Lesen

CSS Radial

/*RADIAL url(https://grainy-gradients.vercel.app/noise.svg)*/ .radial .owl-prev .wpex-carousel__arrow-icon:before, .radial .wpex-carousel__arrow--prev:before, .radial .owl-next .wpex-carousel__arrow-icon:before, .radial .wpex-carousel__arrow--next:before { color: var(--wpex-accent-on) !important; } .radial { /*background: radial-gradient(at 0% 45%, #5D265D, #180E23);*/ background-color: hsl(278, 49%, 10%); background: radial-gradient(circle farthest-side at left center, hsl(297, 43%, 27%) 0%, hsl(278,…

Mehr Lesen

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
An den Anfang scrollen