WordPress.org

Ready to get started?Download WordPress

Forums

Can't make it work! (17 posts)

  1. MissComaDoll
    Member
    Posted 9 years ago #

    I think I've done everything right... but stil, my page look like this: http://cerotonin.com

    and it shouldn't... I've made a layout and everything and I want the blog to be a part of my page... but instead... the blog is the page.

    Please help?

  2. moshu
    Member
    Posted 9 years ago #

    All we can see is a default blog install. In WP 1.5.xx the "layout" is defined by themes:
    http://codex.wordpress.org/Using_Themes

    Integrating WP in an existing site... I've just posted this yesterday:
    http://wordpress.org/support/topic/38370

    Please, post back if you need further help!

  3. MissComaDoll
    Member
    Posted 9 years ago #

    A friend of mine tried to help me, and she has done things like this before and never had a problem with it.

    I've done my own index.php file for the blog, and my own header.php to make it fit my page, but it doesn't work. In my main index file I have only this code:

    <?php
    header ("Location: http://the/blog/location");
    ?>

    (and I have changed the text so it is to my blog location)

  4. moshu
    Member
    Posted 9 years ago #

    I don't know if you succeeded to read the material I linked to above in the 8 minutes between the two posts :)
    Your WP is installed in the root of your website - so I don't know what that "bloglocation" means. Where is the rest of the site?

  5. MissComaDoll
    Member
    Posted 9 years ago #

    I'm not much of a reader ^^

    the blog location is for me http://cerotonin.com/wordpress
    that's where my blog is.

    but the code says in short words that the page is going to show the header.php that is in ...wordpress\wp-content\themes\classic

    but it doesn't work.

  6. moshu
    Member
    Posted 9 years ago #

    If WP is installed in /wordpress directory why is it showing up in your root: cerotonin.com ?

    but the code says in short words that the page is going to show the header.php that is in ...wordpress\wp-content\themes\classic
    What code? What page? I am afraid I cannot follow you.
    Try to describe what exactly do you want to achieve. It would help us to help you :)

  7. MissComaDoll
    Member
    Posted 9 years ago #

    that's what I don't understand!

  8. moshu
    Member
    Posted 9 years ago #

    Now it is getting more complicated: cerotonin.com automatically redirects to cerotonin.com/wordpress.
    Playing with the headers without knowing what you are doing doesn't really help. What is the file (index.php) that you have in the root directory?
    Paste it here and post back with the URI: http://pastebin.com/

  9. MissComaDoll
    Member
    Posted 9 years ago #

    well, changing in the header wasn't to hard because all I had to do was changing som directories...

    and I can tell you right now what's in my root index.php

    <?php
    header ("Location: http://cerotonin.com/wordpress");
    ?>

    it is suppose to read the header.php and show the blog... but it doesn't work

  10. moshu
    Member
    Posted 9 years ago #

    Well, it does show the blog. But maybe not in the way you want it. That's why I was asking what exactly do you want to achieve?

  11. Firas
    Member
    Posted 9 years ago #

    No, header('Location: ') is supposed to redirect. It sends an HTTP header to your browser saying, 'here's the new location of this resource'. It has nothing to do with the WP header.

    To load the blog you need to include('wp-blog-header.php'), then say get_header(), add a loop, get_sidebar(), get_footer()..

  12. MissComaDoll
    Member
    Posted 9 years ago #

    I give up, I don't understand.

  13. Firas
    Member
    Posted 9 years ago #

    You need to tell us what you want to do. So far you've just said how you're going about it.

    All I'm saying is that the header() function is the wrong thing to be trying for what you seem to be attempting (putting the WP blog in your existing page.)

  14. MissComaDoll
    Member
    Posted 9 years ago #

    okey, this is my page, the way it's suppose to look:
    http://cerotonin.com/

    and I want my blog to be intergrated (is that the right word) whit the page... in the empty pink field.

  15. moshu
    Member
    Posted 9 years ago #

    ... LOL
    in my very first answer here I gave you this link:
    http://wordpress.org/support/topic/38370
    which would have taken you to the tutorial here:
    http://www.transycan.net/blogtest/2005/07/05/integrate/
    Integrating WP in an existing site. See Scenario #1.

  16. MissComaDoll
    Member
    Posted 9 years ago #

    but I told you, I'm not a big reader ^^

  17. MissComaDoll
    Member
    Posted 9 years ago #

    and, may I add, not very good in english... I understand about half what is written on that page

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.