Title: Adding wp code to theme
Last modified: August 19, 2016

---

# Adding wp code to theme

 *  Resolved [moonfire](https://wordpress.org/support/users/moonfire/)
 * (@moonfire)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/)
 * I have adapted a theme (andreas09, without the adapted wordpress) and now I am
   adding the wordpress
    [http://www.callum-blue.co.uk](http://www.callum-blue.co.uk)
 * but every time I add <?php get_title(); ?> I get an error message, specific to
   that line.
 * > Parse error: syntax error, unexpected ‘:’ in /home/****/public_html/index.php
   > on line 74
 * is there anyway to stop this and get the code to show the title, posts and tags?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/#post-795410)
 * > /home/****/public_html/index.php on line 74
 * **STOP** editing that file.
 * Thats not a theme file.
 * Now that you have done that, grab a copy of the zip for the version of wordpress
   you are using, extract the contents, and replace THAT index.php with the corresponding
   one out of the files you extracted — it will be the one in the same folder as
   wp-config.php
 * Then go read the codex so that you are moderately aware of what you are doing,
   before you do it.
 *  Thread Starter [moonfire](https://wordpress.org/support/users/moonfire/)
 * (@moonfire)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/#post-795530)
 * That has worked, although now the stylesheet isn’t registering. I checked the
   header, I’m assuming that there is a place for this to be changed?
 * <style type=”text/css” media=”screen”>
    [@import](https://wordpress.org/support/users/import/)
   url( <?php bloginfo(‘stylesheet_url’); ?> );
 * Can I put the url of the stylesheet in ‘stylesheet_url’?
 *  Thread Starter [moonfire](https://wordpress.org/support/users/moonfire/)
 * (@moonfire)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/#post-795594)
 * Alright, I got the stylesheet sorted out. 🙂
 * At the moment I am looking at no content on the index page, I’m assuming that
   it’s got nothing to do with the index file as it’s been reverted now, so it must
   be another file?
 * I have this at the moment….
 * > <?php the_content(__(‘Read more….’)); ?>
 * This is the standard when getting the content, right?
 * As a side point, my title header in the box, looks like a clickable link and 
   I don’t think it is supposed to be.
 * Thank you for your hard work in helping me out, I’m sure you just get people 
   turning up just for help *blushes*
 *  Thread Starter [moonfire](https://wordpress.org/support/users/moonfire/)
 * (@moonfire)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/#post-795605)
 * please help!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Adding wp code to theme’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [moonfire](https://wordpress.org/support/users/moonfire/)
 * Last activity: [17 years, 10 months ago](https://wordpress.org/support/topic/adding-wp-code-to-theme/#post-795605)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
