Hubspot Forms Do Not Display
-
Just migrating from Gravity Forms to Hubspot. The code that we paste into WordPress has added code inserted when the page is displayed “defer data-deferred'”1″ and the form does not display,
Here is the code I am pasting in to WordPress from Hubspot,
<!–[if lte IE 8]>
<script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/v2-legacy.js”></script>
<![endif]–>
<script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/v2.js”></script>
<script>
hbspt.forms.create({
portalId: “4060903”,
formId: “877520f3-d34e-4907-8541-e8900017e9xx”
});
</script>However when I inspect the code on the website using chrome developer tools, this is the output
<!–[if lte IE 8]>
<script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/v2-legacy.js”></script>
<![endif]–>
<br />
<script charset=”utf-8″ type=”text/javascript” src=”//js.hsforms.net/forms/v2.js” defer data-deferred=”1″></script>
<br />
<script>hbspt.forms.create({
portalId: “4060903”,
formId: “877520f3-d34e-4907-8541-e8900017e9xx”
});
</script>Using DIVI theme.
Environment info: Report GAIKWRQB follows:
Server Variables
SERVER_SOFTWARE = LiteSpeed
DOCUMENT_ROOT = /home/sdwanexperts/public_html
X-LSCACHE = on
LSWCP_TAG_PREFIX = da2Wordpress Specific Extras
wordpress version = 4.9.4
siteurl = https://www.sd-wan-experts.com
home = https://www.sd-wan-experts.com
home_url = https://www.sd-wan-experts.com
locale = en_US
active theme = SEOMonster Divi Child Theme
active plugins = array (
0 => ‘gravityforms/gravityforms.php’,
1 => ‘404-error-monitor/index.php’,
2 => ‘accesspress-twitter-feed/accesspress-twitter-feed.php’,
3 => ‘akismet/akismet.php’,
4 => ‘creative-clans-embed-script/creative-clans-embed-script.php’,
5 => ‘divi-booster/divi-booster.php’,
6 => ‘divi-builder/divi-builder.php’,
7 => ‘divi_extended_column_layouts/divi_extended_column_layouts.php’,
8 => ‘duplicate-page/duplicatepage.php’,
9 => ’email-address-encoder/email-address-encoder.php’,
10 => ‘flynsarmy-iframe-shortcode/flyniframe.php’,
11 => ‘gravityformscoupons/coupons.php’,
12 => ‘gravityformsmailchimp/mailchimp.php’,
13 => ‘gs-logo-slider/gs-logo.php’,
14 => ‘gtmetrix-for-wordpress/gtmetrix-for-wordpress.php’,
15 => ‘iframe/iframe.php’,
16 => ‘insert-html-snippet/insert-html-snippet.php’,
17 => ‘leadin/leadin.php’,
18 => ‘litespeed-cache/litespeed-cache.php’,
19 => ‘redirection/redirection.php’,
20 => ‘so-css/so-css.php’,
21 => ‘updraftplus/updraftplus.php’,
22 => ‘widget-title-links/widget-title-links.php’,
23 => ‘wordpress-importer/wordpress-importer.php’,
24 => ‘wordpress-seo-premium/wp-seo-premium.php’,
25 => ‘wp-defender/wp-defender.php’,
26 => ‘wp-smushit/wp-smush.php’,
27 => ‘wp-statistics/wp-statistics.php’,
28 => ‘wpmudev-updates/update-notifications.php’,
29 => ‘zopim-live-chat/zopim.php’,
)LSCache Plugin Options
version = 2.0
radio_select = 1
purge_upgrade = true
cache_favicon = true
cache_resources = true
mobileview_enabled = false
mobileview_rules =
login_cookie =
check_advancedcache = true
debug = 0
admin_ips = 127.0.0.1
public_ttl = 604800
front_page_ttl = 604800
feed_ttl = 0
403_ttl = 3600
404_ttl = 3600
500_ttl = 3600
purge_by_post = A.F.H.M.PGS.PGSRP.PT.T
excludes_uri =
excludes_cat =
excludes_tag =
nocache_cookies =
nocache_useragents =
crawler_include_posts = true
crawler_include_pages = true
crawler_include_cats = true
crawler_include_tags = true
crawler_excludes_cpt =
crawler_order_links = date_desc
crawler_usleep = 500
crawler_run_duration = 400
crawler_run_interval = 600
crawler_crawl_interval = 302400
crawler_threads = 3
crawler_load_limit = 1
crawler_domain_ip = 173.199.171.122
crawler_custom_sitemap =
crawler_cron_active = false
debug_cookie = false
collaps_qs = false
timed_urls =
timed_urls_time = 17:30
log_file_size = 30
heartbeat = true
log_filters = false
cache_priv = false
cache_commenter = true
cache_rest = true
cache_page_login = true
debug_level = false
private_ttl = 1800
esi_enabled = false
esi_cached_admbar = true
esi_cached_commform = true
css_minify = true
css_combine = true
css_http2 = true
css_exclude =
js_minify = true
js_combine = false
js_http2 = true
js_exclude =
optimize_ttl = 604800
html_minify = true
cdn = true
cdn_ori = //*sd-wan-experts.com
cdn_exclude = https://www.sd-wan-experts.com/min/a15d4.css
https://www.sd-wan-experts.com/min/8c157.js
https://www.sd-wan-experts.com/wp-content/plugins/gravityforms/js/placeholders.jquery.min.js
https://www.sd-wan-experts.com/min/2cdbf.css
cache_uri_priv =
cache_browser = true
excludes_qs =
optm_qs_rm = true
optm_ggfonts_rm = false
optm_css_async = false
optm_js_defer = true
optm_emoji_rm = false
hash = 9bIIxzax1Fh8lFgBrMOig9tXUTEuQPn7
optm_excludes =
media_img_lazy = true
media_iframe_lazy = false
optm_exclude_jquery = true
cdn_remote_jquery = 0
media_img_lazy_placeholder =
css_combined_priority = false
js_combined_priority = false
media_img_optm_cron_off = false
media_img_webp = true
cache_browser_ttl = 2592000
optm_ggfonts_async = false
media_img_webp_only = false
media_img_exif = false
media_img_webp_lossless = false
use_http_for_https_vary = false
optm_max_size = 1.2
optm_rm_comment = false
cdn_cloudflare = false
cdn_cloudflare_email =
cdn_cloudflare_key =
cdn_cloudflare_name =
cdn_cloudflare_zone =
cache_object = false
cache_object_kind = false
cache_object_host = localhost
cache_object_port = 11211
cache_object_life = 360
cache_object_persistent = true
cache_object_admin = false
cache_object_db_id = 0
cache_object_user =
cache_object_pswd =
instant_click = false
cache_object_transients = true
css_inline_minify = false
js_inline_minify = false
cdn_quic = false
cdn_quic_email =
cdn_quic_key =
cdn_quic_site =
crawler_http2 = true
litespeed-cache-cdn_mapping = array (
0 =>
array (
‘url’ => ‘https://sdwanexperts-cdn-mplsexperts.netdna-ssl.com’,
‘inc_img’ => ‘1’,
‘inc_css’ => ‘1’,
‘inc_js’ => ‘1’,
‘filetype’ => ‘.aac
.css
.eot
.gif
.jpeg
.js
.jpg
.less
.mp3
.mp4
.ogg
.otf
.pdf
.png
.svg
.ttf
.woff’,
),
)/home/sdwanexperts/public_html/.htaccess contents:
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* – [E=Cache-Control:no-autoflush]
RewriteRule min/\w+\.(css|js) – [E=cache-control:no-vary]### marker CACHE RESOURCE start ###
RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600]
### marker CACHE RESOURCE end ###### marker FAVICON start ###
RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
### marker FAVICON end ###### marker BROWSER CACHE start ###
<FilesMatch “\.(pdf|ico|svg|xml|jpg|jpeg|png|gif|webp|ogg|mp4|webm|js|css|woff|woff2|ttf|eot)(\.gz)?$”>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType application/pdf A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType image/vnd.microsoft.icon A2592000
ExpiresByType image/svg+xml A2592000ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/webp A2592000ExpiresByType video/ogg A2592000
ExpiresByType audio/ogg A2592000
ExpiresByType video/mp4 A2592000
ExpiresByType video/webm A2592000ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000ExpiresByType application/x-font-ttf A2592000
ExpiresByType application/x-font-woff A2592000
ExpiresByType application/font-woff A2592000
ExpiresByType application/font-woff2 A2592000
ExpiresByType application/vnd.ms-fontobject A2592000
ExpiresByType font/ttf A2592000
ExpiresByType font/woff A2592000
ExpiresByType font/woff2 A2592000</IfModule>
</FilesMatch>
### marker BROWSER CACHE end ###### marker CORS start ###
<FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font\.css)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
### marker CORS end ###### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} “image/webp”
RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###</IfModule>
## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
# END LSCACHE
# Force SSL
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.sd-wan-experts.com/$1 [R=301,L]#Assist Litespeed to run UpdraftPlus Backup
RewriteRule .* – [E=noabort:1]# Rewrite rules from bottom of this file
RewriteCond %{HTTP_HOST} ^sd\-wan\-experts\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.sd\-wan\-experts\.com$
RewriteRule ^about\-mpls\-experts\/$ “https\:\/\/www\.sd\-wan\-experts\.com\/about\-sd\-wan\-experts\/” [R=301,L]# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
# Code to add Expires to files without them CODE BELOW REMOVED PER LITESPEED CACHE ERROR 4010
#<IfModule mod_expires.c>
# ExpiresActive On
# ExpiresDefault “access plus 1 year”
#</IfModule>
#
#<IfModule mod_headers.c>
# <FilesMatch “\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$”>
# Header set Last-Modified “Mon, 31 Aug 2009 00:00:00 GMT”
# </FilesMatch>
#</IfModule>
# END of come to add Expires to files without them
# BEGIN WP Performance Score Booster Settings## BEGIN Enable GZIP Compression ##
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE image/svg+xml
SetOutputFilter DEFLATE
</IfModule>
## END Enable GZIP Compression #### BEGIN Vary: Accept-Encoding Header ##
<IfModule mod_headers.c>
<FilesMatch “\.(js|css|xml|gz)$”>
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
## END Vary: Accept-Encoding Header #### BEGIN Expires Caching (Leverage Browser Caching) ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 2 week”
ExpiresByType image/jpeg “access 2 week”
ExpiresByType image/gif “access 2 week”
ExpiresByType image/png “access 2 week”
ExpiresByType text/css “access 2 week”
ExpiresByType application/pdf “access 2 week”
ExpiresByType text/x-javascript “access 2 week”
ExpiresByType application/x-shockwave-flash “access 2 week”
ExpiresByType image/x-icon “access 2 week”
ExpiresByType text/html “access plus 0 seconds”
ExpiresDefault “access 2 week”
</IfModule>
## END Expires Caching (Leverage Browser Caching) ### END WP Performance Score Booster Settings
## WP Defender – Prevent information disclosure ##
<FilesMatch “\.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$”>
Order allow,deny
Deny from all
</FilesMatch>
<Files robots.txt>
Allow from all
</Files>
## WP Defender – End ### BEGIN wtfdivi
# END wtfdivi
Redirect 301 /wp-content/uploads/2017/03/Pricing-Paper.pdf https://www.sd-wan-experts.com/sd-wan-mpls-pricing-analysis/The page I need help with: [log in to see the link]
The topic ‘Hubspot Forms Do Not Display’ is closed to new replies.