Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17683

    Hello,

    Is it possible to show de description of the portfolio categorie, with the theme coherence ?

    Thanks

    #96433

    Hi,

    Yes, it is possible but where do you want to display it?

    Regards,

    Ismael

    #96434

    Hi Ismael,

    simply between the navigation of the portofolio and the entries.

    thanks and sorry about my english

    #96435

    Hi!

    Open up archive.php and replace:

    echo avia_title(avia_which_archive(), $description);

    with:

    echo avia_title(avia_which_archive(), $description);
    if(is_category() || is_tag()) $description = is_tag() ? tag_description() : category_description();
    if(!empty($description)) echo $description;

    Best regards,

    Peter

    #96436

    Hi Dude,

    I try it but no change.

    The description does not appear ???

    Thanks

    #96437

    Hi ppi37,

    This would effect the archive style pages which show up when you click on a category. If you mean another area please advise.

    I’ve tagged Peter on the topic however in case he sees an error with his code (though it looks correct to me).

    Regards,

    Devin

    #96438

    Hi Devin,

    when I click on a category, there is no description in the page.

    I put a small descritpion on the 3 categories.

    ???

    Thanks

    #96439

    Hi!

    I changed the code above a bit – please try it again. I tested it on my server and it worked just fine.

    Regards,

    Peter

    #96440

    Hi Dude,

    Sorry but no change with the new code in my site.

    #96441

    Can you post a link to your site and an archive page?

    Regards,

    Devin

    #96442
    #96443

    Ah ok, you’re using a dynamic template – in this case you can’t add the portfolio category description to the page (because WP doesn’t recognize this page as “category” page) – however you can use a text element to insert some text before or after the portfolio items.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘How to show de description of the portfolio categorie’ is closed to new replies.