Nasfat Posted October 28, 2009 Posted October 28, 2009 Is there a simple way of having the product's name come up as the title tag for product_info.php, without having to add any contributions to my site? I'm not worried about changing the meta tags or having all the features of the Header Tag contributions. I'm just looking for some php code to stick in the product_info.php title tag that echo's the product's name, like what the pop-up windows have. Is this even possible to do? I'm fairly new to PHP, but I can't figure out on my own how the pop-up windows have unique title tags and the product_info.php doesn't. Thanks for the help
Ben Nevis Posted October 28, 2009 Posted October 28, 2009 Is there a simple way of having the product's name come up as the title tag for product_info.php, without having to add any contributions to my site? I'm not worried about changing the meta tags or having all the features of the Header Tag contributions. I'm just looking for some php code to stick in the product_info.php title tag that echo's the product's name, like what the pop-up windows have. Is this even possible to do? I'm fairly new to PHP, but I can't figure out on my own how the pop-up windows have unique title tags and the product_info.php doesn't. Thanks for the help I suppose you would have to query the products table for the product name before the html declarations start, and then echo it in the title tag instead of TITLE, if you really mean you want the product name in the browser title bar? www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used!
Ben Nevis Posted October 29, 2009 Posted October 29, 2009 ok, seems it's not quite as simple as that, but have a look at this contribution, which might do what you're looking for. www.jyoshna.com. Currently using OsC with STS, Super Download Store, Categories Descriptons, Manufacturers Description, Individual Item Status, Infopages unlimited, Product Sort, Osplayer with flashmp3player, Product Tabs 2.1 with WebFx Tabpane and other bits and pieces including some I made myself. Many thanks to all whose contributions I have used!
jhande Posted October 29, 2009 Posted October 29, 2009 I'm not worried about changing the meta tags or having all the features of the Header Tag contributions. Hey Nick, You really should consider adding a Header Tags contribution, something like Header Tags SEO. They really do help with search engines, plus you can accomblish what you're after. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Nasfat Posted October 29, 2009 Author Posted October 29, 2009 I suppose you would have to query the products table for the product name before the html declarations start, and then echo it in the title tag instead of TITLE, if you really mean you want the product name in the browser title bar? Ya, that's exactly what I'm looking for. I'll give that a try and if not, I'll try installing the contributions. Thanks for the advice everyone!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.