• I have set up a WP based site at https://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"
      "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head profile="https://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">

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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="https://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="https://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>
    Thread Starter Hampstead

    (@hampstead)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code help required.’ is closed to new replies.