How to use Next Gen Gallery plugin as my header? -I dont know where to put code!
-
hi all
i want to have rotating headers…. i’ve done all the plugin installations and the code i think i need to add is this….
<?php { nggSlideshowWidget(1,800,310); }?>i’ve tried to put the code in loads of places loads but it keeps messing up the rest of the site!!
my header.php code is…
<?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&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&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">
anyone know where to put it!?
thanks!!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to use Next Gen Gallery plugin as my header? -I dont know where to put code!’ is closed to new replies.