T_string eror

SAHAND - Jul 24, 2019 at 01:22 PM
 Blocked Profile - Jul 24, 2019 at 06:16 PM
excuseme i have a problem whit this cod:

<link rel='preload' href="https://www.sahandveisy.com/wp-content/themes/betheme/fonts/persian-fonts/fonts/Rezvan.woff" as="font" type="font/woff" crossorigin>

i tried to add this cod to header.php of my site but i recived t_string error
how can resolve this problem?
thank you

1 response

Blocked Profile
Jul 24, 2019 at 03:19 PM
Well the error code should tell you what line it is on. Check the previous line for a line terminator!! Besides that, have you written a php page before without issues?
i,don,t know here noting writen about what line

this is his picture:


just error say syntax eror , unexpected t_string

no i haven,t eror before it about other php codes like yoest seo breadcrump,s
Blocked Profile
Jul 24, 2019 at 05:11 PM
It looks as though your PHP isnt PHP.

PHP looks like this:

<?php echo '<p>Hello World</p>'; ?>

SO, if you have not written a hello world that successfully runs, then I would hold of on a header insert, or an include at this point. You are still working on the protocol!
excuseme i can,t uderestand your latest distence my english speaking not very good. what you say about
if it isn,t php i must where copy here?
Blocked Profile
Jul 24, 2019 at 06:16 PM
<?php echo '<link rel=''preload'' href=""https://www.sahandveisy.com/wp-content/themes/betheme/fonts/persian-fonts/fonts/Rezvan.woff"" as=""font"" type=""font/woff"" crossorigin> '; ?>