• Only in category pages I’d like to invert the position of post title and post thumbnail, by css or code?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    You’ll need to edit your theme archive template. Of course, having a child theme is mandatory to not lose your customization on next theme update.

    Because how the templates are made is different from 1 theme to another, we would need at least the theme name to inspect it.

    Thread Starter sacconi

    (@sacconi)

    I’m using a starter theme: underscore…

    Thread Starter sacconi

    (@sacconi)

    But I would invert the position also in the posts pages, not only in archive pages

    OK, all the pages or only an archive, the job is the same. you need to dig in the templates to modify them.

    Moderator bcworkz

    (@bcworkz)

    You could copy archive.php, renaming it category.php. Edit the category.php to get a different, custom template part that outputs in the desired order. The template part can be based on a renamed copy of /template-parts/content.php

    Or just edit archive.php to conditionally get a different template part based on is_category().

    Or reorder the elements with CSS flex box model. Include the body tag’s “category” class as a selector to only affect category requests.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inverting the position between post title and thumbnail-image’ is closed to new replies.