Support » Fixing WordPress » Title Graphic hyperlink not working!

  • Resolved loconzly



    I am trying to make my Title Graphic as a hyperlink , but I can’t get it to work for the life of me.

    The trouble is that the image is referenced in the stylesheet and not the header.php document.

    I’ve tried plugging in the a href= tag all over the place and cannot get it to activate the graphic as a hyperlink.

    Here is the header.php. Where should my href go?? Thanks!

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “”>
    <html xmlns=””>

    <head profile=”″>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>

    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats please –>

    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />

    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>


    <div id=”container”>
    <div id=”header”>
    <div class=”description”>

    <?php get_sidebar(); ?>

    <div id=”content”>
    <!– end header –>

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’re going to have to pull the image out of the CSS as a background, and place it in the header.php file, wrapped in link tags, in order to make that happen.

    You can’t make it clickable in CSS, only in HTML… if that makes sense.

    I thought that was true, and was about to do it, but found this alternate method, which works great and is simple:

    <div id=”header” onclick=”location.href=’’;” style=”cursor: pointer;”>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Title Graphic hyperlink not working!’ is closed to new replies.