Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Category icons


  #1  
Old Oct 16, 2009, 05:33 PM
seboush
 
13 posts · Jul 2009
Hi,

I found a plugin called Category icon to assign an icon to a category. In each post title, the icon is display together with the title. It's here: http://www.category-icons.com/

Unfortunately it doesn't seem to work with Atahualpa. In header.php, we should replace:

wp_list_categories('show_count=1&title_li=');

by

if (function_exists('put_cat_icons')) put_cat_icons( wp_list_categories('show_count=1&title_li='.'&echo =0')); else wp_list_categories('show_count=1&title_li=');

But it doesn't work. Someone has a clue?

Thanks for your help.
  #2  
Old Oct 17, 2009, 08:35 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well if you could live with it showing up in the byline, you could just put
HTML Code:
<?php if (function_exists('get_cat_icon')) get_cat_icon(); ?>
in each of the byline options at ATO->Edit POST/PAGE INFO ITEMS
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 17, 2009, 09:18 AM
seboush
 
13 posts · Jul 2009
Hi Juggledad. Thank you very much for your answer.

It indeed works and displays the icon below the title of the post.

If you have a solution to display the icon next to the title (before would be better), then I'm your man

Thanks again,

Sebastien
  #4  
Old Oct 17, 2009, 09:26 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there is a way to do it, but you will have to edit some of the code and that means re-doing the change every time you update the theme.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Oct 17, 2009, 09:29 AM
seboush
 
13 posts · Jul 2009
Yes it wouldn't be a problem to do the change each time that i update the theme. If you have the solution ready and it doesn't take too much of your time, then i take it.

Many thanks.
  #6  
Old Oct 17, 2009, 10:07 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
No I don't have a solution ready. you would probably need to edit bfa_post_parts.php and fit thier code in there.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Oct 17, 2009, 10:45 AM
seboush
 
13 posts · Jul 2009
I have included the code in bfa_post_parts.php as you said, in the part

function bfa_post_headline($before = '<div class="post-headline">', $after = '</div>') {

before

<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

It works great.

Thanks very much for your help!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RSS icons disappear sirabi RSS, Feeds & Subscribing 1 Sep 15, 2009 09:02 AM
RSS posts and comments icons sirabi Header configuration & styling 1 Sep 8, 2009 03:06 AM
Why are my sociable icons spread out? dsegel Post-Kicker, -Byline & -Footer 1 Jun 26, 2009 03:44 PM
Help! Sociable icons showing faded adashofsass Post-Kicker, -Byline & -Footer 4 Apr 16, 2009 06:45 AM
[SOLVED] Placement of sociable icons bseppa Post-Kicker, -Byline & -Footer 3 Dec 18, 2008 10:48 PM


All times are GMT -6. The time now is 02:51 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.