Forums

[resolved] How To: Add home page URL link into header image? (8 posts)

  1. dailystyleguide
    Member
    Posted 3 years ago #

    Hello,

    Having searched for weeks, all over the internet for the answer to this question this is my last hope...so i'm praying somebody responds!

    My site is: http://www.dailystyleguide.com

    I'm using the Neoclassical Theme.

    1. How do I make the header image shown on each page link back to my home page? What code do I need and where do I fit it?

    (I realise that this is probably the easiest thing in the world for those in the know, so yes, I feel pretty dumb!)

    2. How do I remove the verticle lines which separate the main body from the sidebars?

    Thank you very much in advance!

  2. lhoylhoy
    Member
    Posted 3 years ago #

    in the header.php look for code to call the image and use the code below:

    <a href="<?php bloginfo('url'); ?>" title="Home">insert your code for your image</a>

    about the vertical line, check your style.css and look for border-left and border-right properties and try to remove them.

  3. dailystyleguide
    Member
    Posted 3 years ago #

    Thanks so much for the response. This is the code I have in header.php:

    <div id="container">
    <div id="page">
    <div id="masthead">

    <div id="logo">"<?php if (is_home()) echo(' rel="nofollow"'); ?>><?php bloginfo('name'); ?></div>

    <?php if (is_home()) { ?><h1><?php bloginfo('description'); ?></h1><?php } else { ?><div id="tagline"><?php bloginfo('description'); ?></div><?php } ?>

    </div>
    <div id="rotating_image"><?php include (TEMPLATEPATH . '/rotating_images.php'); ?>
    </div>

    Could you clarify where I need to enter the line of code you gave me?

    I also have rotating_images.php with this code (I wonder if I need to alter this instead?):

    <?php

    $random_image = rand(1,1); // the second number should equal the total number of images that you want to rotate

    ?>
    <img src="<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!" />

  4. lhoylhoy
    Member
    Posted 3 years ago #

    that just means your image is not called in the header.php so edit the other file.

    insert the code i gave you then insert the code below same line

    <img src="<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!" />

  5. dailystyleguide
    Member
    Posted 3 years ago #

    I'm not clear as to what code I enter here? (insert your code for your image):

    " title="Home">insert your code for your image

    The image is uploaded to my web host.

  6. lhoylhoy
    Member
    Posted 3 years ago #

    open your rotating_images.php, replace code below:

    <img src="<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!" />

    with this one:

    <a href="<?php bloginfo('url'); ?>" title="Home">
    <img src="<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!"/> </a>

    then log in to your webhost cpanel then to the file manager, upload your edited rotating_images.php exactly the same directory ok?

  7. dailystyleguide
    Member
    Posted 3 years ago #

    Perfect! Yipee!!! Thanks so much for your patience and fantastic help!!!

    Best wishes :-)

  8. lhoylhoy
    Member
    Posted 3 years ago #

    you're welcome

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.