Home Forums WoodMart support forum Links in footer wrong on pages other than home

Links in footer wrong on pages other than home

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #171959

    blacko303
    Participant

    Hi. I have an odd but hopefully easy to resolve issue.
    I have links in a footer column widget and these work fine on the homepage but from any other page they are wrong as it inserts the page name e.g a href=”faq”>Frequently Asked Questions is set in the widget and works from home page but from say the returns page the widget links instead to domain.com/returns/faq
    How do I fix this please?
    Thanks

    #171988

    Hello,

    Seems you have inserted invalid links. Try to insert link in this way: <a href="https://domain/pageurl.com/">New York</a>

    Best Regards

    #172011

    blacko303
    Participant

    Hi. Thanks for the reply. I hadn’t done the links that way as I was trying to avoid using absolute URLs.

    I have I think come up with a solution using relative paths
    I added ../../ to the start of the relative URL, so for example ‘a href=”../../mypage”>mypage’
    on the logic that I believe this will always take me to the site root from all my pages.
    So far it seems to work fine.

    #172091

    Hello,

    Using relative links instead of absolute links when building a website won’t make the site more appealing to search engines, which convert relative links into absolute links automatically. It doesn’t really matter to search engines which ones get used.

    If you still want to use relative links you need to write them correctly.

    Best Regards

    #172097

    blacko303
    Participant

    Hi. The reason I was using relative links for now is because I am still building the site and using an under construction plugin. If I use absolute links in the footer when I click on one of those links I get the under construction message even though I am white listed. If I use relative links it works as it should. Regarding correctly formed relative links the use of ../ is allowed to reference the next dir up in the hierarchy and I can see nowhere in w3 docs where it is not allowed to use more than once but I may have missed something.

    #172132

    Hello,

    You would better use our maintenance mode which is built-in with the theme, in this case, you can navigate throughout the site without any problems, you should be logged in. You can activate the mode in the Theme Settings > Maintenance and choose the Maintenace template in the page which is assigned to be as the front page in the mode condition.

    Footer is created by WordPress widgets and our theme does not influence them.

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)