Image and text in blog category pages

Posted in: Newsmag
Post count: 64

Hi,
in category blog page I’ve this situation:
http://www.awesomescreenshot.com/image/2541452/d7656f18cc7de71c49860f26ecf6b94a
in themepanel/categories/category template (header), if I select for example “style 6” I’ve a situation like this:
http://www.awesomescreenshot.com/image/2541490/79b5109b2c396603868a49dbae1c3c41

I need to include a photo and a description before a post in a blog category post.
The photo and the text must always be different in each category.

I would something like this …
http://www.karmaweb.net/tmp/text_category.jpg

How can I obtain this in your theme?

tnx

Post count: 22421

Hello,
If you want to use a different photo on each category you should use the category style 5 and use a different background image on each category: https://demo.tagdiv.com/newsmag/category/template-style-5/
As for the category description, please provide an example on how to style it as it can be done using css.

Thank you!

Post count: 64

Hi Bogdan and thank’s for support.
ok… now I’ve this:
http://www.awesomescreenshot.com/image/2543067/b12d69ca3a1045b2d92d69eea718aa5e

It’s not exactly what I wanted… That is, something like this:
http://www.karmaweb.net/tmp/text_category.jpg
but… for text question?
I’m sorry if I can not explain well what I need … I need to have paragraphs … I need to be able to separate the text on other lines …
http://www.awesomescreenshot.com/image/2543099/b3e5e4c690c5a20fea4d2c36a91449f7

For this I was hoping there was a way, more simply, to enter through a visual compositor a simple html box, between the header and the start of the category post …
This is not a simple page (how I can do this), but a category blog …

Do you think of some possible solution?
tnx

Post count: 23312

Hello ermannaro,

You can try to make this change in the code – https://www.screencast.com/t/88DIHkK7ZexXhttps://developer.wordpress.org/reference/functions/the_archive_description/

return '<div class="td-category-description"><p>' . $this->current_category_obj->description . '</p></div>';

Hope this helps!

Thanks.

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