• Resolved brian914

    (@brian914)


    I am using the following html/php to link to the home page, when the viewer clicks on the logo of the site.
    <a href="<?php bloginfo('siteurl'); ?>" title=""><img id="logo" src="<?php bloginfo('template_directory'); ?>/images/general/logo.gif" alt="Logo"></a>

    Here is the site: http://downtownwinesf.com

    When I click on the logo in the top left, the url gets way longer and looks something like this:
    http://downtownwinesf.com/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20get_settings%20is%20%3Cstrong.....

    Which results in a 404 page. Why is that? What am I doing wrong? I just want to link back to http://downtownwinesf.com, which at some point I am pretty sure was working. I am not sure what changed it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Why don’t you use one forward slash character, to link to the home page?
    E.g
    <a href="/" ... >

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The actual hyperlink generating in your problematic instance is

    <a href="<br />
    <b>Notice</b>:  get_bloginfo was called with an argument that is <strong>deprecated</strong> since version 2.2! The <code>siteurl</code> option is deprecated for the family of <code>bloginfo()</code> functions. Use the <code>url</code> option instead. in <b>/home/content/70/9724470/html/wp-includes/functions.php</b> on line <b>2712</b><br />
    http://downtownwinesf.com" title="">
     <img id="logo" src="http://downtownwinesf.com/wp-content/themes/downtownwinesf/images/general/logo.gif" alt="Logo">
    </a>

    Thread Starter brian914

    (@brian914)

    Thank you Andrew! The simple forward slash did fix it!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Home link doing weird things’ is closed to new replies.