Add intro text at top of category page
-
There must be an easy way of adding some text at the top of a category page 🙂
I’ve tried going into settings general and setting up a category as a blog page but that wasnt too helpful
Hi Cleevewebby,
I’m a bit of a newbie here myself so I hope you don’t mind me replying as I think I’ve just recently figured out what you’re looking for….
From your Admin Dashboard, hover over “Posts” and this will reveal four potential dropdowns All Posts, Add New, Categories and Tags. Click on Categories to get to your Categories page. Click on the particular category you are wanting and this will show you an Edit Page with Name, Slug, Parent and Description.
Use the “Description” box to add text to the top of your Category Page. You can use html for paragraphs and the like. Hope I’ve understood you correctly and this is what you are after.
Regards,
Sharon 🙂
Hi yes I tried that but not much further forward
<<<see sample page
no words appear at top
or another way Ive tried adding some html but its still only words in a drab background
<< click and look for /category/walknews
ModQuote:but its still only words in a drab backgroundDress it up with some CSS:
.term-desc {
background: #ffff00;
color: #0000ff;
}Very pretty Kenneth 🙂
Is there a way of removing the words
category archive:
I prefer the other method (category in blog page) if there is a way of preventing the first post over writing the text
ModAdd this to your child theme archive to get rid of just “Category Archive:”
function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Category Archive: <span>%s</span>' => '<span>%s</span>',
'%1$s Archive: %2$s' => '%2$s',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );Or this in custom css to get ride of entire title:
.page-title {
display: none;
}Does that remove all page titles?
I found this previous thread
https://forum.graphene-theme.com/graphene-support/category-page
however the plugins are old so I tried this one
http://wordpress.org/plugins/add-posts-to-pages/
Its ok. but not as good as a page of posts
Still looking. This looks relatively simple
http://www.hobo-web.co.uk/add-text-to-home-page-only/
add this code to the theme index.php:
<?php if(is_home() && !is_paged()):?>write text here<?php endif;?>
aha found one 🙂
plugin: list category posts
[catlist name="news" content=yes]
the titles arent very good but it brings the photo across
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.