Forums

Code help required. (3 posts)

  1. Hampstead
    Member
    Posted 3 years ago #

    I have set up a WP based site at http://www.aztec-solar-water-heating.com and wish to modify the theme slightly. I am an old school tables guy and the CSS based php is beyond me.

    I have to logos at the bottom of the home page and I want them in the header instead of the RSS link.

    What code do I need to insert in the header?

    Here is the current header code:

    <?php
    if(function_exists('yy_redirect')) yy_redirect();
    define ('TEMPLATE_DOMAIN','freshy2');
    load_theme_textdomain(TEMPLATE_DOMAIN);
    global $freshy_options;
    $freshy_options = get_option('freshy_options');
    
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head profile="http://gmpg.org/xfn/11">
    <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'); ?>" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" title="Freshy"/>
    <!--[if lte IE 6]>
    <link rel="stylesheet" href="<?php print get_bloginfo('stylesheet_directory').'/fix-ie.php'; ?>" type="text/css" media="screen"/>
    <![endif]-->
    <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&amp;format=link'); ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="body">
    
    <div id="header">
    	<div class="container">
    		<div id="title">
    			<h1>
    				<a href="<?php echo get_settings('home'); ?>">
    					<span><?php bloginfo('name'); ?></span>
    				</a>
    			</h1>
    			<div class="description">
    				<small><?php bloginfo('description'); ?></small>
    			</div>
    			<div id="quicklinks">
    				<ul>
    					<?php if ($freshy_options['custom_quicklinks'])
    					{
    						foreach ($freshy_options['custom_quicklinks'] as $custom_quicklink)
    						{
    							?>
    							<li>
    								<a href="<?php echo $custom_quicklink['url']; ?>">
    									<?php _e($custom_quicklink['label'],TEMPLATE_DOMAIN); ?>
    								</a>
    							</li>
    							<?php
    						}
    					}
    					?>
    					<?php if(function_exists('yy_lang_menu')) : yy_lang_menu('lang_menu'); endif; ?>
    					<li><a title="rss" href="<?php bloginfo('rss2_url'); ?>" class="rss">rss</a></li>
    				</ul>
    				<?php if($freshy_options['header_search']) : include (TEMPLATEPATH . '/searchform.php');  endif; ?>
    			</div>
    		</div>
    		<div id="header_image">
    
    			<div id="menu">
    			<div class="menu_container">
    
    			<ul>
    
    		<?php if (!freshy_yy_menu()) : ?>
    
    			<?php if ('page' != get_option('show_on_front')) : // no page has been chosen as frontpage ?>
    
    				<li class="<?php if (is_home()) echo 'current_page_item'; ?>">
    					<a href="<?php echo get_settings('home'); ?>">
    						<?php _e($freshy_options['first_menu_label'],TEMPLATE_DOMAIN); ?>
    					</a>
    				</li>
    
    			<?php endif; ?>
    
    				<?php freshy_wp_list_pages('sort_column=menu_order&amp;title_li='); ?>
    
    		<?php endif; ?>
    
    			<?php if ($freshy_options['custom_menus'])
    			{
    				foreach ($freshy_options['custom_menus'] as $custom_menu)
    				{
    					?>
    					<li>
    						<a href="<?php echo $custom_menu['url']; ?>">
    							<?php _e($custom_menu['label'],TEMPLATE_DOMAIN); ?>
    						</a>
    					</li>
    					<?php
    				}
    			}
    			?>
    
    			<?php if ($freshy_options['last_menu_type']=='email' || $freshy_options['last_menu_type']=='link') : ?>
    
    				<li class="last_menu">
    
    				<?php if ($freshy_options['last_menu_type']=='email') : ?>
    
    					<a href="mailto:<?php echo $freshy_options['contact_email']; ?>">
    						<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    					</a>
    
    				<?php elseif ($freshy_options['last_menu_type']=='link') : ?>
    
    					<a href="<?php echo $freshy_options['contact_link']; ?>">
    						<?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?>
    					</a>
    
    				<?php endif; ?>	
    
    				</li>
    
    			<?php endif; ?>
    
    			</ul>
    
    			</div><span class="menu_end"></span>
    			</div>
    
    		</div>
    	</div>
    </div>
    
    <div id="page" <?php echo freshy_layout_class() ?>>
    	<div class="container">
    		<div id="frame">
  2. Ben Sutcliffe
    Member
    Posted 3 years ago #

    You see the code

    <li><a title="rss" href="<?php bloginfo('rss2_url'); ?>" class="rss">rss</a></li>

    ? Replace it with:

    <li>
      <img class="alignleft size-full wp-image-173" style="margin: 5px;" title="solar-trade-association" src="http://www.aztec-solar-water-heating.com/wp-content/uploads/2009/03/solar-trade-association.jpg" alt="solar-trade-association" width="103" height="92" />
      <img class="alignleft size-full wp-image-179" title="aztec-gas-safe-register" src="http://www.aztec-solar-water-heating.com/wp-content/uploads/2009/03/aztec-gas-safe-register.jpg" alt="aztec-gas-safe-register" width="95" height="92" />
    </li>
  3. Hampstead
    Member
    Posted 3 years ago #

    Thanks for this. The images look a bit wonky but you have given me enough to go on.

    I'll be able to sort it.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags