• Resolved Ciskut

    (@ciskut)


    Hi there,

    I’m using imbalance theme for an art portfolio. Within 2 main categories (Drawings and Paintings) I have several subcategories. When clicking on a subcategory I would like to show a short description text of that section. Basically I would like to replace the auto-generated line “Archive for the Category such and such” with an auto-generated text related to that category. How can I do it?

    I’m fairly new to WP and I’m definitively not a php expert so if you could give me step by step instructions it would be great!

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • first off, you have to find where that auto-text is generated.

    Thread Starter Ciskut

    (@ciskut)

    I can see it is generated in the archive.php

    Thread Starter Ciskut

    (@ciskut)

    If it helps, this is I think the code in archive.php creating the auto-generated text:

    <?php get_header(); ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <<h1><?php printf(__(‘Archive for the ‘%s’ Category’), single_cat_title(”, false)); ?></h1>
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    <h1″><?php printf(__(‘Posts Tagged ‘%s’’), single_tag_title(”, false) ); ?></h1>
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h1><?php printf(_c(‘Archive for %s|Daily archive page’), get_the_time(__(‘F jS, Y’))); ?></h1>
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h1><?php printf(_c(‘Archive for %s|Monthly archive page’), get_the_time(__(‘F, Y’))); ?></h1>
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h1><?php printf(_c(‘Archive for %s|Yearly archive page’), get_the_time(__(‘Y’))); ?></h1>
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h1><?php _e(‘Author Archive’); ?></h1>
    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h1><?php _e(‘Blog Archives’); ?></h1>
    <?php } ?>

    thanks in advance for the help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Imbalance theme – how to add an auto-generated text for subcategories’ is closed to new replies.