This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Anwendungsbeispiel: | |
| [nxticon id=""] | |
| -> erzeugt ein E-Mail-Icon | |
| [nxticon id="" size="50px"] | |
| -> erzeugt das E-Mail-Icon mit Schriftgröße 50px | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "shorty": { | |
| "prefix": "shorty", | |
| "body": [ | |
| "function ${2:function_name}(\\$atts, \\$content = null) {", | |
| "\t\\$a = shortcode_atts([", | |
| "\t\t'title'\t=> 'My Title',", | |
| "\t\t'class'\t=> 'myClass'", | |
| "\t], \\$atts);", | |
| "\t\\$return_string = '';", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Global event listener that can register a click on any event, but in our case, we need it to listen to ".fg_close_button" | |
| document.addEventListener('click', function (event) { | |
| // console.log(event); | |
| if (!event.target.matches('.fg_close_button')) return; | |
| const message_container = event.target.closest(".woocommerce-message"); | |
| removeFadeOut(message_container, 2000); | |
| }, false); | |
| // Function to fade out and remove an element - credit goes to alvarodms - https://stackoverflow.com/questions/33424138/how-to-remove-a-div-with-fade-out-effect-in-javascript | |
| function removeFadeOut( el, speed ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this function returns the string $text shortened to the number of words defined in the second attribute $length. It does not break words. | |
| function nxt_truncate($text, $length = 30, $more = '...', $striptags = false) { | |
| if ($striptags) | |
| return force_balance_tags(html_entity_decode(wp_trim_words((wpautop($text)), $length, $more))); | |
| else | |
| return force_balance_tags(html_entity_decode(wp_trim_words(htmlentities(wpautop($text)), $length, $more))); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* #region Fix Divi Comments */ | |
| .commentlist .comment-body { | |
| padding-right: 0; | |
| } | |
| .commentlist .comment-body .comment_avatar { | |
| top: 0; | |
| } | |
| .commentlist .comment-body .comment_avatar img { | |
| border-radius: 50%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Remove Contact Form 7 stylesheet and javascript from most pages | |
| function nxt_remove_cf7() { | |
| // change the id in the following line to match the page where you want to include the Contact Form 7 styles & scripts; use [1, 123, 456] if you want to do so for several pages / posts. | |
| if(!is_page(382)) { | |
| add_filter( 'wpcf7_load_js', '__return_false' ); | |
| add_filter( 'wpcf7_load_css', '__return_false' ); | |
| } | |
| } | |
| add_action('template_redirect', 'nxt_remove_cf7'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Folgenden Code unter übliche wp-config-.php-Befehle einfügen: (Auf All-Inkl angewandt - andere Host-Daten müssten dementsprechend angepasst werden...) | |
| define( 'SMTP_USER', 'm05f2ew1' ); // Postfach-Benutzer | |
| define( 'SMTP_PASS', 't3stpwd' ); // Postfach-Passwort | |
| define( 'SMTP_HOST', 'w01c1234.kasserver.com' ); // Postein- und Ausgangsserver | |
| define( 'SMTP_FROM', 'mail@example.com' ); // Gewünschte E-Mail-Adresse zum Versenden | |
| define( 'SMTP_NAME', 'Example Website' ); // Webseiten-Name | |
| define( 'SMTP_PORT', '465' ); // SMTP-Port - häufig 465 oder 587 (auch 25, aber unsicher) | |
| define( 'SMTP_SECURE', 'ssl' ); // Verschlüsselungstyp (auch tls möglich) | |
| define( 'SMTP_AUTH', true ); // SMTP-Authentifikation |