Site logo

Archived topic

Remove Category Image Padding - Same Layout on Categories like Pages

8 replies · Started by ghazii on August 14, 2020

Viewing posts 1–9 of 9

hello everyone, I have been struggling with the layout of the categories for 2 days and now I have to ask you for help.

I installed the "Categorie Images" plugin recommended by you and also set the hook for the display.

So far everything works fine, if the image presentation weren't completely different than on pages.

In the mobile view, the post image on pages is always displayed in a nice size across the entire width. In the case of categories, the category image is unfortunately significantly reduced with a lot of white space around it.

But even in the desktop view, I can't get both pictures halfway similar in size. All settings in the Customizer do not lead to the desired result

Please help me before I turn gray completely;)

Many thanks
Michael

Hi there,

How did you add the code from the Category Images Plugin ?

Hi David,

i did it, like you recommend it.
Via Elements - Hook - with the Code in it.

Which hook did you add it to ?

Elements > Hook > generate_before_archive-title with php checked > This Code >

<?php if ( function_exists( 'z_taxonomy_image' ) ) {
z_taxonomy_image();
} ?>

So like you have recommend it.

It works good with the Categorie Image, only the padding left an right.
Its not possible for me set full width on Mobile.

Can you move it the generate_before_content_hook then i can take a look at the CSS to format it correctly.

Done....but it don´t look good ;)

David, I'm running out of time. do not stress yourself. I just think of something else. thank you

No problems - let us know if you still need assistance.

This archived topic is closed to new replies.