[Resolved] Remove Category Image Padding – Same Layout on Categories like Pages

Home Forums Support Remove Category Image Padding – Same Layout on Categories like Pages

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1403601
    ghazii

    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

    #1403753
    David
    Staff
    Customer Support

    Hi there,

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

    #1404335
    ghazii

    Hi David,

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

    #1404507
    David
    Staff
    Customer Support

    Which hook did you add it to ?

    #1404701
    ghazii

    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.

    #1404886
    David
    Staff
    Customer Support

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

    #1404893
    ghazii

    Done….but it don´t look good 😉

    #1405188
    ghazii

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

    #1405466
    David
    Staff
    Customer Support

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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.