Store name appearing on all Page titles? How do i remove.

Gareth_Midson
Tourist
6 0 1

Hi All

Im after a little bot of help if you can. 

My store page appears behind all of my Page Titles pushing us over the 70 character limit, it is not visible on the admin side??

Here is the code on the Liquid.Theme - What do i have to remove in order for the site just to display the Titles i have inputted.

 

Really appreciate some help if you can. Thanks

 <title>{{ page_title }}</title>
  {% else %}
  <title>{{ shop.name }}</title>
  {% endif %}
  {% elsif template == '404' %}
  <title>Page Not Found - {{ shop.name }}</title>
  {% else %}
   <title>
     {% if current_tags %}
         {% assign meta_tags = current_tags | join: ','%}
         {% assign meta_tags_array =  meta_tags | split: ' ' %} 
         {% for meta_tags_word in meta_tags_array %} 
           {% assign tag = meta_tags_word  | capitalize %}
             {{tag}}
         {% endfor %} - {{ shop.name }}
     {% else %}
  {{page_title |append:'  ' }} - {{ shop.name }}
 {% endif %}{% endif %}
  </title>
  {% assign set_no_index = page_title | handle %}
  {% if set_no_index == 'thanks-for-registering-with-us' %}
  <meta name="robots" content="noindex"/>
  {% endif %}
  
  {% if page_description %}
  <meta name="description" content="{{ page_description | escape }}">
  {% endif %}

 

Jojo_Morrow
New Member
5 0 0

Hi there,

I'm quite new to this, but I had the same problem. I solved it by removing

  {% else %}
  <title>{{ shop.name }}</title>
  {% endif %}

from my theme.liquid file.

I'm not sure if this will work definately as I have a different theme, but it should help.

Good Luck!

0 Likes
tim
Shopify Expert
2861 117 937

Hi Gareth, change this line 

 {{page_title |append:'  ' }} - {{ shop.name }}

to this:

 {{ page_title }}

https://help.shopify.com/themes/liquid/objects/page-title

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
0 Likes
Gareth_Midson
Tourist
6 0 1

HI, Thank you so much, works a treat.

 

Thanks again really help and i appreciate your time.

 

Gareth

0 Likes
DharmendraUdr
New Member
2 0 0

Hello,

Do go with meta.liquid where find these line of code

{% comment %} Shop name {% endcomment %}
{%- assign seo_title = seo_title | append: ' | ' -%}

{%- assign seo_title = seo_title | append: shop.name -%}

 

Then remove the last line of code and save the file

(Remove this line ) -> {%- assign seo_title = seo_title | append: shop.name -%}

 

Refresh your site you can find the solution.

Thank you

0 Likes
katiesummit1
New Member
4 0 0

Hi there! I'm having the same issue and hoping someone can help.

I've seen a few posts asking this question, and all are fixed by finding the <title> tag or {{ page_title }}

However I can't find anything like this in the theme.liquid, only the first line 'if page_title == challenge' which doesn't seem to reference 'store name' anywhere.

I've pasted code below, would really appreciate some help! (sorry if I haven't pasted correctly, I'm a complete novice with code )

{%- if page_title == 'Challenge' -%}
  {%- assign is_design_mode = true -%}
{%- endif -%}
<!doctype html>
<!--[if IE 9]> <html class="ie9 no-js supports-no-cookies" lang="{{ shop.locale }}"{% if settings.layout_enable_rtl %} dir="rtl"{% endif %}> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js supports-no-cookies" lang="{{ shop.locale }}"{% if settings.layout_enable_rtl %} dir="rtl"{% endif %}> <!--<![endif]-->
{% capture document %}

<script type="text/javascript">
(function() {
    window.sib = {
        equeue: [],
        client_key: "szkdt53skxvjc7sv2va16"
    };
    /* OPTIONAL: email for identify request*/
    // window.sib.email_id = 'example@domain.com';
    window.sendinblue = {};
    for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {
    (function(k) {
        window.sendinblue[k] = function() {
            var arg = Array.prototype.slice.call(arguments);
            (window.sib[k] || function() {
                    var t = {};
                    t[k] = arg;
                    window.sib.equeue.push(t);
                })(arg[0], arg[1], arg[2]);
            };
        })(j[i]);
    }
    var n = document.createElement("script"),
        i = document.getElementsByTagName("script")[0];
    n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src="https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();
})();
</script>



