FAQ Accordion

$faqs = [ [ ‘question’ => ‘What is your return policy?’, ‘answer’ => ‘Our return policy lasts 30 days. If 30 days have gone by since your purchase, unfortunately, we can’t offer you a refund or exchange.’ ], [ ‘question’…Continue reading

Social Share Buttons

$post_url = urlencode( get_permalink() ); $post_title = urlencode( get_the_title() ); $facebook_url = “https://www.facebook.com/sharer/sharer.php?u=$post_url”; $x_url = “https://twitter.com/intent/tweet?url=$post_url&text=$post_title”; $linkedin_url = “https://www.linkedin.com/shareArticle?mini=true&url=$post_url&title=$post_title”; $social_buttons = ‘ ‘; echo $social_buttons; // Styles for the social sharing buttons. echo ‘ ‘;Continue reading

KI

import nltk from nltk.tokenize import word_tokenize from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense # NLP-Modell erstellen nlp_model = nltk.NaiveBayesClassifier() # Machine-Learning-Modell erstellen ml_model = Sequential() ml_model.add(Dense(64, activation=’relu’, input_shape=(100,))) ml_model.add(Dense(64, activation=’relu’)) ml_model.add(Dense(1, activation=’sigmoid’)) # Kommunikationsschnittstelle erstellen app = Flask(__name__) @app.route(‘/improve_code’,…Continue reading

Using the “Include Form Styling” Setting

/* When using Base styling and multi-column, use this CSS to correct the column layout. Original doc link: https://wpforms.com/docs/how-to-choose-an-include-form-styling-setting/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-field { clear: both !important; }Continue reading

Limiting Options for the Date / Time Field

/** Don’t allow date to be selected after maxDate Original doc link: https://wpforms.com/developers/customize-the-date-time-field-date-options/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_limit_date_picker() { ?>Continue reading

Creating Multi-Column Form Layouts With CSS Classes

/* Multi-column layout with conditional fields Original doc link: https://wpforms.com/docs/how-to-create-multi-column-form-layouts-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-conditional-hide { display: block !important; height: 0 !important; padding: .01px !important; } .wpforms-conditional-hide * { visibility: hidden !important; }Continue reading

WPForms Login Page Redirect

/* Modify the login URL to redirect to a custom login page. Original doc link: https://wpforms.com/how-to-create-a-custom-login-form-for-improved-site-branding/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function sulliesflowers_custom_login_url( $login_url, $redirect, $force_reauth ) { // Change here your login page url $login_url = ‘https://sulliesflowers.com/login/’; if…Continue reading

Custom drag and drop

function enqueue_admin_reorder_scripts() { global $pagenow; // Ensure the script is not loaded on the plugins page if ($pagenow !== ‘plugins.php’) { wp_enqueue_script(‘jquery-ui-sortable’); wp_add_inline_script(‘jquery-ui-sortable’, ‘ jQuery(document).ready(function($) { var $sortableList = $(“#the-list”); var postType = $(“body”).attr(“class”).match(/post-type-([^\s]+)/)[1]; $sortableList.sortable({ update: function(event, ui) { var…Continue reading