Page with posts and static text

Professional social WordPress theme with metro design, fully-adjustable grid widget and BuddyPress support.
GK User
Tue Mar 18, 2014 9:46 pm
Hello,

so far I have been working with category pages showing a collection of posts.

Now I have been asked to put in some static text at the top of the page and show the posts
underneath as usual. Is this possible and if so, how?

Thank you!
Dirgis
User avatar
Senior Boarder

GK User
Wed Mar 19, 2014 8:23 am
Hello,

Did you try category description? Text from your category description will appear at the top of the page and posts will be underneath.
User avatar
Moderator

GK User
Wed Mar 19, 2014 9:59 am
Hi,

yes that works. Is there a possibility to keep the formatting as well and using headings, etc.?
User avatar
Senior Boarder

GK User
Thu Mar 20, 2014 8:26 am
You can use only this selector to style paragraph:
Code: Select all
.page-desc p

and
Code: Select all
.category .page-title
to style the title.
User avatar
Moderator

GK User
Thu Mar 20, 2014 2:17 pm
Hi there,

sorry I don't understand yet. Where can I do the actual formatting then – applying the css tags to the text ?

Thats my starting point and the text I have been given. I added it in Categories > Category Description
http://www.greenguerrillas.org.uk/hidde ... /eco-home/
User avatar
Senior Boarder

GK User
Fri Mar 21, 2014 10:13 pm
If you want to change look of this text(category description) you should use this code in css/override.css file (first enable this option from Template Options -> Advanced tab).

Code: Select all
.page-desc {
font-size: 20px;
color: #your color;

...
etc.
}
User avatar
Moderator

GK User
Tue Mar 25, 2014 2:13 pm
Hi Piotri,

I have a weird phenomenon. I added text to one of the category descriptions and it worked instantly.

However, my client did so for another category and it won't show. I controlled and compared them
twice and don't know what could be wrong with it?

I also tried it on different categories, but no results either.

Any idea what could be wrong?

Thanks,
Dirgis
User avatar
Senior Boarder

GK User
Tue Mar 25, 2014 3:46 pm
Hi,

Please provide URLs of these categories (both - this one which works properly and with no description visible).
User avatar
Moderator

GK User
Tue Mar 25, 2014 5:36 pm
Hi Piotr,

it solved itself. I assume in both my and the clients case it was a matter of deleting the cache – I restarted my computer.
Sorry to bother you with this and thanks for your quick response.
User avatar
Senior Boarder

GK User
Fri Mar 28, 2014 11:43 am
If anyone like me wants to use HTML tags in their category descriptions and thus format their categories. Here is a handy plugin:
http://wordpress.org/plugins/allow-html ... tallation/
User avatar
Senior Boarder

GK User
Tue Apr 01, 2014 12:16 pm
Hi Piotri,

I would like to use the font-awesome icons for my category description lists.

I wrote this code in my css, but it won't show up. Would you be able to tell me whats wrong with it?

category-page .page-desc ul li:before {
content: "\f138";
font-family: FontAwesome;
font-size: 13px;
left: 0px;
position: absolute;
top: 3px;
}

The list itself is working.
User avatar
Senior Boarder

GK User
Tue Apr 01, 2014 12:35 pm
Hi, Could you provide direct URL to this page with the list?
User avatar
Moderator

GK User
Tue Apr 01, 2014 8:48 pm
Try with this code, you forgot about position: relative for <li> and used wrong name of css selector.

Code: Select all
.category .page-desc ul li {
   position: relative;
}

.category .page-desc ul li:before {
   content: "\f138";
   font-family: FontAwesome;
   font-size: 13px;
   left: 0px;
   position: absolute;
   top: 3px;
}
User avatar
Moderator


cron