Skip to content

Total Theme: Fix wenn eine Zeile komisch eingerückt ist

Wenn man bspw. vis PHP nach dem Header eine Zeile mit TItel und Breadcrumb einfügt und diese Zeile irgendwie links und rechts komisch eingerückt ist, dann kann das daran liegen dass sie eine Hintergrundfarbe zugeordnet bekommen hat. Zeilen mit Hintergrundfarben…

Mehr Lesen

Logged In / Logged Out SHortcode

//logged in shortcode function check_user ($params, $content = null){ //check tha the user is logged in if ( is_user_logged_in() ){ //user is logged in so show the content return do_shortcode($content); //enable shortcodes in shortcode } else{ //user is not logged…

Mehr Lesen

Add LasT Edited Column TO CPT

//http://andrewnorcross.com/tutorials/modified-date-display/ add_action ( 'manage_posts_custom_column', 'rkv_heirch_columns', 10, 2 ); add_filter ( 'manage_edit-stellenangebot_columns', 'rkv_page_columns' ); function rkv_heirch_columns( $column, $post_id ) { switch ( $column ) { case 'modified': $m_orig = get_post_field( 'post_modified', $post_id, 'raw' ); $m_stamp = strtotime( $m_orig ); // $modified…

Mehr Lesen

Remove Microsoft AutoUdpdate cause it sucks

Follow these steps to remove the Microsoft AutoUpdate application: Open Finder From the menu bar, select "Go" > "Go to Folder" (or use the keyboard shortcut Command+Shift+G) Enter the following path: /Library/Application Support/Microsoft/ Locate the folder named "MAU" or "MAU2.0" (the…

Mehr Lesen

Better Arrow Icons for the Carousel Modules in Total Theme

/*CAROUSEL ARROWS*/ .wpex-carousel__arrow-icon svg, .wpex-carousel__arrow-icon.wpex-icon, .wpex-carousel__arrow svg /*, .wpex-slider .sp-arrow-inner*/ { display: none; } .wpex-carousel__arrow:where(:not(.theme-button)) { background-color: transparent !important; } .owl-prev .wpex-carousel__arrow-icon:before, .wpex-carousel__arrow--prev:before /*, .wpex-slider .sp-previous-arrow:before*/ { font-family: 'enym' !important; content: "\e909" !important; color: var(--wpex-accent) !important; font-size: 60px; position: relative;…

Mehr Lesen

Change the texts for the comment form

//COMMENT FORM //change title conditionally for a certain post type function enym_comment_title($defaults) { // put your condition here //global $post; //if ( $post && $post->post_type == 'pattern' ) { if( is_singular('post') ) { // is_page('my-page') || $defaults['title_reply'] = 'Haben Sie…

Mehr Lesen

Site URL Shortcode

//=================================================== //SHORTCODE: SITE URL //=================================================== add_shortcode( 'site_url', function( $atts = null, $content = null ) { return site_url(); } );

Mehr Lesen
An den Anfang scrollen