[Skip to main content](#vessel-content)

#   Custom Page Titles?

##

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#56659](#56659) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom Page Titles?](/forum/4-how-to/14722-custom-page-titles?start=20#56659 "The current page title (title tag) for a product is 'product&#95;name'. I would like to change this to have a fuller more menaingful page title in the browser and for SEO.  I thought of: 1. creating a custom field on the products page in the back-end and calling it say... 'custom&#95;title'. 2. Hide it from the front-end 3. Alter the code in the custom view of show.php...but what?  Can I use here...  But first it needs called from the table. I am not a PHP'er but can tweek - at little.  Can you help with the bit to retrieve it from the Db?  Will it be overwritten by the default code in view.html.php? ' $document-&gt;setTitle( $page&#95;title );'")*

You had mixed some of the file overrides while editing them.
You had actually edited the "listing" of the view "view" of the backend and entered the code of the "show" file of the view "product" of the front end.
I've removed the override file thanks to ninjaXplorer and it's working again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NzIyLWN1c3RvbS1wYWdlLXRpdGxlcz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Sue](/forum/user/7346-sue "View Sue's Profile")**
- [![Sue's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7346-sue "View Sue's Profile")
- [ Offline](/forum/user/7346-sue)

Less More

- Posts: 43
- Thank you received: 0
-
-

14 years 4 months ago [\#56687](#56687) by [Sue](/forum/user/7346-sue "View Sue's Profile")  Replied by *[Sue](/forum/user/7346-sue "View Sue's Profile")* on topic *[Re: Custom Page Titles?](/forum/4-how-to/14722-custom-page-titles?start=20#56687 "The current page title (title tag) for a product is 'product&#95;name'. I would like to change this to have a fuller more menaingful page title in the browser and for SEO.  I thought of: 1. creating a custom field on the products page in the back-end and calling it say... 'custom&#95;title'. 2. Hide it from the front-end 3. Alter the code in the custom view of show.php...but what?  Can I use here...  But first it needs called from the table. I am not a PHP'er but can tweek - at little.  Can you help with the bit to retrieve it from the Db?  Will it be overwritten by the default code in view.html.php? ' $document-&gt;setTitle( $page&#95;title );'")*

Ok.
Thank you.
I'll try to edit the right files now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NzIyLWN1c3RvbS1wYWdlLXRpdGxlcz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")**
- [![rhinoboy82's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5708.png)](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")
- [ Offline](/forum/user/5708-rhinoboy82)

Less More

- Posts: 45
- Thank you received: 7
-
-
- [](http://disctraininghub.com)
-

14 years 2 months ago [\#64060](#64060) by [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")  Replied by *[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")* on topic *[Re: Custom Page Titles?](/forum/4-how-to/14722-custom-page-titles?start=20#64060 "The current page title (title tag) for a product is 'product&#95;name'. I would like to change this to have a fuller more menaingful page title in the browser and for SEO.  I thought of: 1. creating a custom field on the products page in the back-end and calling it say... 'custom&#95;title'. 2. Hide it from the front-end 3. Alter the code in the custom view of show.php...but what?  Can I use here...  But first it needs called from the table. I am not a PHP'er but can tweek - at little.  Can you help with the bit to retrieve it from the Db?  Will it be overwritten by the default code in view.html.php? ' $document-&gt;setTitle( $page&#95;title );'")*

I would like to change the page title for just the category. I know I am in the right view because I can change the title to a string, but I can't seem to figure out what to put in the code (where I am showing "XXX" below) to get the category name to appear:
Code:

$doc =&amp; JFactory::getDocument(); $doc-&gt;setTitle(XXX);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NzIyLWN1c3RvbS1wYWdlLXRpdGxlcz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 2 months ago [\#64061](#64061) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Custom Page Titles?](/forum/4-how-to/14722-custom-page-titles?start=20#64061 "The current page title (title tag) for a product is 'product&#95;name'. I would like to change this to have a fuller more menaingful page title in the browser and for SEO.  I thought of: 1. creating a custom field on the products page in the back-end and calling it say... 'custom&#95;title'. 2. Hide it from the front-end 3. Alter the code in the custom view of show.php...but what?  Can I use here...  But first it needs called from the table. I am not a PHP'er but can tweek - at little.  Can you help with the bit to retrieve it from the Db?  Will it be overwritten by the default code in view.html.php? ' $document-&gt;setTitle( $page&#95;title );'")*

With the latest version of HikaShop, there is a "page title" option for each category. Just edit the category and set that option and voilà.

The following user(s) said Thank You: [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NzIyLWN1c3RvbS1wYWdlLXRpdGxlcz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")**
- [![rhinoboy82's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5708.png)](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")
- [ Offline](/forum/user/5708-rhinoboy82)

Less More

- Posts: 45
- Thank you received: 7
-
-
- [](http://disctraininghub.com)
-

14 years 2 months ago -  14 years 2 months ago [\#64062](#64062) by [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")  Replied by *[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")* on topic *[Re: Custom Page Titles?](/forum/4-how-to/14722-custom-page-titles?start=20#64062 "The current page title (title tag) for a product is 'product&#95;name'. I would like to change this to have a fuller more menaingful page title in the browser and for SEO.  I thought of: 1. creating a custom field on the products page in the back-end and calling it say... 'custom&#95;title'. 2. Hide it from the front-end 3. Alter the code in the custom view of show.php...but what?  Can I use here...  But first it needs called from the table. I am not a PHP'er but can tweek - at little.  Can you help with the bit to retrieve it from the Db?  Will it be overwritten by the default code in view.html.php? ' $document-&gt;setTitle( $page&#95;title );'")*

That works. I haven't migrated my live site to the new version yet, but I guess that's another reason to do it soon!

Is there a listing of the changes from 1.5.8 to the newest version?

Last edit: 14 years 2 months ago by [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile"). Reason: Additional information

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0NzIyLWN1c3RvbS1wYWdlLXRpdGxlcz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
