If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / How to bulk modify title tag

How to bulk modify title tag

Started by dreadscott on 23 Jun 2024, 12:29 PM · Views: 1,280

Results 1 to 7 of 7
23 Jun 2024, 12:29 PM
#1
dreadscott avatar

dreadscott

New Zenner

Join Date:
Jul 2011
Location:
Hainesport, NJ
Posts:
13
Plugin Contributions:
0

How to bulk modify title tag

URL: https://www.usrallyteam.com
ZC: 1.5.8a
PHP version: 7.4.33
MySQL 8.0.37
HTTP Server: Apache

Hey, folks. I'm an "advanced n00b" with a a basic problem to resolve. Hundreds of my products include a non-standard "|" character in the title tag. For example, this product's meta title tag is written as: | 4-cylinder direct port WMI (octane + fueling)

How do I globally remove all the | as the first character from title tags written that way? Initial research leads me to believe that I must find the TABLE_META_TAGS_PRODUCTS_DESCRIPTION table and then adjust it. How is this done? Or, where do I start to research this topic? Can I/should I replace the | with another space holder like an * or -, etc?

Thanks,

23 Jun 2024, 12:48 PM
#2
dreadscott avatar

dreadscott

New Zenner

Join Date:
Jul 2011
Location:
Hainesport, NJ
Posts:
13
Plugin Contributions:
0

Re: How to bulk modify title tag

ONE other thing... I'm using the Sitemap XML v4.0.1 plugin and see this advice:
Attachment 20663

However, a simple URL check demonstrates that the file is right there. Should I just ignore the warning? Why do these things happen? :)
https://www.usrallyteam.com/robots.txt

23 Jun 2024, 1:33 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: How to bulk modify title tag

dreadscott:

ONE other thing... I'm using the Sitemap XML v4.0.1 plugin and see this advice:
Attachment 20663

However, a simple URL check demonstrates that the file is right there. Should I just ignore the warning? Why do these things happen? :)
https://www.usrallyteam.com/robots.txt
SitemapXMP uses this concatenation to determine the presumed means to access a site's sitemap.xml file:

HTTP_CATALOG_SERVER . DIR_WS_CATALOG . SITEMAPXML_SITEMAPINDEX . '.xml';

... where the first two constants come from your admin/includes/configure.php and the last one is set in the SitemapXML configuration settings. From viewing the robots.txt, that contains a www. prefix to the site's URL which is not reflected in the HTTP_CATALOG_SERVER setting.

Sitemap: https://[B]www.[/B]usrallyteam.com/sitemap.xml
23 Jun 2024, 1:37 PM
#4
dreadscott avatar

dreadscott

New Zenner

Join Date:
Jul 2011
Location:
Hainesport, NJ
Posts:
13
Plugin Contributions:
0

Re: How to bulk modify title tag

I thank you for the help, lat9. In plain English, then... What you're saying is that a simple change will fix the problem, yes?

I should rewrite this:
Sitemap: https://www.usrallyteam.com/sitemap.xml

to this?
Sitemap: https://usrallyteam.com/sitemap.xml

23 Jun 2024, 1:43 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: How to bulk modify title tag

dreadscott:

I thank you for the help, lat9. In plain English, then... What you're saying is that a simple change will fix the problem, yes?

I should rewrite this:
Sitemap: https://www.usrallyteam.com/sitemap.xml

to this?
Sitemap: https://usrallyteam.com/sitemap.xml
Yes, sorry for not stating the actual solution from the get-go!

23 Jun 2024, 1:48 PM
#6
dreadscott avatar

dreadscott

New Zenner

Join Date:
Jul 2011
Location:
Hainesport, NJ
Posts:
13
Plugin Contributions:
0

Re: How to bulk modify title tag

lat9:

Yes, sorry for not stating the actual solution from the get-go!

Alrighty, I do believe we've made progress on this one. Thanks so much for the help. :clap:
Attachment 20664

Now about this title meta tag challenge... Hmmm...

23 Jun 2024, 3:34 PM
#7
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: How to bulk modify title tag

dreadscott:

Now about this title meta tag challenge... Hmmm...

The link you posted, of a product, shows the title tag as

<title>(RACE) DPR4 | 4-cylinder direct port WMI (octane + fueling)</title>

which looks fine, but I do note others of yours in Google search results that do begin with '|'

e.g. ```html

<title>| Direct port injection w/RACE valves = best octane + fueling</title> ```

that is the tag for a category page and shouldn't be happening - it is missing the 'categories_name' and that is the problem. I don't have an answer but the category title tags are generated in \includes\modules\meta_tags.php (or its override). Compare yours with the original to see if there's something awry.

Anyways, not an answer but, the '|' separator/divider usually defined in \includes\languages\english\lang.meta_tags.php (or the template's override copy if you have one). Removing it might resolve the issue of the second example but will potentially screw up the appearance of the first tag.

Simon