• Resolved Martin

    (@pimpdaddydk)


    Hi i am doing a little rework on my site and need some help please.

    Here is the rework: https://www.pimpdaddy.dk/testsite

    I would like to have a logo.jpg insted of the text-logo, but i cant seem to figure out what to do.

    And i would also like a rss feed button and twitter button in the header, and naturally i cant figure that out either ??

    Can some of the experts in here please help me out?

    Cheers,
    Martin

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Martin

    (@pimpdaddydk)

    If it helps here is the header.php code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    	<head profile="https://gmpg.org/xfn/11">
    
    		<title>
    			<?php if (is_home()) { echo bloginfo('name');
    			} elseif (is_404()) {
    			echo '404 Not Found';
    			} elseif (is_category()) {
    			echo 'Category:'; wp_title('');
    			} elseif (is_search()) {
    			echo 'Search Results';
    			} elseif ( is_day() || is_month() || is_year() ) {
    			echo 'Archives:'; wp_title('');
    			} else {
    			echo wp_title('');
    			}
    			?>
    		</title>
    
    	    <meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
    		<meta name="description" content="<?php bloginfo('description') ?>" />
    		<?php if(is_search()) { ?>
    		<meta name="robots" content="noindex, nofollow" />
    	    <?php }?>
    
    		<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
            <!--[if IE 6]>
            <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie6.css" media="screen" />
            <![endif]-->
             <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/ie7.css" media="screen" />
            <![endif]-->
    		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    		<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    		<?php wp_head(); ?>
    
    	</head>
    
    	<body>
    	<div id="page-wrap">
        <div id="top">
    		<h1 class="logo"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    		<ul id="nav">
    		<?php wp_list_pages('title_li='); ?>
    		</ul>
            </div>
        <div class="clear"></div>

    And the stylesheet is here:
    https://www.pimpdaddy.dk/testsite/wp-content/themes/Equilibrium/style.css

    Thread Starter Martin

    (@pimpdaddydk)

    Ok i figured out how to get a logo image in by following theese steps: https://www.ads-software.com/support/topic/273142?replies=5

    But how can i make the logo.gif link to the frontpage. I tried to put an a=href tag around the div id tag but that didnt work. Any suggestions?

    And how do i put another image in on the same ‘line’ as the logo only aligned to the right in the header?

    <h1 class=”logo”></h1>

    I wouldn’t define the logo as a class however. Simply dump the image into the header on the line you want it to appear and then use the hyperlink there. Make use of the alt attribute and include the name of your website.

    Thread Starter Martin

    (@pimpdaddydk)

    Hi Ejudicator and thx for you reply.

    I am not quite sure what you mean though?

    Should i drop the class tag and instead just put an <img src=blabla tag?

    Sorry if im asking stupid questions but im pretty lost here.

    Thread Starter Martin

    (@pimpdaddydk)

    I figured it out i had to insert this code:

    <a href="<?php echo get_option('home'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/REPLACE_IMAGE.jpg"
    alt="Header Image" border="0" /></a>

    Thx.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need a little help modifying header.php’ is closed to new replies.