WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: Melville] Problems Adding Link to "Page" in Footer (16 posts)

  1. Gail
    Member
    Posted 1 year ago #

    I am trying to create a link in my footer to the "Disclosure, Privacy & Contact" page I created in WordPress. You can actually see the link at the very bottom of my page here:

    http://dappledthings.me

    Unfortunately, it keeps coming up as a page "Not Found" when I click on it. I know the page exists. I can put it in the menu and it works. I just don't want it in the menu. I want it at the very bottom of my site in the footer. Any suggestions? I am very frustrated. :(

    Thanks in advance!

  2. paulwpxp
    Font hero
    Posted 1 year ago #

    You have some not url safe character in the href attribute, just remove the link and put the link there again by typing.

    Also, when working with code, do use Notepad or any other text editor program, do not use microsoft words or anything like that.

  3. Gail
    Member
    Posted 1 year ago #

    I tried that and it didn't help. I removed the link, saved the file, put the link back in there manually and saved it. :(

    I can access the page here:

    http://dappledthings.me/disclosure-privacy-contact/

  4. paulwpxp
    Font hero
    Posted 1 year ago #

    Instade of this:
    Disclosure, Privacy, & Contact

    use this:

    Disclosure, Privacy, & Contact
  5. Gail
    Member
    Posted 1 year ago #

    I tried it and it didn't work. Now I have the ampersand as "&" and it still hasn't made a difference. Something is wrong with how the link is being processed, not the text. Next suggestion? :)

  6. Gail
    Member
    Posted 1 year ago #

    I meant as:

    & amp ;

    (without the spaces)

  7. paulwpxp
    Font hero
    Posted 1 year ago #

    did you modifiy the original theme's code ?

    i asked because it looked like there's something wrong with the escaping url.

  8. Gail
    Member
    Posted 1 year ago #

    Well, I got the link to work by redirecting it, but I still don't understand why it didn't take me to the right page in the first place. :(

  9. Gail
    Member
    Posted 1 year ago #

    Not that I can think of...

  10. Gail
    Member
    Posted 1 year ago #

    Well, redirecting the link URL is a workaround, so if anyone else can think of how to fix this in a proper manner, please let me know.

  11. paulwpxp
    Font hero
    Posted 1 year ago #

    First I thought, it's the theme feature for user to add the footer link so I suspect there is something wrong in the url escaping but once I took at look at the source code the footer.php must be edited or overriden in child theme to change the link.

    Now the problem is this left to right character
    http://en.wikipedia.org/wiki/Left-to-right_mark

    which can be prevented by using plain text editor (like notepad) to edit code.

    Also, you have the email encrypt script in there too that might - or - might not be the cause.

  12. Gail
    Member
    Posted 1 year ago #

    The only thing I used to edit the code was the WordPress editor in my dashboard. I know to use a plain text editor like Notepad when I am editing files otherwise.

  13. paulwpxp
    Font hero
    Posted 1 year ago #

    This is what I "think" it is.

    The left to right mark was put there by copying from the source (somewhere else outside of notepad and outside of WordPress editor) once it's there, it's there but it's invisible. When you found out the problem and tried to correct the issue, you went right in there in WordPress code editor and backspace and re-type, the left to right character was still there but invisibly hanging at the end.

    So if the above is right, then type the whole thing in notepad and copy from notepad and paste, this will solve the problem.

    Anything else other than this that might cause the problem is either the js to encrypt email right before it or WordPress editor itself is causing this.

    If I were you I would do all the editing of footer.php in notepad and ftp the file to the server, the WordPress editor is not for this kind of job anyway.

  14. Gail
    Member
    Posted 1 year ago #

    Hmm... I found the answer here:

    http://wordpress.org/support/topic/bad-page-suffix-in-url?replies=7

    I went over the URL with the right arrow key and it paused between the end of the URL and the closing quotation mark. I deleted that invisible character and everything is working without the redirect. Yay! :)

  15. Gail
    Member
    Posted 1 year ago #

    Sounds like you were right. ;)

  16. Gail
    Member
    Posted 1 year ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic