WordPress.org

Ready to get started?Download WordPress

Forums

Link problem (18 posts)

  1. Colanne
    Member
    Posted 7 years ago #

    I have set up a web with 5 pages, one of which is my WordPress blog. I am using the Summer Breeze theme from Kaushal Sheth.

    On my website main pages (not blog pages) the navigation links work fine and link to (for example) http://www.mywebsite.com/about or http://www.mywebsite.com/links.

    I have my blog on a page called http://www.mywebsite.com/blog and on that page (and only that page) the links it's trying to find are http://www.mywebsite.com/blog/about or http://www.mywebsite.com/blog/links.

    I can't seem to find how to change the URL for the link so it doesn't include the "blog" page as well.

    Can anyone help?

  2. moshu
    Member
    Posted 7 years ago #

    Don't double post!
    Duplicate posts get deleted without warning...

  3. Colanne
    Member
    Posted 7 years ago #

    Sorry - wasn't sure if it was better in here or over there. Will know for next time. Thanks.

  4. moshu
    Member
    Posted 7 years ago #

    Without a link it is difficult to guess...
    Most likely you are using relative paths. Change to absolute.

    (and just for the sake of clarity: your blog is not on a "page" but in a folder)

  5. Colanne
    Member
    Posted 7 years ago #

    Thanks for the reply. Can you give me a clue on where to look for where it's picking up the "relative path" and how I should make it an absolute?

    I know basic coding, but I'm getting confused with this as I just can't figure out how to fix it.

  6. Colanne
    Member
    Posted 7 years ago #

    I've just had a realisation following your previous post.

    Going back to what you said about pages versus folders, I have loaded wordpress into the folder called "blog" however all my other "pages" are on the root directory aren't they?

    So should I be looking at moving wordpress into my root directory?

    The thing is, I want it to display on a page called http://www.mywebsite.com/blog.html. Can I do that if it's installed on the root directory, or will it overwrite everything else?

    I've just realised that I've been mixing up directories (i.e. http://www.mywebsite.com/blog) and pages (i.e. http://www.mywebsite.com/aboutme.html) which I think is half the reason I've been puzzling over this so long! *DOH*

  7. moshu
    Member
    Posted 7 years ago #

    The thing is, I want it to display on a page called http://www.mywebsite.com/blog.html.

    You can't. WP is all .php

  8. Colanne
    Member
    Posted 7 years ago #

    So I can't have WP on a page within my site then? It has to be a separate page to everything else?

    All I want is to have a single site with continuous navigation between all the pages, including my blog. Is that not possible?

  9. moshu
    Member
    Posted 7 years ago #

    It is possible - it's just that your approach is wrong.

  10. Colanne
    Member
    Posted 7 years ago #

    Well that is why I am on here asking for help!!

    Would you mind telling me what my approach should be? Or at least give me some idea of where to look to change the link URL from a relative to an absolute?

  11. moshu
    Member
    Posted 7 years ago #

    Since your description of the structure of your site is totally confusing... I cannot adventure in guessing and giving you the wrong advice.

  12. Colanne
    Member
    Posted 7 years ago #

    Well if you could tell me what information you (or someone else) might need, then I could provide it.

    I may not be the most technically minded person on here, which is why I am asking for help. But I am technical enough to do what I need to do most of the time and follow a request for information.

    If I haven't provided you with the information you need to help me, what is it you need? At least then I might be able to get help in getting my problem solved.

  13. moshu
    Member
    Posted 7 years ago #

    I was quite explicite in my first post:
    Quote: Without a link it is difficult to guess...

  14. Colanne
    Member
    Posted 7 years ago #

    The link to my website is

  15. moshu
    Member
    Posted 7 years ago #

    This is the portion in your header(?) file causing the problems:

    <div class="navigation">
    	<a href="index.html">Home</a>
    	<a href="barbara.html">Barbara</a>
    	<a href="kinesiology.html">Kinesiology</a>
    	<a href="/blog">Blog</a>
    
    	<a href="links.html">Links</a>
    	<div class="clearer"><span></span></div>
    </div>

    This is a relative path/link:
    <a href="index.html">

    This is an example of absolute path:
    <a href="http://www.barbarahobbs.co.uk/index.html">

  16. Colanne
    Member
    Posted 7 years ago #

    OK, I've changed the header file in the theme and now the link is showing as

    So it's obviously picking up the '/blog/' bit from somewhere.

  17. moshu
    Member
    Posted 7 years ago #

    No, you didn't follow exactly what I posted.
    Read it again.

  18. Colanne
    Member
    Posted 7 years ago #

    Got it. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic