• Resolved moonfire

    (@moonfire)


    I have adapted a theme (andreas09, without the adapted wordpress) and now I am adding the wordpress
    https://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)
  • /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

    (@moonfire)

    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 url( <?php bloginfo(‘stylesheet_url’); ?> );

    Can I put the url of the stylesheet in ‘stylesheet_url’?

    Thread Starter moonfire

    (@moonfire)

    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

    (@moonfire)

    please help!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding wp code to theme’ is closed to new replies.