}catch (ex){} showing in header [closed]

You have nested <script> tags in your snippet. Try the following snippet, it’s reformatted for readability: <script id=”mcjs”> try { ! function(c, h, i, m, p) { m = c.createElement(h), p = c.getElementsByTagName(h)[0], m.async = 1, m.src = i, p.parentNode.insertBefore(m, p) }(document, “script”, “https://chimpstatic.com/mcjs-connected/js/users/2095bd42340716fa509260a90/406ca4747992260e47dbadffd.js”); } catch (ex) {} </script>

Signup Form that adds customer to MailChimp, redirects to checkout, and fills in form data

I got help with this, the fix involved two functions in functions.php and one plugin. The functions: // Add to Cart for optin Form add_action( ‘template_redirect’, ‘website_add_to_cart_on_custom_page’); function website_add_to_cart_on_custom_page(){ if( is_page( ‘homepagee’ ) ) { // is a page slug WC()->cart->add_to_cart( 18074 ); // add to cart product with ID } } // Autofill checkout … Read more

How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?

Filter ‘the_content_feed’ or ‘the_excerpt_rss’ and use a thumbnail image of your choice. Sample code, not tested: add_filter( ‘the_content_feed’, ‘wpse_70249_custom_thumb’ ); add_filter( ‘the_excerpt_rss’, ‘wpse_70249_custom_thumb’ ); function wpse_70249_custom_thumb( $content ) { global $post; $thumb_size=”post-thumbnail”; if ( in_category( ‘orange’, $post ) { $thumb_size = array ( 500, 500 ); } if ( in_category( ‘apple’, $post ) { $thumb_size … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)