<head>
  <meta name="google-site-verification" content="Gf2FeItq2UUydaqV8fEPmxZCwubQ15H1WWU5cCRFSIY" />
  <!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W44PW6K');</script>
<!-- End Google Tag Manager -->
  <meta name="google-site-verification" content="7AxYu4cTuLLbfneWVxL3TLJvnDDZx4jvbvh1TFwh7Bw" />
  {% include 'head' %}
  {%- if settings.layout_include_weglot_app -%}
    {% capture weglot_includes %}
      {% include 'weglot_hreftags' %}
      {% include 'weglot_switcher' %}
    {% endcapture %}
  {%- endif -%}
  {%- if is_design_mode -%}
    
{{ content_for_header }}
    {{ weglot_includes }}
  {%- else -%}
    {% capture get_content_for_header %}    
{{ content_for_header }}
      {{ weglot_includes }}
    {% endcapture %}
  {%- endif -%}
<!--AZEXO_Header_Scripts--> {% include 'azexo-header-scripts' %} <!--End_AZEXO_Header_Scripts--><!--AZEXO_Version_81--></head>

{% include 'globo.formbuilder.scripts' %}
<body{% include 'layout-get-body-attributes' %}>
{%- if settings.layout_enable_preloader -%}
  {% include 'layout-get-preloader' with is_fixed: true %}
{%- endif -%}

{% section 'global-settings' %}
{% section 'header' %}
<main id="MainContent">
  {{ content_for_layout }}{% include 'sectionhub' %}
