T_string eror

Closed
SAHAND - Jul 24, 2019 at 01:22 PM
 Blocked Profile - Jul 24, 2019 at 06:16 PM
hello
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
Related:

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?
0
i,don,t know here noting writen about what line

this is his picture:

https://drive.google.com/open?id=1rVYWDBbXMBzuNkMSWDsNdKdis-VIWGVt

just error say syntax eror , unexpected t_string

no i haven,t eror before it about other php codes like yoest seo breadcrump,s
0
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!
0
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?
0
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> '; ?>
0