Category: Admin
Sample HubSpot Form Embed Code (copy)
<!–[if lte IE 8] hbspt.forms.create({ sfdcCampaignId: ‘70130000000ep2ZZZ’, portalId: ‘102310’, formId: ‘190ga042-56fc-4897-bed4-86ea519cb3e9’ });Continue reading
Sample HubSpot Form Embed Code
Untitled Snippet
Sticky Call Button Godrej Customer Care 18005714050Continue reading
Privacy checkbox field remains at the top line
html div#om-{{id}} #{{ns}}-field-privacy > label { align-items: flex-start !important; }Continue reading
WordPress Debugging
define( ‘WP_DEBUG’, true ); define( ‘SAVEQUERIES’, true );Continue reading
Changing the Name Attribute of a Hidden Field
/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading
Hiding the Currency Symbol in WPForms Total Field
/** * Hide currency symbol in WPForms. */ add_filter( ‘wpforms_currencies’, function( $currencies ) { $form_data = wpforms()->obj( ‘process’ )->form_data ?? []; if ( empty( $form_data ) ) { $frontend = wpforms()->obj( ‘frontend’ ); if ( ! empty( $frontend->forms ) )…Continue reading
Post Views Count | Post Views Tracking with Shortcode and Admin Column and Elementor Support
/* Description: Enhance your WordPress site with a post view tracking system. This snippet uses a one-hour cookie to avoid inflating counts, offers a get_post_views() function for developers, a [post_views] shortcode for users, and adds a sortable “Views” column to…Continue reading