• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

php code question...

Status
Not open for further replies.

matmat is verified member.

Nominet Registrar
Joined
Apr 18, 2007
Posts
3,849
Reaction score
190
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