• Resolved kyletriggs

    (@kyletriggs)


    In my footer I have some links. As soon as I add a ‘ in the <a href code it will add a \ before it causing it not to work. The example is below:

    <a href=\'https://triggscompconsulting.com\'>Home</a> | <a href=\'https://triggscompconsulting.com/?page_id=2\'>About</a> | <a href=\'https://triggscompconsulting.com/?page_id=5\'>Contact</a> | <a href=\'https://triggscompconsulting.com/?page_id=3\'>Services</a> | <a href=\'https://triggscompconsulting.com/?page_id=7\'>Testimonials</a><br />Copyright ? 2009 Triggs Computer Consulting. All Rights Reserved.

    Any suggestions? It does this on 4 different wordpress sites on the same webserver.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try copy and paste:

    <a href="https://triggscompconsulting.com\">Home</a> | <a href="https://triggscompconsulting.com/?page_id=2">About</a> | <a href="https://triggscompconsulting.com/?page_id=5">Contact</a> | <a href="https://triggscompconsulting.com/?page_id=3">Services</a> | <a href="https://triggscompconsulting.com/?page_id=7">Testimonials</a>Copyright ? 2009 Triggs Computer Consulting. All Rights Reserved.

    Use shift+2 for ” instead of ‘

    Tell if it works?

    Thread Starter kyletriggs

    (@kyletriggs)

    No that doesn’t solve it…I can go in and edit it, and then I hit “save changes” and it just adds another \. Shift+2 creates a @ symbol.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Are you editing it through the built in theme editor? You may want to go in via FTP and edit the PHP file directly.

    Thread Starter kyletriggs

    (@kyletriggs)

    If I edit the PHP file it works fine. If it edit the theme through wordpress it self it won’t work. Maybe I’ll just have to use that as a work around.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I suspect single quotes won’t work due to PHP security (and anyway, it’s bad HTML, should always be double quotes).

    It could be WP, but it may also be your server. I don’t use the theme editor, and lock my permissions down, so I can’t check.

    Thread Starter kyletriggs

    (@kyletriggs)

    Well I wouldn’t use single quotes, but that’s just what this theme editor I use did. I tried both single and reg. quotations, and it doesn’t work either way. I’ll probably just edit the footer.php file from now on. Thanks!

    Thread Starter kyletriggs

    (@kyletriggs)

    I did some research and found it does have to do with PHP and the magic_quotes_gpc feature. Some tweaking will get it to work, but they are removing this from PHP6, so there is no use doing it. I’ll just edit the .php files themselves. Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Footer links will not work with a ‘’ is closed to new replies.