• Peeps,im running out of patience here.
    This os original code..


    <div id="header">
    <div id="headerimg">
    <h1><a href="<?php echo get_settings('home'); ?>"></a></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

    How to change it to active link to index.php ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You need <?php bloginfo('name'); ?> before link close tag.

    Is this in relation to this thread?

    I’m sorry your patience is running out. We’re all volunteers here. We have no obligation to provide any specific answers. If that makes you uncomfortable, consider posting a request to the WP Pro mailing list, where you can offer to pay someone to solve your problems.

    As for the code above, that should link to your home page. get_settings('home'); will return the root URL to your site. You could edit the link above to read
    <a href="<?php echo get_settings('home'); ?>/index.php"></a>
    if you really want index.php included in the link.

    skippy posted the correct answer before me, I was struggling with the forum accepting my code ??

    john1000, study the relevant php pages in other templates, maybe you’d figured out that way.

    Thread Starter john1000

    (@john1000)

    well non of the above works…
    And i have to study ?

    In what way does the above suggestion not work?

    Are you averse to studying? In your other thread on this topic you were pointed to a search. I randomly clicked a link from that search link and found a solution (to size the h1 header as big as your image header, to “fake” a clickable header image).

    Thread Starter john1000

    (@john1000)

    You mean like this?

    #header { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/header1.gif") no-repeat bottom center; }`

    That doesnt work..

    Thread Starter john1000

    (@john1000)

    thats why it takes so much time…get no straight answer,i do that on my websites…

    john1000: I’m trying to help, but you’re not being particularly clear in your responses. I asked “in what way does that not work?” Your reply was “That doesn’t work.”

    Do you understand how that makes it difficult for me to provide you with additional steps to try?

    The background image in your CSS cannot be clickable. You will need to remove the background image from your CSS, and make it a regular <img> tag inside your header.php. Then you can wrap an anchor tag around it to make it clickable.

    Okay, enough with the specific help. All is easily and clearly explained in the WordPress Codex Designing Headers.

    There is code examples and everything you could want to know about the header area of a WordPress Theme, including how to turn it into a clickable header.

    We do our best here, but honestly, for really good help, check out the Codex – the online manual.

    And if you need help in a language other than english, see WordPress in Your Language.

    Thread Starter john1000

    (@john1000)

    well il give it another try after dinner….thanks..

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Clickable header image request..’ is closed to new replies.