</main>
{% section 'footer' %}
{% section 'popup' %}
{% section 'footbar' %}
{% include 'fixed-sidebar' %}
{% include 'templates' %}
{% include 'layout-get-includes' %}
{% include 'layout-get-version' %}
{% endcapture %}
{%- if is_design_mode -%}
  {{ document }}
{%- else -%}
  {{ document | replace: '   ', ' ' | replace: '  ', ' ' }}
{%- endif -%}
{% capture get_content_for_header %}
  {%- if settings.dev_enable_content_for_header -%}
    {%- assign get_content_for_header = get_content_for_header | replace: "window.addEventListener('load', asyncLoad, false);", "window.addEventListener('theme.loaded.jquery', asyncLoad, false);" | replace: "window.attachEvent('onload', asyncLoad);", "window.attachEvent('theme.loaded.jquery', asyncLoad);" -%}
    {{ get_content_for_header }}
  {%- endif -%}
  {{ weglot_includes }}
{% endcapture %}
{%- unless is_design_mode -%}
  {{ get_content_for_header | replace: '   ', ' ' | replace: '  ', ' ' }}
{%- endunless -%}
<!--AZEXO_Footer_Scripts--> {% include 'azexo-footer-scripts' %} <!--End_AZEXO_Footer_Scripts--><!-- WPD Start -->
                {% if customer.tags.size > 0 and template != 'cart' %}
                <script>
                    document.addEventListener('DOMContentLoaded', function() {
                      let checkoutbtninterval = setInterval(function(){
                        var x=document.querySelectorAll("input[name='checkout'], button[name='checkout'], input[name='goto_pp'], button[name='goto_pp'], input[name='goto_gc'], button[name='goto_gc'], [href$='checkout']");
                        var WPD_RedirectToCart = function(e) {
                          	e.stopPropagation();
                            e.preventDefault();
                            window.location = '/cart';
                            };
                            for (var i = 0; i < x.length; i++) {
                                x[i].addEventListener('click', WPD_RedirectToCart, false);
                            }
},500)
                });
              </script>
               {% endif %}
         

               {% if customer.tags.size > 0 and template == 'cart' %}
                 {% include 'wcp_cart' %}
               {% endif %}
               <!-- WPD End -->
  {% if canonical_url contains "apps/wpdapp" %}
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <style>
      .wpd_clearfix{ padding-top: 15px; padding: 5px }
      .wpd_submit {  margin-left:10px }
      #website, #taxid, .wpd_create_account, #country {display:none}
      #MainContent{ margin-top: 25px }
      .wpd_headermsg .title {
    text-align: left;        
	}
      .wpd_hide,#city{ display: none}
      input[type="radio"]{
      	min-width: 0% !important;
    	min-height: 0px;
        display:inline !important;
      }
      .wh-ad-custom{ margin-left: 10px}
      
    </style>
    <script>
      //document.querySelector('.wpd_address').innerText = "";
      document.querySelector('.wpd_address2').innerText = "* Suburb";
      //document.querySelector('.wpd_city').innerText = "* State";   
      document.querySelector('.company').innerText = "* Name of Club or School";
      $('#company').insertBefore('#comp_address');
   // var wpd_submit = document.getElementsByClassName("wpd_submit")[0];
    //wpd_submit.classList.add("");
      
          var EIM = document.createElement("div");                
      EIM.innerHTML='<div class="wpd_clearfix wh-ad-custom wpd_hide" id="type-of-sports-container"><label class="wpd_pppc">What type of sports club?</label>'
      +'<select id="type-of-sports">'
      +'<option value="Athletics">Athletics</option>'
      +'<option value="AFL">AFL</option>'
      +'<option value="Basketball">Basketball</option>'
      +'<option value="Cricket">Cricket</option>'
      +'<option value="Netball">Netball</option>'
      +'<option value="Rugby League">Rugby League</option>'
      +'<option value="Rugby Union">Rugby Union</option>'
      +'<option value="Soccer">Soccer</option>'
      +'<option value="Swimming">Swimming</option>'
      +'<option value="Table Tennis">Table Tennis</option>'
      +'<option value="Tennis">Tennis</option>'
      +'<option value="Touch Rugby">Touch Rugby</option>'
      +'<option value="Volleyball">Volleyball</option>'
      +'<option value="Other">Other</option>'
      +'</select>';
      +'</div>';
      //document.getElementsByClassName("wpd_full_with")[0].append(EIM);        
	$(EIM).insertAfter('#email');
      
      
      var EIM = document.createElement("div");                
      EIM.innerHTML='<div class="wpd_clearfix wh-ad-custom wpd_hide" id="type-of-school-container"><label class="wpd_pppc">What type of school?</label>'
      +'<select id="type-of-school">'
      +'<option value="Daycare/Preschool">Daycare/Preschool</option>'      
      +'<option value="High School">High School</option>'
      +'<option value="OSHC">OSHC</option>'
      +'<option value="Primary School">Primary School</option>'
      +'<option value="Special Education">Special Education</option>'
      +'<option value="University/Tafe">University/Tafe</option>'
      +'<option value="Other">Other</option>'
      +'</select>';
      +'</div>';
      //document.getElementsByClassName("wpd_full_with")[0].append(EIM);        
	$(EIM).insertAfter('#email');
      
        //existing customer
      var EIM = document.createElement("div");                
      EIM.innerHTML='<div class="wpd_clearfix wh-ad-custom"><label class="wpd_pppc">I represent a</label>'
      +'<div>'
      +'<p><input type="radio" name="represent" value="school" >School</p>'
      +'<p><input type="radio" name="represent" value="sports club" >Sports Club</p>'
      +'</div>';
      +'</div>';
      //document.getElementsByClassName("wpd_full_with")[0].append(EIM);        
	$(EIM).insertAfter('#email');
            
         
      var wpd_classname = document.getElementsByClassName("wpd_submit");
    var change_note_value = function() {
          var ExtraValue='\\r\\n\\r\\n Represent : '+$('input[name="represent"]:checked').val();
      
      if($('input[name="represent"]:checked').val() == "school" ){
            ExtraValue+='\\r\\n\\r\\n School : '+ $('#type-of-school option:selected').val();
      
      }else if($('input[name="represent"]:checked').val() == "sports club" ){
            ExtraValue+='\\r\\n\\r\\n Sports Club : '+ $('#type-of-sports option:selected').val();
      }    
      	
          document.getElementById("ExtraFields").value=ExtraValue;
    }
        for (var i = 0; i < wpd_classname.length; i++) {
        wpd_classname[i].addEventListener('click', change_note_value, false);
    }
      
      $('input[name="represent"]').on('change',function(){

      var get_val = $(this).val();
//       console.log(get_val);
      if(get_val == "school" ){
      $('#type-of-sports-container').hide();
      $('#type-of-school-container').show();
      }else{
      $('#type-of-school-container').hide();
      $('#type-of-sports-container').show();
      }


      });
    </script>
  {% endif %}
  <script src="{{ 'sectionhub.js' | asset_url }}" defer></script></body>
</html>

 

0 Likes