• Resolved Ry?

    (@ryoch)


    Hello!

    I made my header picture clickable with this code in the header.php of my theme:

    <div id="header" onclick="location.href='<?php echo home_url(); ?>';" style="cursor:pointer;">

    But when I mouse over it doesn’t show the usual status bar containing the url in the bottom left of the web browser. Is it a normal behavior from “onclick” and is there a way to show the status bar?

    Thank you

    Ry?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 15775767

    (@anonymized-15775767)

    Hey Ry?,

    Could you provide the link to your site please?

    Thread Starter Ry?

    (@ryoch)

    Thank you for the reply zeroelement but I just found a solution with a different approach:

    <div id="header"><a href="<?php echo home_url(); ?>" id="headerlink"></a>

    I made a simple a href and I created the id headerlink as I don’t have any text to link, and then I added the details of headerlink in my css to create the link “area” on top of my picture:

    #headerlink {
    	display: block;
    	width: 100%;
    	height: 100%;
    }

    Ry?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clickable header picture doesn’t show status bar’ is closed to new replies.