Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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?

    #475955

    Hi 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!
    Elliott

    #475961

    That’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:

    #476547

    Hey!

    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!
    Elliott

    #476552

    Thanks 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

    #476849

    Hey!

    Ok great, please let us know if you should need any more help.

    Regards,
    Rikard

    #476933

    Thanks, I probably will :)

    #477461

    Hi!

    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!
    Ismael

    #477577

    There’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?

    #478197

    Sorry guys, I think I need some help on this if possible please?

    #479098

    Hi!

    Send us a WordPress login so we can take a closer look at what’s going on.

    Regards,
    Elliott

    #479100

    Fantastic, thanks Elliot! See below

    #479764

    Hi!

    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,
    Elliott

    #480066

    Thanks 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

    #480134

    I 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

    #481480

    Hey!

    Add this to your custom CSS.

    .archive.woocommerce .category-term-description {
      position: relative;
      top: -60px !important;
    }
    .archive.woocommerce .product-sorting {
      top: 60px;
    }

    Cheers!
    Elliott

    #481481

    Yes!! Thank you Elliot, that looks SO much better! :) Aaaaand I’m done!

    http://www.ecdisregs.com

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Custom taxonomies page title not showing’ is closed to new replies.