Show category on block featured image

Posted in: Newspaper
Post count: 30

Hi,

I’d like to be able to show the category on the featured image on a normal block. At the moment this happens automatically on the slider block – can you tell me the code to add to make it work on block 3 for example?

Is it also possible to display multiple categories using the different categories assigned to them?

Finally, would it be possible to add an icon to show up per category? Appreciate this might be quite complex customisation…

Many thanks for your help, I love the theme 🙂

Martin

Post count: 854

hi,
can you give more details, I really don’t understand what you are asking.

sorry about this.

Thanks for you message.
Radu A.

Post count: 30

Hi Radu,

I would like to display the post category on the featured image on block 3, as happens already with the slide block. Maybe it’s easier to show pictures.

Slide block showing category

Block 3 not showing category

Hope that makes more sense?

Thanks for your support,

Martin

Post count: 3343

Hi,
You can add this code

<div class="slide-meta">
              <span class="slide-meta-cat">
              <?php $cat = get_the_category($post->ID); echo $cat[0]->cat_name ?>
              </span>
              <span class="slide-meta-author">
              <?php $this->get_date(); ?>
              </span>
            </div>

in module 6(Block 3 use Module 6) like here: http://screencast.com/t/nLSyTpn90pnA

and add this CSS in Theme panel -> Custom CSS

.td_mod6 .slide-meta-cat {
    background-color: #444444;
    color: #FFFFFF;
    font-size: 12px;
    padding: 3px 7px;
}

The category can’t over the image only on that module, sorry for the inconvenience. We need to change the theme structure to support that.

Result: http://screencast.com/t/IIruxXJqX

Thanks for the message!

Post count: 30

Hi Marius,

Thanks so much for getting back to me and offering a solution. My clients are hell bent on getting a category icon showing up over the image though, I don’t think this will pacify them!

Do you think this is something an external developer could do or is the structure of the theme too complex? Anyone you could recommend?

Thanks,

Martin

Post count: 854

hi,
the structure of the theme is complex, but try Marius solution.
if you are not a programmer try to hire one for this task from sites like: http://www.microlancer.com

Thanks for you message.
Radu A.

Post count: 30

Thanks Radu,

I can follow the instructions as provided but it doesn’t do what my client wants so I’ll need to look to get external help I think.

Thanks for all the support 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.