Please Read First
Troubleshooting Tips
Frequently Asked Questions
Before Posting Please Disable Wp Super Cache Plugin
When Posting Please Include Your URL.
Search Forum Using Google Search Box Above
Forum Video

Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    48
    Rep Power
    0

    Default make the blog title a hyperlink on all pages including home

    Hi there

    I would like to make my blog title a link on my home page just like it is on all the others...

    how can i modify this code... ?

    <div class="im-header">
    <div id="header" <?php if(!is_home()) { echo 'onclick="location.href=\''; bloginfo('url'); echo '\';" style="cursor: pointer;"'; } ?> >
    <!-- jc 5/12/2010 - changes for hyperlinking blog title -->
    <?php if (empty($header)) { ?>
    <div class="titleText socshadow" style="margin-bottom:-5px; font-weight:bold;"><h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1></div>
    <div class="descText socshadow"><?php bloginfo('description'); ?></div>
    <?php } else { ?>
    <div class="titleText socshadow" style="margin-bottom:-5px; font-weight:bold;"><h1><?php if(!is_home()) { ?><a href="<?php bloginfo('url'); ?>"><?php } ?><?php echo stripslashes($header['titleText']); ?><?php if(!is_home()) { ?></a><?php } ?></h1></div>
    <div class="descText socshadow"><?php echo stripslashes($header['descText']); ?></div>
    <!-- end jc -->
    <?php } ?>
    </div><!-- /header -->

    Thank you in advance!

  2. #2
    Join Date
    Jun 2010
    Location
    Binghamton, NY
    Posts
    2,732
    Rep Power
    8

    Default

    The title is a link to the home page. It does not make sense to link to the page you're on.
    Lynn T. Harrison
    Ever Evolving Enterprises
    LynnTHarrison.com (my blog on using WordPress) Testimonials appreciated

  3. #3
    Join Date
    Sep 2010
    Posts
    48
    Rep Power
    0

    Default

    Can anyone help alter this code. I do need the link to be active on the home page as well.

  4. #4
    Join Date
    Jun 2010
    Location
    Binghamton, NY
    Posts
    2,732
    Rep Power
    8

    Default

    Where do you want it to link to?
    Lynn T. Harrison
    Ever Evolving Enterprises
    LynnTHarrison.com (my blog on using WordPress) Testimonials appreciated

  5. #5
    Join Date
    Jun 2010
    Location
    Maine
    Posts
    7,214
    Rep Power
    12

    Default

    Out of curiousity, can you let us know why you need this? It's most unusual.

    Many times when we know the reason for a request we can suggest alternative solutions.

  6. #6
    Join Date
    Sep 2010
    Posts
    48
    Rep Power
    0

    Default

    My SEO consultant requested it. As that is the keyword that I want my home page to rank for and apparently this will help. For me to put another one in would not look right...

Similar Threads

  1. How to remove home(TITLE)from static home page
    By markandroena in forum Community Support
    Replies: 1
    Last Post: 11-05-2010, 09:38 PM
  2. All Pages Include Home Page Title
    By karnevans in forum Official Support
    Replies: 3
    Last Post: 09-17-2010, 02:06 AM
  3. How to make the header link back to the home page?
    By chrischiang in forum Graphics and Design
    Replies: 3
    Last Post: 09-03-2010, 10:18 AM
  4. Turn off Home Page Title
    By netport303 in forum Community Support
    Replies: 1
    Last Post: 08-28-2010, 06:25 PM
  5. How do you make a blog post sticky?
    By smcolby in forum Official Support
    Replies: 1
    Last Post: 07-16-2010, 11:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •