Search our site
Forum Search
Google Site Search
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/07/2018 : 16:57:21
Hello, We are working on the search engine friendly suggestions (have not changed anything yet). When we look in the header.php file via WP, there is no "title" to edit? We also tried your SEO plugin, entered everything but the changes do not show up? So we uninstalled the plugin for now. Instructions: The first thing you need to do is in the WordPress admin go to Appearance > Editor and choose "Header" (header.php) Scroll down the code a little way and you should find the opening <title> tag, typically it will look something like this <title><?php wp_title( '|', true, 'right' ); ?></title>
Heres a copy of our header.php
<?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/metainfo.php"; ?><!DOCTYPE html><html lang="en"> <head>
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href='/css/ectcart.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="/js/ectcart.js"></script> <link href="<?php echo ThemeRoot()?>ectstyle.css" rel="stylesheet"> <link href="<?php echo ThemeRoot()?>style.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo ThemeRoot()?>css/flexslider.css" type="text/css" media="screen" /> <link type="text/css" rel="stylesheet" href="magiczoomplus/magiczoomplus.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="<?php echo ThemeRoot()?>js/jquery.flexslider.js"></script> <script src="<?php echo ThemeRoot()?>js/custom.js"></script> <?php if(strpos($_SERVER['PHP_SELF'],'proddetail.php')!==FALSE){ ?> <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" /> <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> <?php } ?>
<?php wp_head()?>
</head> <body> <div class="mainWrapper"> <div class="headerWrapper"> <div class="top_row"> <div class="container"> <div class="row clearfix"> <div class="col-6 topbarNav"><?php GenerateNav('top')?></div> <div class="col-6 text-right">Suits You Sexy <?php echo Th('opening_hours')?></div> </div> </div> </div> <div class="container"> <div class="logo_row"> <div class="row clearfix"> <div class="col-4"> <a href="<?php echo site_url('/')?>"><img src="<?php echo get_template_directory_uri()?>/images/logo2.png" alt="<?php echo bloginfo()?>" /></a> </div> <div class="col-8 text-right logo_row_right"> <div class="col-7 phone_no"><h2><?php echo Th('call_support');?></h2></div> <div class="col-5 topsearchWrap"> <div class="top_search"> <form method="post" action="search.php" id="search_mini_form"> <input type="hidden" name="posted" value="1"> <input type="text" class="search_look" value="" name="stext" id="search" autocomplete="off" placeholder="What are you looking for?"> <input type="submit" value="Search"> </form> </div> </div> </div> </div> </div> <div class="nav_bar clearfix"> <div class="container"> <div class="row"> <div class="col-12"> <div class="relative"> <div class="navTab"><img src="<?php echo get_template_directory_uri()?>/images/nav_btn.png" alt=""/></div> <div class="navLink"><?php GenerateNav('main')?></div> </div> </div> </div> </div> </div> </div>
Thanks, Clyde http://www.SuitsYouSwimwear.com
|
Andy
ECT Moderator
95440 Posts |
Posted - 11/07/2018 : 23:58:14
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/08/2018 : 14:19:07
Thank you... I did that and it's working with the exception of a second "title" when you view source? We tried removing the following line too, but still shows 2 titles?: <title><?php wp_title( '|', true, 'right' ); ?></title>
You can see the problem here: https://suitsyousexy.com/categories.php?cat=18
Thanks, Clyde http://www.SuitsYouSwimwear.com
Edited by - suitsyou on 11/08/2018 14:54:56
|
Andy
ECT Moderator
95440 Posts |
Posted - 11/09/2018 : 00:05:39
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/10/2018 : 07:49:50
It's not Yoast, we deactivated it and even uninstalled it, the second title is still showing up. You can see it on the page source here https://suitsyousexy.com/products.php?cat=2 We also tried with the ECT SEO plugin and without, no changes, currently it's deactivated.
Here's a copy of our header.php
<?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/metainfo.php"; ?><!DOCTYPE html><html lang="en"> <head>
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php if(@$GLOBALS['ectcartpage']=='proddetail'){?> <title><?php print $pagetitle;?></title> <meta name="Description" content="<?php print str_replace('"','"',$productdescription)?>" /> <?php }elseif(@$GLOBALS['ectcartpage']=='products'){?> <title><?php echo esc_attr(get_bloginfo('name', 'display')); ?> store: <?php if($topsection != "") print $topsection . ", "; print $sectionname?></title> <meta name="Description" content="<?php print str_replace('"','"',$sectiondescription)?>" />
<?php }elseif(@$GLOBALS['ectcartpage']=='categories'){?> <title><?php echo esc_attr(get_bloginfo('name', 'display')); ?> store: Micro Bikinis, Thong Bikinis and Extreme Bikinis <?php if($topsection != "") print $topsection . ", "; print $sectionname?></title>
<?php }elseif(@$GLOBALS['ectcartpage']=='cart'){?> <title>Shopping cart and checkout for <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="Online store shopping cart and checkout for <?php echo esc_attr(get_bloginfo('name', 'display')); ?>" />
<?php }elseif(@$GLOBALS['ectcartpage']=='affiliate'){?> <title>Affiliate program for <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> affiliate program" />
<?php }elseif(@$GLOBALS['ectcartpage']=='clientlogin'){?> <title>Customer account for <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> client login" />
<?php }elseif(@$GLOBALS['ectcartpage']=='giftcertificate'){?> <title>Purchase a gift certificate from <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> gift certificates" />
<?php }elseif(@$GLOBALS['ectcartpage']=='orderstatus'){?> <title>Check the status of your order on <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> order status" />
<?php }elseif(@$GLOBALS['ectcartpage']=='search'){?> <title>Search for products on <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> search" />
<?php }elseif(@$GLOBALS['ectcartpage']=='sorry'){?> <title>Sorry - there seems to be a problem with the order </title> <meta name="Description" content="Sorry - there seems to be a problem with the order" />
<?php }elseif(@$GLOBALS['ectcartpage']=='thanks'){?> <title>Thank you for purchasing from <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> confirmation page" />
<?php }elseif(@$GLOBALS['ectcartpage']=='tracking'){?> <title>Track your purchase from <?php echo esc_attr(get_bloginfo('name', 'display')); ?> </title> <meta name="Description" content="<?php echo esc_attr(get_bloginfo('name', 'display')); ?> tracking page" />
<?php }else{ ?>
<?php } ?> <link href='/css/ectcart.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="/js/ectcart.js"></script> <link href="<?php echo ThemeRoot()?>ectstyle.css" rel="stylesheet"> <link href="<?php echo ThemeRoot()?>style.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo ThemeRoot()?>css/flexslider.css" type="text/css" media="screen" /> <link type="text/css" rel="stylesheet" href="magiczoomplus/magiczoomplus.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="<?php echo ThemeRoot()?>js/jquery.flexslider.js"></script> <script src="<?php echo ThemeRoot()?>js/custom.js"></script> <?php if(strpos($_SERVER['PHP_SELF'],'proddetail.php')!==FALSE){ ?> <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" /> <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> <?php } ?>
<?php wp_head()?>
</head> <body> <div class="mainWrapper"> <div class="headerWrapper"> <div class="top_row"> <div class="container"> <div class="row clearfix"> <div class="col-6 topbarNav"><?php GenerateNav('top')?></div> <div class="col-6 text-right">Suits You Sexy <?php echo Th('opening_hours')?></div> </div> </div> </div> <div class="container"> <div class="logo_row"> <div class="row clearfix"> <div class="col-4"> <a href="<?php echo site_url('/')?>"><img src="<?php echo get_template_directory_uri()?>/images/logo2.png" alt="<?php echo bloginfo()?>" /></a> </div> <div class="col-8 text-right logo_row_right"> <div class="col-7 phone_no"><h2><?php echo Th('call_support');?></h2></div> <div class="col-5 topsearchWrap"> <div class="top_search"> <form method="post" action="search.php" id="search_mini_form"> <input type="hidden" name="posted" value="1"> <input type="text" class="search_look" value="" name="stext" id="search" autocomplete="off" placeholder="What are you looking for?"> <input type="submit" value="Search"> </form> </div> </div> </div> </div> </div> <div class="nav_bar clearfix"> <div class="container"> <div class="row"> <div class="col-12"> <div class="relative"> <div class="navTab"><img src="<?php echo get_template_directory_uri()?>/images/nav_btn.png" alt=""/></div> <div class="navLink"><?php GenerateNav('main')?></div> </div> </div> </div> </div> </div> </div>
Thanks, Clyde http://www.SuitsYouSwimwear.com

