-
AuthorPosts
-
July 20, 2015 at 10:57 am #475670
Hi guys,
Hopefully this is a quick one. I’m using the the “Woocommerce Ulimate brands” plugin, and when selecting a “brand” it should show the brand name at the top of the page followed by all the products within that brand beneath it.
But the brand name/description isn’t showing at the top of the page. This is the response I got from the plugin creators:
“your theme should display custom taxonomies description on taxonomy page”
How do I do this please?
July 20, 2015 at 5:03 pm #475955Hi mikebackhouse!
I’m not sure about “display custom taxonomies description on taxonomy page” but if you navigate to Dashboard > Products > Categories and create a description for one of your categories you will see it displays at the top of your product categories.
This plugin is creating a custom taxonomy for your products? Can you send us a link?
Cheers!
ElliottJuly 20, 2015 at 5:09 pm #475961That’s not what I meant sorry. I know categories work, but this is a “brand” plugin. So on each product has a brand, when a brand is clicked a list of all the products within that brand are shown. This is where I want the brand title to appear at the top of the page. Please see the following link to understand what I mean:
July 21, 2015 at 3:23 pm #476547Hey!
Well, around line 30 in the archive.php is where you can see how we display that information for categories / tags.
<div class="category-term-description"> <?php echo term_description(); ?> </div>
Here is the function documentation, https://codex.wordpress.org/Function_Reference/term_description, you could try setting it to check for your taxonomy there.
Or right beneath that section you could try using this function, https://codex.wordpress.org/Function_Reference/is_tax, to check for a certain taxonomy and echo out some more information.
Cheers!
ElliottJuly 21, 2015 at 3:29 pm #476552Thanks Elliot! I’ll try and tackle that and let you know how I get on! (I’ve never tried writing a function before so I could be interesting! :)
Really appreciate your help
July 22, 2015 at 5:19 am #476849July 22, 2015 at 9:23 am #476933Thanks, I probably will :)
July 23, 2015 at 3:33 am #477461Hi!
Question: How did you create this page (http://test.ecdisregs.com/flag-state/iho/)? Is this a custom template generated by the plugin? If this is a common product archive or category page, the url should be “product-category” instead of “flag-state”.
Cheers!
IsmaelJuly 23, 2015 at 9:23 am #477577There’s really 2 points there.
1) I presume the plugin is creating the template. However the plugin dev said the issue I’m having is down to the theme, not the plugin. I’ve looked at all the files in the plugin and I can’t see whether it does or not.. but then I don’t really know what I’m looking for!!
2) The URL is custom, although changing “product-category” to something else is just a function of woocommerce. The “flag-state” URL originally said “brand” but I’ve changed that with a custom permalink plugin.I get the impression this is down to the theme not showing custom taxonomy descriptions. Which makes sense, as even the woocommerce product overview page doesn’t show the title, whereas the twentytwelve theme does.
Ok, I’m sorry this is beyond me.. can anyone help please?
July 24, 2015 at 3:16 pm #478197Sorry guys, I think I need some help on this if possible please?
July 27, 2015 at 3:05 pm #479098Hi!
Send us a WordPress login so we can take a closer look at what’s going on.
Regards,
ElliottJuly 27, 2015 at 3:07 pm #479100Fantastic, thanks Elliot! See below
July 28, 2015 at 3:38 pm #479764Hi!
I would try asking the plugin authors which template is being used. If you place this inside the template..
<div class="category-term-description"> <?php echo term_description(); ?> </div>
Then the description should display.
Best regards,
ElliottJuly 29, 2015 at 8:54 am #480066Thanks Elliott, The I’ve managed to add it to the woocommerce core template file “archive-products.php” and put it in the enfold child sub folder but that’s not ideal and not working exactly how I want it to..
One slightly vague reply I’ve had from the plugin dev is this:
“if you want to change Brand page display you need to use Custom Taxonomy template for brands (taxonomy page template in your theme)”
I would appreciate a nudge in the right direction
July 29, 2015 at 12:02 pm #480134I think I’ve finally got it working adding it to the archive-products.php file. (although I found I needed “single_term_title” not “term_description” no biggy)
Final final question, how do I position it just above the filter dropdowns. If I put it just after the “woocommerce_before_shop_loop” it appears beneath the dropdowns, if I put just above it the title appears in the title area.
Do I need to add the snippet to a different file?
The twenty twelve theme is showing it, so it’s obviously just a standard file
July 31, 2015 at 5:04 pm #481480Hey!
Add this to your custom CSS.
.archive.woocommerce .category-term-description { position: relative; top: -60px !important; } .archive.woocommerce .product-sorting { top: 60px; }
Cheers!
ElliottJuly 31, 2015 at 5:10 pm #481481Yes!! Thank you Elliot, that looks SO much better! :) Aaaaand I’m done!
-
AuthorPosts
- The topic ‘Custom taxonomies page title not showing’ is closed to new replies.