Skip to content

Add MyAlice Chatbot to WordPress

/* //ADD MYALICE function my_footer_script() { ?> <script> // Put this code snippet inside script tag (function () { var div = document.createElement('div'); div.id = 'icWebChat'; var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true; script.src = 'https://webchat.getalice.ai/index.js'; var…

Mehr Lesen

Add custom field as column for admin table for a custom post type

// Add the custom columns to the book post type: add_filter( 'manage_ausstellung_posts_columns', 'set_custom_edit_ausstellung_columns' ); function set_custom_edit_ausstellung_columns($columns) { //unset( $columns['author'] ); $columns['enym_artist'] = __( 'Künstler', 'enym' ); return $columns; } // Add the data to the custom columns for the book…

Mehr Lesen

Total Theme: Move Badge on top in Headlines

Usually it is below. But i don't like it there. Here is some CSS to fix it:   .vcex-heading-w-badge .vcex-heading-inner { display: flex; flex-direction: column-reverse; } .wpex-badge { width: fit-content; }  

Mehr Lesen

Apple Custom Typography to other font elements in total theme

add_filter( 'wpex_typography_settings', function( $settings ) { if ( isset( $settings['entry_h1'] ) ) { $settings['entry_h1']['target'] = 'h1, .wpex-h1, .vcex-module h1, h1.vcex-heading'; } if ( isset( $settings['entry_h2'] ) ) { $settings['entry_h2']['target'] = 'h2, .wpex-h2, .vcex-module h2, h2.vcex-heading'; } if ( isset( $settings['entry_h3']…

Mehr Lesen

Remove Update Notification for specific plugin

This seems to work only if the plugin is active. but this is ok for me. function remove_update_notification($value) { //unset($value->response[ plugin_basename(__FILE__) ]); //when usin in plugin itself //if( isset( $value->response['facebook-comments-plugin/facebook-comments.php'] ) ) { unset( $value->response['organization-chart/wpdevart_chart.php'] ); //} return $value; }…

Mehr Lesen

Total Theme: use Font definitions for all Elements

add_filter( 'wpex_typography_settings', function( $settings ) { if ( isset( $settings['entry_h1'] ) ) { $settings['entry_h1']['target'] = 'h1, .wpex-h1, .vcex-module h1, h1.vcex-heading'; } if ( isset( $settings['entry_h2'] ) ) { $settings['entry_h2']['target'] = 'h2, .wpex-h2, .vcex-module h2, h2.vcex-heading'; } if ( isset( $settings['entry_h3']…

Mehr Lesen
An den Anfang scrollen