Header Ads

Parse error: syntax error, unexpected (T_STRING) In WordPress : How I Solved It

Recently, a customer asked for I add a woocommerce slider to her web based business webpage. I introduced the free woocommerce item slider module however subsequent to embeddings it's shortcode in a WordPress subject document, the site ended up unavailable.

website architecture wordpress parse sentence structure mistake

At whatever point I take a stab at getting to any of the pages of the site, I get the mistake beneath:

Parse blunder: linguistic structure mistake, sudden 'Component' (T_STRING) in/home4/wac2pi0abqbi/public_html/wp-content/subjects/netdivoflexchild/index.php on line 2

In the wake of googling it, I found that the mistake was tossed in light of the utilization of " rather than ' in the shortcode beneath:

<?php resound do_shortcode("[wpb-highlight item title="Feature Products"]"); ?>

The mistake was settled by utilizing the shortcode underneath, rather than the one above.

<?php reverberate do_shortcode("[wpb-most recent item title='Feature Products']"); ?>

Along these lines, on the off chance that you experience comparable mistake, take a stab at utilizing ' rather than " in your code.

We love sharing:

No comments

Powered by Blogger.