Force WPForms to use modern markup

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/styling-your-forms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_disabled’, ‘__return_false’ );Continue reading

WPForms Enable Modern Markup Settings

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/how-to-add-a-background-image-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_admin_settings_modern_markup_register_field_is_hidden’, ‘__return_false’ );Continue reading

Adding a Background Image to Your Forms

/* Adding a background image to your forms. Original doc link: https://wpforms.com/docs/how-to-add-a-background-image-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpf-custom-background { background-image: url(/path/wpforms-backdrop.png) !important; padding: 15px 35px !important; /*Padding is optional, but improves appearance when using a background image in your…Continue reading

Decrease the retention period to one week for the Action Scheduler

/* Decrease the retention period to one week for the Action Scheduler Original doc link: https://wpforms.com/docs/how-to-troubleshoot-action-scheduler-issues-in-wpforms/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function custom_as_retention_period() { return WEEK_IN_SECONDS; } add_filter( ‘action_scheduler_retention_period’, ‘custom_as_retention_period’ );Continue reading

How to Add Custom Code Snippets in WordPress

/* Modify the login URL to redirect to a custom login page. Original doc link: https://wpforms.com/how-to-add-custom-code-snippets-in-wordpress/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ .wpforms-container input[type=radio] { -webkit-appearance: radio !important; -moz-appearance: radio !important; appearance: radio !important; } .wpforms-container input[type=checkbox] { -webkit-appearance: checkbox…Continue reading

Floating Social Media Icons

// Define social media links $facebook_link = ‘https://facebook.com/yourprofile’; $twitter_link = ‘https://twitter.com/yourprofile’; $instagram_link = ‘https://instagram.com/yourprofile’; $linkedin_link = ‘https://linkedin.com/in/yourprofile’; echo ‘ ‘;Continue reading

“New” Badge for Recent Posts

add_filter( ‘the_title’, function ( $title, $id ) { if ( ! is_admin() && is_single( $id ) ) { $number_of_days = 7; $post_date = get_the_date( ‘U’, $id ); $current_date = current_time( ‘timestamp’ ); $date_diff = $current_date – $post_date; if ( $date_diff…Continue reading

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