Skip to content

Accessibility Plugin

function a11y_controls_shortcode() { // Generate unique ID to prevent conflicts $unique_id = uniqid('a11y_'); ob_start(); ?> <div id="<?php echo esc_attr($unique_id); ?>" class="a11y-controls-container"> <div class="a11y-controls"> <button type="button" class="a11y-btn a11y-font-inc" aria-label="Increase Font Size">A+</button> <button type="button" class="a11y-btn a11y-font-dec" aria-label="Decrease Font Size">A-</button> <button type="button" class="a11y-btn…

Mehr Lesen

Add Header WITH PHP

I don't need this anymore but i want it to be backed up. This is fdor the Total theme and uses the dynamic templates functionality. //HEADER: HEADER AFTER TITLE/ BREADCRUMB NOT ON HOME function header_after() { if ( is_singular( 'projekt'…

Mehr Lesen

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