Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Baden, can you help me? I have the same issue. This is whats in my header.php though:

    <?php
    	$webSiteUrl = get_bloginfo('url')."/";
    	$pageURL = 'http';
    	if ($_SERVER["HTTPS"] == "on") {
    		$pageURL .= "s";
    	};
    	$pageURL .= "://";
    	if ($_SERVER["SERVER_PORT"] != "80") {
    		$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
    	} else {
    		$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    	};
    	if($webSiteUrl!=$pageURL){
    		$pageHash = substr($pageURL, strlen($webSiteUrl), strlen($pageURL));
    		header("location:".$webSiteUrl."#!/".$pageHash."");
    		exit;
    	};
     ?>
    <!DOCTYPE html>
    <!--[if lt IE 7 ]><html class="ie ie6" <?php language_attributes();?>> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" <?php language_attributes();?>> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" <?php language_attributes();?>> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes();?>> <!--<![endif]-->
    <head>
    	<title><?php if ( is_category() ) {
    		echo __('Category Archive for "', 'theme5820'); single_cat_title(); echo __('" | ', 'theme5820'); bloginfo( 'name' );
    	} elseif ( is_tag() ) {
    		echo __('Tag Archive for "', 'theme5820'); single_tag_title(); echo __('" | ', 'theme5820'); bloginfo( 'name' );
    	} elseif ( is_archive() ) {
    		wp_title(''); echo __(' Archive | ', 'theme5820'); bloginfo( 'name' );
    	} elseif ( is_search() ) {
    		echo __('Search for "', 'theme5820').wp_specialchars($s).__('" | ', 'theme5820'); bloginfo( 'name' );
    	} elseif ( is_home() || is_front_page()) {
    		bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );
    	}  elseif ( is_404() ) {
    		echo __('Error 404 Not Found | ', 'theme5820'); bloginfo( 'name' );
    	} elseif ( is_single() ) {
    		wp_title('');
    	} else {
    		echo wp_title( ' | ', false, right ); bloginfo( 'name' );
    	} ?></title>
    	<meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	 <?php
    		$useragent=strtolower($_SERVER['HTTP_USER_AGENT']);
    		if(strripos($useragent, "ipod")>1 || strripos($useragent, "ipad")>1 || strripos($useragent, "iphone")>1){
    			echo '<meta name="viewport" content="width=device-width,initial-scale=1.0">';
    		}else{
    			echo '<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">';
    		};
    	?>
    	<meta name="viewport" content="width=device-width,initial-scale=1.0<?php echo $userScale; ?>">
    	<link rel="profile" href="https://gmpg.org/xfn/11" />
      	<link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
    	<?php /* The HTML5 Shim is required for older browsers, mainly older versions IE */ ?>
    	<!--[if lt IE 8]>
    	<div style=' clear: both; text-align:center; position: relative;'>
    		<a href="https://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="https://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" alt="" /></a>
    	</div>
    	<![endif]-->
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/reset.css" />
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/grid.css" />
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/default_style.css" />
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    	<?php
    		/* We add some JavaScript to pages with the comment form
    		 * to support sites with threaded comments (when in use).
    		 */
    		if ( is_singular() && get_option( 'thread_comments' ) )
    			wp_enqueue_script( 'comment-reply' );
    
    		/* Always have wp_head() just before the closing </head>
    		 * tag of your theme, or you will break many plugins, which
    		 * generally use this hook to add elements to <head> such
    		 * as styles, scripts, and meta tags.
    		 */
    		wp_head();
    	?>
      <!--[if lt IE 9]>
      <style type="text/css">
        .border{
          behavior:url(<?php bloginfo('stylesheet_directory'); ?>/PIE.php);
          position: relative;
        }
      </style>
      	<script src="<?php bloginfo('template_url'); ?>/js/html5.js"></script>
      	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/IE8.css" />
      <![endif]-->
      <!-- Custom CSS -->
    	<?php if(of_get_option('custom_css') != ''){?>
      <style type="text/css">
      	<?php echo of_get_option('custom_css' ) ?>
      </style>
      <?php }?>
      <style type="text/css">
    		/* Body styling options */
    		<?php $background = of_get_option('body_background');
    			if ($background != '') {
    				if ($background['image'] != '') {
    					echo 'body { background-image:url('.$background['image']. '); background-repeat:'.$background['repeat'].'; background-position:'.$background['position'].';  background-attachment:'.$background['attachment'].'; }';
    				}
    				if($background['color'] != '') {
    					echo 'body { background-color:'.$background['color']. '}';
    				}
    			};
    		?>
    		/* Links and buttons color */
    		<?php
    			$links_styling = of_get_option('links_color');
    			$links_styling_hover = of_get_option('links_color_hover');
    			if($links_styling) {
    				echo 'a{color:'.$links_styling.'; -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease;}';
    			}else{
    				echo 'a{-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease;}';
    			}
    			if($links_styling) {
    				echo 'a:hover, a:active{color:'.$links_styling_hover.'; -webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease;}';
    			}else{
    				echo 'a{-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease; transition: all 0.5s ease;}';
    			}
    		?>
    
    		/* Body typography */
    		<?php $body_typography = of_get_option('body_typography');
    			if($body_typography) {
    				echo 'body {font-family:'.$body_typography['face'].'; color:'.$body_typography['color'].'; font-size:'.$body_typography['size'].'; font-style:'.$body_typography['style'].'; -webkit-text-size-adjust: none;}';
    			}
    		?>
      </style>
        <script type="text/javascript">
            var offsetHeight;
    		$(window).load(function() {
                offsetHeight = $("#footer").height() + 100;
                $("#galleryHolder").gallerySplash({
    				autoPlayState:'<?php echo of_get_option('auto_play'); ?>',
    				autoPlayTime:'<?php echo of_get_option('change_delay'); ?>',
    				alignIMG:'<?php echo of_get_option('align_img'); ?>',
    				controlDisplay:'<?php echo of_get_option('display_navigation'); ?>',
    				paginationDisplay:'<?php echo of_get_option('display_pagination'); ?>',
    				animationSpeed:'<?php echo of_get_option('animation_speed'); ?>'
    			});
                $(".posters > li:nth-child(3n)").addClass("noMarginR");
    
                $('#pageList').stop(true, true).animate({height:$('#splash_page').outerHeight(true) + offsetHeight}, 1000, "easeInOutCubic");
                $('#splash_page').css({left:$(document).width(), "display":"block"}).stop(true).animate({left:0}, 800, "easeInOutCubic");
    		});
    	</script>
    </head>
    
    <body <?php body_class(); ?>>
    	<div id="web_site_spinner"></div>
        <?php include_once(TEMPLATEPATH . '/slider.php'); ?>
    	<div id="wrapper">
    		<div id='pageSpinner'><div></div></div>
            <div id='imgSpinner'><div></div></div>
            <div id="controlsHolder">
        		<a href="#"><span></span></a>
        		<a href="#"><span></span></a>
            </div>
            <div id="previewHolder">
    
    <ul>
            		<?php $posts_counter = 0; ?>
            		<?php
            			query_posts("post_type=slider&posts_per_page=-1&post_status=publish");
            			while ( have_posts() ) : the_post(); $posts_counter++;
            		?>
            		<?php
            			$custom = get_post_custom($post->ID);
            			$url = get_post_custom_values("slider-url");
            			//$sl_thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'slider-post-thumbnail');
            			$sl_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'slider-post');
            			$tab_title = get_post_custom_values("tab-title");
            		?>
            		<?php
            			if(has_post_thumbnail( $the_ID) || $sl_thumb!=""){
            				echo "
    <li><a href='".$sl_image_url[0]."'></a></li>
    ";
            			}
            		?>
              		<?php endwhile; ?>
            	</ul>
            </div>
    		<header class="container">
                <div>
        			<h1 id="logo">
        				<?php if(of_get_option('logo_type') == 'text_logo'){?>
        					<a>/" title="<?php bloginfo('description'); ?>" id="logoText" class="<?php bloginfo( 'template_url' );?>"><?php bloginfo( 'name', 'display' ); ?></a>
        	   				<p id="logoSlogan"><?php bloginfo('description'); ?></p>
        				<?php } else { ?>
        	          		<?php if(of_get_option('logo_url') != ''){ ?>
        	            		<a>/" class="<?php bloginfo( 'template_url' );?>" id="logoImg"><img src="<?php echo of_get_option('logo_url', "" ); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
        	            	<?php } else { ?>
        	            		<a>/" class="<?php bloginfo( 'template_url' );?>" id="logoImg"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('description'); ?>"></a>
        	            	<?php } ?>
        	          	<?php }?>
        			</h1>
                    <?php wp_nav_menu( array(
                        'menu_id'         => 'mainMenu',
        	   			'menu_class'      => 'menu',
        		        'container'       => 'nav',
        		        'container_id'    => 'menuWrapper',
        		        'depth'           => 0,
        		        'theme_location' => 'menu'
        		        ));
        			?>
                </div>
    <script type="text/javascript">
    
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-37639920-1']);
      _gaq.push(['_trackPageview']);
    
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    
    </script>
    		</header>
            <div class="clear"></div>

    [Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    What do I need to change?

    Steven,

    What plugin did you find that worked better?

    Thread Starter kathyelliott

    (@kathyelliott)

    Thank you all for the info!! It is working!!

    Thread Starter kathyelliott

    (@kathyelliott)

    Do you know how you would get the link to go to the bottom of the page, middle of the page, etc?

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    Thank you

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    Where can I find themes that www.ads-software.com will give support?

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    Thank you for your time Andrew.

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    Click here to go to my website. Thank you so much for your help Andrew!

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    Yes, I bought it from templatemonster.com, template #25557 City Portal.
    The template files I have are:
    404 Template
    (404.php)
    Archives
    (archive.php)
    Popup Comments
    (comments-popup.php)
    Comments
    (comments.php)
    Footer
    (footer.php)
    Theme Functions
    (functions.php)
    Header
    (header.php)
    Main Index Template
    (index.php)
    Page Template
    (page.php)
    Search Results
    (search.php)
    Search Form
    (searchform.php)
    sidebar-1.php
    sidebar-2.php
    Single Post
    (single.php)
    slider.php
    Styles
    Stylesheet
    (style.css)

    Should I add another page tempalte for all other pages? So I can remove the sidebars. If I do that, will I have to write coding somewhere else so the template will know that the homepage will have 2 columns but the others will not have any?

    Forum: Themes and Templates
    In reply to: Page setup
    Thread Starter kathyelliott

    (@kathyelliott)

    No, I dont know how to do the different layout for the other pages. Right now all the pages include 2 side bars. I only want the homepage to include sidebars and all other pages to have none.

    Thread Starter kathyelliott

    (@kathyelliott)

    Actually no. I personally use WordPress instead of HTML, however, my client has a html site that he is asking me to make changes too. So the map pointer that I need is for a HTML site

    Thread Starter kathyelliott

    (@kathyelliott)

    Ok thanks! Here is the URL to my site: https://myphysiciannm.co/

    I also need help getting the drop down menu to appear. I have sub-pages under services. and also to see if there is any way to change the header image to be different on each page. Here is my style.css

    [2589 lines of CSS moderated as per the Forum Rules. The maximum number of lines of that you can post in these forums is ten lines. Please just post a link to your site.]

Viewing 13 replies - 1 through 13 (of 13 total)