| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
.tpl file to add key words to bottom of pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I would like a little help writing a small code that I can place at the bottom of my bottom.tpl file. My goal is to insert the category/product name into a small paragraph so I can have my keyword near the bottom of my page. Apparently this will help a little with the SEO of the page. The logic I want is this...
If it's the home page (which I think is this code {if $main eq "catalog" and $current_category.category eq ""} ) then <p>blah blah blah</p> {else} {if the page is a category page} <p> blah blah {insert category name} blah blah</p> {else} {if the page is a product page} <p> blah blah {insert product name} blah blah</p> can anyone give me a hand with this? I don't know where to look up the correct "terms" for different pages or I would try and do it myself. For example I don't know how to say if a category page and not the home page or product page. Things like that.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Why not just add {include file="location.tpl"} to bottom.tpl?? This will add the navigation breadcrumb trail (including the category) to the bottom of the page.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
![]() I want to put an actual paragraph in with some meaningful text in it. I guess that your suggestion could work for now until I get a little help coding what I want. Thanks for that idea.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Code:
|
|||||||||
#5
|
|||||||
|
|||||||
![]() Hi Jon,
Beautiful, that is exactly what I was looking for. Thanks
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|