|
Andy
ECT Moderator
95440 Posts |
Posted - 11/10/2018 : 08:01:09
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/10/2018 : 09:36:50
Thank you, so no yoast and no ect seo? I removed the code and we're getting the following error? Your PHP code changes were rolled back due to an error on line 16 of file wp-content/themes/ectwpstyles/header.php. Please fix and try saving again. syntax error, unexpected '}', expecting end of file
This is what we currently have (with error).
<?php session_cache_limiter('none'); session_start(); ob_start(); include "vsadmin/db_conn_open.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/includes.php"; include "vsadmin/inc/incfunctions.php"; include "vsadmin/inc/metainfo.php"; ?><!DOCTYPE html><html lang="en"> <head>
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php }else{ ?>
<?php } ?> <link href='/css/ectcart.css' rel='stylesheet' type='text/css'> <script type="text/javascript" src="/js/ectcart.js"></script> <link href="<?php echo ThemeRoot()?>ectstyle.css" rel="stylesheet"> <link href="<?php echo ThemeRoot()?>style.css" rel="stylesheet"> <link rel="stylesheet" href="<?php echo ThemeRoot()?>css/flexslider.css" type="text/css" media="screen" /> <link type="text/css" rel="stylesheet" href="magiczoomplus/magiczoomplus.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> <script src="<?php echo ThemeRoot()?>js/jquery.flexslider.js"></script> <script src="<?php echo ThemeRoot()?>js/custom.js"></script> <?php if(strpos($_SERVER['PHP_SELF'],'proddetail.php')!==FALSE){ ?> <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" /> <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> <?php } ?>
<?php wp_head()?>
</head> <body> <div class="mainWrapper"> <div class="headerWrapper"> <div class="top_row"> <div class="container"> <div class="row clearfix"> <div class="col-6 topbarNav"><?php GenerateNav('top')?></div> <div class="col-6 text-right">Suits You Sexy <?php echo Th('opening_hours')?></div> </div> </div> </div> <div class="container"> <div class="logo_row"> <div class="row clearfix"> <div class="col-4"> <a href="<?php echo site_url('/')?>"><img src="<?php echo get_template_directory_uri()?>/images/logo2.png" alt="<?php echo bloginfo()?>" /></a> </div> <div class="col-8 text-right logo_row_right"> <div class="col-7 phone_no"><h2><?php echo Th('call_support');?></h2></div> <div class="col-5 topsearchWrap"> <div class="top_search"> <form method="post" action="search.php" id="search_mini_form"> <input type="hidden" name="posted" value="1"> <input type="text" class="search_look" value="" name="stext" id="search" autocomplete="off" placeholder="What are you looking for?"> <input type="submit" value="Search"> </form> </div> </div> </div> </div> </div> <div class="nav_bar clearfix"> <div class="container"> <div class="row"> <div class="col-12"> <div class="relative"> <div class="navTab"><img src="<?php echo get_template_directory_uri()?>/images/nav_btn.png" alt=""/></div> <div class="navLink"><?php GenerateNav('main')?></div> </div> </div> </div> </div> </div> </div>
Thanks, Clyde http://www.SuitsYouSwimwear.com

|
Andy
ECT Moderator
95440 Posts |
Posted - 11/10/2018 : 09:50:48
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/10/2018 : 10:09:40
Thank you, that worked. So how can we get the product pages to have unique titles? With the ect seo plugin, al the product pages have the same title. Same for categories.
Thanks, Clyde http://www.SuitsYouSwimwear.com
|
Andy
ECT Moderator
95440 Posts |
Posted - 11/10/2018 : 11:10:19
|
suitsyou
Advanced Member
USA
487 Posts Pre-sales questions only (More Details...)
|
Posted - 11/10/2018 : 12:13:11
Got it, you guys are the best!
Thanks, Clyde http://www.SuitsYouSwimwear.com
|
|
|
Shopping Cart Software Forum for Ecommerce Templates |
© 2002-2022 ecommercetemplates.com |
 |
|
|