Building Theme from Scratch
-
Hello,
I’m currently working through Ian Stewart’s WordPress Theme Tutorial and I’m stuck.
I’m currently on Mac OS 10.3.9 … haven’t updated because I would have to update all other software which is too costly … so can’t install MAMP.
I’ve therefore been testing the tutorial straight onto my server (1&1) transfering files via ftp using cyberduck. Then checking them out using Firefox.I’ve gotten to step 6 of this tutorial when they talk about the loop.
I tried entering the first set of code into the index.php file as noted
<?php while ( have_posts() ) : the_post() ?>
<?php the_content(); ?>
<?php endwhile; ?>and then copying the files footer.php, functions.php, header.php, index.php to my server in order to see what’s happening.
I get the following message when trying to acces my admin panel:
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /homepages/11/d352022585/htdocs/blog/wp-content/themes/WP_Scratch1/functions.php on line 7Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /homepages/11/d352022585/htdocs/blog/wp-content/themes/WP_Scratch1/functions.php on line 8
Parse error: syntax error, unexpected T_STRING in /homepages/11/d352022585/htdocs/blog/wp-content/themes/WP_Scratch1/functions.php on line 11
I thought the functions.php file must not be finished as we might be working on it more later in the tutorial, so I deleted from the server. I can now access my admin panel but when I go to preview the blog this is what I get:
{\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \paperw11904\paperh16835\margl1440\margr1440\vieww24000\viewh13540\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0\fs24 \cf0
Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /homepages/11/d352022585/htdocs/blog/wp-content/themes/WP_Scratch1/header.php on line 11Parse error: syntax error, unexpected T_IF in /homepages/11/d352022585/htdocs/blog/wp-content/themes/WP_Scratch1/header.php on line 12
At this point I tried to find the errors but no dice … I’m not sure if I’m getting this just because I’m testing it straight onto my server rather than through MAMP (therefore, I should just trawl forward through the tutorial until the files are complete) or if I’ve done something wrong.
I’d really like understand
I appreciate any help you can give or direction you can point me in.thanks very much for your time.
ToDd
- The topic ‘Building Theme from Scratch’ is closed to new replies.