WordPress.org

Ready to get started?Download WordPress

Forums

Need help adding images to header please? (6 posts)

  1. mikehende
    Member
    Posted 10 months ago #

    Hello, I not all that experienced with WP so would appreciate anyone's help please? This is my old html site:

    http://www.pcandnetservices.com/Pc-Laptop-Repairs.html

    and this is my new WP site:

    http://www.pcandnetservices.com/pc-laptop-repairs/

    I would like to have my new WP site have the look of certain aspects of my old site. First step is to add the two images located on the right side of my logo in the header in the same positions, this is my header code below, how can I add those two images please?

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    
    <head>
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
    	<meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, user-scalable=no" />
    	<link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'>
    	<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,bold" />
    	<?php $slideshow_font = of_get_option('ttrust_slideshow_title_font'); ?>
    	<?php $heading_font = of_get_option('ttrust_heading_font'); ?>
    	<?php $sub_heading_font = of_get_option('ttrust_sub_heading_font'); ?>
    	<?php $body_font = of_get_option('ttrust_body_font'); ?>
    	<?php $home_message_font = of_get_option('ttrust_home_message_font'); ?>
    	<?php if ($slideshow_font != "") : ?>
    		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo(urlencode($slideshow_font)); ?>:regular,italic,bold,bolditalic" />
    	<?php endif; ?>
    	<?php if ($heading_font != "") : ?>
    		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo(urlencode($heading_font)); ?>:regular,italic,bold,bolditalic" />
    	<?php endif; ?>
    	<?php if ($sub_heading_font != "") : ?>
    		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo(urlencode($sub_heading_font)); ?>:regular,italic,bold,bolditalic" />
    	<?php endif; ?>
    	<?php if ($body_font != "" && $body_font != $heading_font) : ?>
    		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo(urlencode($body_font)); ?>:regular,italic,bold,bolditalic" />
    	<?php endif; ?>
    	<?php if ($home_message_font != "") : ?>
    		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php echo(urlencode($home_message_font)); ?>:regular,italic,bold,bolditalic" />
    	<?php endif; ?>
    
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php if (of_get_option('ttrust_favicon') ) : ?>
    		<link rel="shortcut icon" href="<?php echo of_get_option('ttrust_favicon'); ?>" />
    	<?php endif; ?>
    
    	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    
    	<?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?> >
    
    <div id="container">
    <div id="header">
    	<div class="top">
    	<div class="inside clearfix">
    
    		<?php $ttrust_logo = of_get_option('logo'); ?>
    		<div id="logo">
    		<?php if($ttrust_logo) : ?>
    			<h1 class="logo"><a>"><img src="<?php echo $ttrust_logo; ?>" alt="<?php bloginfo('name'); ?>" /></a></h1>
    		<?php else : ?>
    			<h1><a>"><?php bloginfo('name'); ?></a></h1>
    		<?php endif; ?>
    		</div>
    
    		<div id="mainNav" class="clearfix">
    			<?php wp_nav_menu( array('menu_class' => 'sf-menu', 'theme_location' => 'main', 'fallback_cb' => 'default_nav' )); ?>
    		</div>
    	</div>
    	</div>	
    
    	<?php if(is_front_page()):?>
    		<?php if(of_get_option('ttrust_slideshow_enabled')) get_template_part( 'part-slideshow'); ?>
    		<?php $homeMessage = of_get_option('ttrust_home_message'); ?>
    		<?php if($homeMessage) : ?>
    			<div id="homeMessage" class="clearfix">
    				<p><?php echo $homeMessage; ?></p>
    			</div>
    		<?php endif; ?>
    	<?php endif; ?>
    </div>
    
    <div id="main" class="clearfix">
  2. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    What theme is this?

  3. mikehende
    Member
    Posted 10 months ago #

    It is a "hardy" theme

  4. WPyogi
    Volunteer Moderator
    Posted 10 months ago #

    Looks like that's a commercial theme - so the developers would be the best ones to help you with it - as we don't have access to commercial themes and it's part of what you pay for with a commercial theme.

    http://codex.wordpress.org/Forum_Welcome#Commercial_Products

    BTW, you may want to use a child theme to make changes to the theme files - so that your changes are not lost when the theme is updated.

    http://codex.wordpress.org/Child_Themes

  5. mikehende
    Member
    Posted 10 months ago #

    oh, alright, I'll try to contact the developers for help, thanks.

  6. liken22
    Member
    Posted 10 months ago #

    Here is the code:

    <div id="logo">
    		<?php if($ttrust_logo) : ?>
    			<h1 class="logo"><a>"><img src="<?php echo $ttrust_logo; ?>" alt="<?php bloginfo('name'); ?>" /></a></h1>
    		<?php else : ?>
    			<h1><a>"><?php bloginfo('name'); ?></a></h1>
    		<?php endif; ?>
    		</div>
    <div style="float:right; width:500px;">
    <img src="<?php bloginfo('template_directory'); ?>/images/com_2.png" alt="" />
    <img src="<?php bloginfo('template_directory'); ?>/images/www2_2.png" alt="" />
    </div>
    		<div id="mainNav" class="clearfix">
    			<?php wp_nav_menu( array('menu_class' => 'sf-menu', 'theme_location' => 'main', 'fallback_cb' => 'default_nav' )); ?>
    		</div>

    Take a look at the code, I have copy part of your current code so you can have a reference. Put your images inside your active theme images folder.
    Let me know if you have any questions.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.