Please disable your right-click prevention plugin if you want some assistance.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
In fact disable all of your plugins to explore whether any could be responsible.
Please follow these instructions………..
1.checkout your header file of your site in which this code was written.and check for syntax errors.It means programmer has written this html code in your php code without using proper syntax.
<?php
$pageId="get page id as you are doing right now";
echo '<a href="//awesomelysquishyart.com/?page_id='.$pageId.'/">← Return To Shop</a>';
//or for test use this as it is.....
echo '<a href="//awesomelysquishyart.com/?page_id=1649/">← Return To Shop</a>';
?>
2. check your plugins one by one by deactivate and activate one by one.
I’d wager even money that you have a line of code in your theme or a plugin that is hooking into an action or filter that is using echo
to print that link rather than return
ing it.
If you’ve added your own code in functions.php or elsewhere then check through that to make sure that any add_action or add_filter functions end with return
rather than echo
Hi, I’ve disabled the right-click plugin. I’ve tried disabling other plugins to no avail. The problem still occurs.
Edit: I looked at a line of code related to “Return to Shop” in my website, and that seems to have stopped the problem. Thanks!
-
This reply was modified 6 years, 7 months ago by ico00111.