Add intro text at top of category page

  • cleevewebby

    #8842

    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

    Sharon

    #42289

    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 🙂

    cleevewebby

    #42290

    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

    Mod

    Kenneth John Odle

    #42291
    Quote:
    but its still only words in a drab background

    Dress it up with some CSS:

    .term-desc {
    background: #ffff00;
    color: #0000ff;
    }

    cleevewebby

    #42292

    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

    Mod

    Kenneth John Odle

    #42293

    Add 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;
    }

    cleevewebby

    #42294

    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

    cleevewebby

    #42295

    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;?>

    cleevewebby

    #42296

    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.