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 » Center area post/pages »

Category Description


  #1  
Old Feb 11, 2010, 09:17 AM
seoguy
 
9 posts · Jan 2010
I would like to put a description at the top of all category pages as well as home page above where the posts display. Preferably with a wysiwyg editor.

Does anyone know of a plugin available? or hack?

thanks
  #2  
Old Nov 30, 2010, 05:05 AM
reketeke
 
8 posts · Sep 2010
go to
EDIT POST/PAGE INFO ITEMS

and put this code in
kicker multipost pages

<?php if ( is_category() ) : ?>
<?php get_category($category) ?>
<?php echo category_description($category); ?>
<?php endif; ?>
  #3  
Old Dec 15, 2010, 06:17 AM
eperon
 
11 posts · Aug 2010
im struggling with this idea too.

The suggested solution puts a description above each post on the multipost page. It should be just 1 description, above the list of articles...
  #4  
Old Dec 15, 2010, 07:17 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try adding the code to ato->Style & edit CENTER COLUMN->Content ABOVE the LOOP
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 7, 2011, 08:21 PM
emilyrose's Avatar
emilyrose
 
13 posts · May 2010
Quote:
Originally Posted by juggledad
try adding the code to ato->Style & edit CENTER COLUMN->Content ABOVE the LOOP
How to make the Category show above it? So far only the descriptions is showing.

Last edited by emilyrose; Jun 7, 2011 at 08:23 PM.
  #6  
Old Jun 8, 2011, 03:41 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if you are using the example
HTML Code:
<?php if ( is_category() ) : ?>
<?php get_category($category) ?>
<?php echo category_description($category); ?>
<?php endif; ?>
you would need to add
HTML Code:
<?php echo $category; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 24, 2011, 09:32 AM
horsemansarts
 
122 posts · Jul 2009
This was very helpful to me. Thanks! I have the category description displaying BUT I would like to style it differently--more 'heading-like'. I have FireBug and I'm at a loss as to see how best to identify that particular bit of text. FB just says it is <p>??
  #8  
Old Sep 24, 2011, 02:07 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
that <p> is an element nested in another element probably nested in another element. This where you need to know how to construct a CSS selector so you can apply the css rules (styling) you want. Look at the <p>'s parent elements and see if there is something unique that you can use to select it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Sep 24, 2011, 05:51 PM
horsemansarts
 
122 posts · Jul 2009
This is what I figured and I've done that a lot using Firebug in other situations. I just can't see where I can do that in this case. Maybe I'm missing something obvious. I just seems like anything I'd do would affect the <P> on the whole page. Here is the page if you care to take a look: http://www.iidageorgia.org/category/press-release/

Is there a way to change how that particular bit of text is formatted? Like change it to be some heading <H?> instead of <P>?

Thanks!
Sharon
  #10  
Old Sep 24, 2011, 07:31 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could always wrap a <div> around the description like
HTML Code:
<?php if ( is_category() ) : ?>
<?php get_category($category) ?>
<?php echo '<div class="my-cat-desc">'.category_description($category).'</div>'; ?>
<?php endif; ?>
then use the class to style it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Sep 25, 2011 at 03:09 AM.
  #11  
Old Sep 24, 2011, 08:02 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Or perhaps something like the following in CSS Inserts
HTML Code:
td#middle > p {
    font-size: 30px;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #12  
Old Sep 24, 2011, 10:00 PM
horsemansarts
 
122 posts · Jul 2009
Quote:
Originally Posted by juggledad
You could always wrap a <div> around the description like
HTML Code:
<?php if ( is_category() ) : ?>
<?php get_category($category) ?>
<?php echo '<div class="my-cat-desc">'.category_description($category).'</div>; ?>
<?php endif; ?>
then use the class to style it
Thanks! That was the hint that I needed. It is working like a charm now. (after I figured out that there was a quote missing)
  #13  
Old Sep 25, 2011, 03:11 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What you want EVERYTHING???
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #14  
Old Sep 25, 2011, 08:28 AM
horsemansarts
 
122 posts · Jul 2009
HA! I'm just teasing you. I would not have even mentioned it but I was just so proud of myself (being a non-programmer) for figuring out what was missing that I could not resist. I appreciate you!
Sharon
  #15  
Old Nov 1, 2011, 09:04 AM
horsemansarts
 
122 posts · Jul 2009
I'm working on another site and again want to place the category name on the category page but now I'm using a later version of Atahualpa which means I need to edit the index file. I've tried a couple of things but am not seeing it appear. So, can you tell me where I need to place the code in the index file to have the category name appear at the top of the category page (just once).
  #16  
Old Nov 1, 2011, 12:07 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try putting it just before the line (line 16 in 3.7.1)
HTML Code:
	<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Show meta description in category page instead of excerpts over_cloud9 Excerpts, Read more, Pagination 1 Feb 5, 2010 08:08 PM
Where are meta keywords and description? horsemansarts Atahualpa 3 Wordpress theme 18 Aug 28, 2009 04:23 PM
TUI's Category Description for Archive Not Working sleizure Plugins & Atahualpa 1 May 29, 2009 02:05 PM
Umlauts in Home Page Meta Description mrz Atahualpa 3 Wordpress theme 2 May 24, 2009 09:37 AM
Category description & category classes shedhed Page & Category Menu Bars 4 Mar 22, 2009 01:25 AM


All times are GMT -6. The time now is 09:23 AM.


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