![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]() I've noticed a flaw in how labeling categories is setup.
There are two main uses for a category name: 1) category navigation 2) page title Here's an example of category levels: 1. retro clothing 1.1 dresses 1.1.1 wedding that works great for navigation. However, as a page title, "Wedding" doesn't work because it's non description and is not in the context of a hierarchy. For a title, I'd want "Retro Wedding Dresses" My suggestion is that you add a page title field. That way you have more control - similarly to how you're allowing a user to enter the slug as a different label. |
#2
|
|||
|
|||
![]() A workaround is to test on category ID and then specify a unique title for that ID.
1. To find the ID of a category just click on a category name in the Factory and look in the URL. The category ID is the number following cat=. 2. Then go to The Factory > Your Store > VIEWS > CATEGORY PAGE > Default > View menu > View <head> Elements 3. Replace <title>[category.name] - Vintage Shopper</title> with the code below. In example below a unique title has been specified for 3 categories with IDs 123, 456 and 789. The other categories follow the default. Adjust the code to your needs. Code:
<?php if ($category->id==123){ ?> <title> xxxxxxxxx - Vintage Shopper</title> <?php } elseif ($category->id==456) { ?> <title> yyyyyyyyy - Vintage Shopper</title> <?php } elseif ($category->id==789) { ?> <title> zzzzzzzzz - Vintage Shopper</title> <?php } else { ?> <title>[category.name] - Vintage Shopper</title> <?php } ?> |
#3
|
|||
|
|||
![]() Wow, that is a workaround -- not really a fix. If you have a hundred categories, NOT ideal.
Surely this issue has been brought up by other customers? Would you guys consider my solution to the problem please? Thanks |
#4
|
|||
|
|||
![]() Quote:
You don't need to define titles for all category IDs. The category ids you don't specify automatically get the default title - that is the title which is specified in the else clause. Code:
... else { ?> <title>[category.name] - Vintage Shopper</title> <?php } ?> Quote:
If you have a hundred categories, you would also have to enter 100 times a different title into a field if you want another title than the default. About the same amount of work just another implementation. Last edited by stefan : April 10th, 2014 at 10:55 AM. |
#5
|
||||
|
||||
![]() Thread moved to "Feature Request" forum.
|
#6
|
|||
|
|||
![]() The difference with my solution is focusing on data input where it should be, not via code.
That's why interfaces are designed and built. Also, in your solution you have to go up and look up the id for each category. if you simply have that field in the UI for category properties -- dead simple. Last edited by bradleyhebdon : April 10th, 2014 at 03:34 PM. |
#7
|
||||
|
||||
![]()
__________________
![]() ![]() ![]() ![]() |
#8
|
|||
|
|||
![]() Yeah, I've been told that already.
The only problem is (and correct me if I'm wrong) - don't you need a separate website to run a woocommerce theme? |
#9
|
||||
|
||||
![]() Hi
No, WooCommerce can run on any installation of WordPress. If your current theme is not WooCommerce compatible the following link can help with that: http://77webstudio.com/make-wordpres...ce-compatible/ Eric
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change category page title? | niche888 | Questions | 3 | December 5th, 2012 10:53 PM |
Display category title on Category Page | Michaelgs | Questions | 1 | July 20th, 2012 09:02 PM |
Category/Product Name NOT in Page Title? | directclothes | Problems | 12 | June 20th, 2012 02:13 PM |