Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. Share your own thoughts and experience, accounts may be terminated for violations.

php code question...

Status
Not open for further replies.

matmat is verified member.

Nominet Registrar
Joined
Apr 18, 2007
Posts
3,852
Reaction score
191
I am currently calling brand related titles using 2 bits of code...

case "brand":
$banner["h2"] = translate("Golf shoes from ")." <strong>".$parts[1]."</strong>&nbsp;";
break;


and...


case "brand":
$header["title"] = "Golf shoes from ".$parts[1];
break;


How do I change these both to read "BRAND Golf Shoes" instead of "Golf shoes from BRAND"

Thanks!
 
Yo dude

case "brand":
$banner["h2"] = "<strong>".$parts[1] . "translate("Golf Shoes") . " </strong>&nbsp;";
break;

and...


case "brand":
$header["title"] = $parts[1] . "Golf Shoes";
break;


Should do the trick
 
  • Like
Reactions: mat
Worked it out!

There was an odd " inside your code before translate that shouldnt be there!

Thanks very much for your help, rep added.
 
Status
Not open for further replies.
Top Bottom