Jump to content


Photo

Location of some header code


  • Please log in to reply
2 replies to this topic

#1 nrbeatty

nrbeatty

    Advanced Member

  • Members
  • PipPipPip
  • 99 posts

Posted 18 October 2011 - 10:33 PM

Hello again Pagelines!

You guys know your code best- I need some help finding some code in the header. You see, I had a developer add a log-in/log-out in the header. Please note top right: http://aocpmr.org/?w...O8OqFWP9OLT7hv.
Well, he stopped working on the project, and now I'm stuck with this dysfunctional log-in I need to get rid of. I opened and looked over the header.php file, but I don't know what to delete. I'm posting the current header.php file below- sorry if that's annoying! Search "s2_login_box" and you'll see the area of code. I don't know what to delete and what should stay.

thanks!

nick


 
	<?php do_action('pagelines_before_html');?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
	  <head profile="http://gmpg.org/xfn/11">
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	
	<!-- Meta Images -->
		<?php if(pagelines('favicon')):?><link rel="shortcut icon" href="<?php echo pagelines('favicon');?>" type="image/x-icon" /><?php endif;?>
		<?php if(pagelines('touchicon')):?><link rel="apple-touch-icon" href="<?php echo pagelines('touchicon');?>" /><?php endif;?>
	
	<!-- Title and External Script Integration -->
		<?php
			global $bbpress_forum;
			if($bbpress_forum ):?>
				<title><?php bb_title() ?></title>
				<?php bb_feed_head(); ?>
				<?php bb_head(); ?>
				<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
		<?php else:?>
			<title><?php if(is_front_page()) { echo SITENAME; } else { wp_title(''); } ?></title>
		<?php endif;?>
	
	
	<!-- Wordpress Stuff -->
		<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
		<?php if ( is_single() || is_page()) wp_enqueue_script( 'comment-reply' ); ?> <!-- This makes the comment box appear where the ???reply to this comment??™ link is -->
		<?php  wp_enqueue_script("jquery"); ?>
	
	<!-- Stylesheets -->
	
		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
		<?php get_template_part ('library/dynamic_css'); ?>
	
	<!-- Modules w/ Javascript -->
	<?php if((is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) && VPRO) get_template_part ('core/inits/init_carousel');?>
	
	<?php if((is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog'))) && VPRO) get_template_part ('core/inits/init_feature');?>
	
	<?php if(pagelines('enable_drop_down') && VPRO) get_template_part ('core/inits/init_dropdown');?>
	
	<?php get_template_part ('library/_ie_fixes'); ?>
	
	<!-- Font Replacement -->
	  	<?php if(VPRO) get_template_part('library/_font_replacement');?>
		<?php if (pagelines('headerscripts')) echo pagelines('headerscripts');?>
	
		<?php wp_head(); ?>
	
	</head>
	<body <?php body_class(); ?>>
		<?php if (pagelines('asynch_analytics')) echo pagelines('asynch_analytics');?>
		<div id="site">
			<div id="wrapper">
	
						<div id="header" class="fix">
							<div class="content fix">
							<?php s2_login_box(); ?>
								<div class="headline">
									<?php if(pagelines('custom_header')):?>
										<a class="home" href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name');?>"><img src="<?php echo pagelines('custom_header');?>" alt="<?php bloginfo('name');?>" /></a>
									<?php else:?>
									<h1 class="site-title"><a class="home" href="<?php echo get_option('home'); ?>/" title="<?php _e('Home',TDOMAIN);?>"><?php bloginfo('name');?></a></h1>
									<h6 class="site-description"><?php bloginfo('description');?></h6>
									<?php endif;?>
								</div>
								<div class="icons">
	
									<?php if(pagelines('rsslink')):?>
									<a target="_blank" href="<?php echo RSSURL;?>" class="rsslink"></a>
									<?php endif;?>
	
									<?php if(VPRO):?>
										<?php if(pagelines('twitterlink')):?>
										<a target="_blank" href="<?php echo pagelines('twitterlink');?>" class="twitterlink"></a>
										<?php endif;?>
										<?php if(pagelines('facebooklink')):?>
										<a target="_blank" href="<?php echo pagelines('facebooklink');?>" class="facebooklink"></a>
										<?php endif;?>
										<?php if(pagelines('linkedinlink')):?>
										<a target="_blank" href="<?php echo pagelines('linkedinlink');?>" class="linkedinlink"></a>
										<?php endif;?>
										<?php if(pagelines('youtubelink')):?>
										<a target="_blank" href="<?php echo pagelines('youtubelink');?>" class="youtubelink"></a>
										<?php endif;?>
									<?php endif;?>
	
								</div>
							</div>
						</div>
						<div class="container fix <?php if(m_pagelines('sidebar_layout', $post->ID) == 'left') echo 'sidebar_left';?>">
							<div class="effect containershadow">
								<div class="effect containershadow_rpt">
									<div id="sitenav" class="content fix">
										<div id="nav" class="fix ">
											<?php function nav_fallback() {?>
												<ul id="menu-nav" class="<?php if(pagelines('enable_drop_down')) echo 'mnav dropdown fix'; else echo 'mnav fix';?>">
												  	<?php wp_list_pages( 'title_li=&sort_column=menu_order&depth=3'); ?>
												</ul>
										<?php	}
											 if(function_exists('wp_nav_menu')):?>
												<?php wp_nav_menu( array('menu_class'  => 'mnav dropdown fix', 'container' => null, 'container_class' => '', 'depth' => 3, 'theme_location'=>'primary', 'fallback_cb'=>'nav_fallback') );?>








#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17966 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 October 2011 - 10:43 PM

Hi Nick,

I would recommend backing up the file, and then try removing this:

 
	<?php s2_login_box(); ?>

Save the file and check out your site. Let us know if it works or not.

#3 nrbeatty

nrbeatty

    Advanced Member

  • Members
  • PipPipPip
  • 99 posts

Posted 18 October 2011 - 10:50 PM

I took your advice, copy/pasted the current header.php to a word doc and copy/pasted the original header.php code back into the editor. It got me back to where I needed to be. Thanks for some common sense tip. nick