Support » Theme: Magnus » Featured images in category view

Viewing 1 replies (of 1 total)
  • Hi, if you’re still interested in this, having the same layout for any category views as the default blog view – which is nicely done, credit to its author.

    So, there are 2 modifications to be done:
    1. First, in the theme structure, create one file called category.php – it will offer wordpress the layout for category view. Next, copy the contents of the home.php file and paste into the newly created category.php
    This ensures both views (templates) have the same structure when displayed.

    2. Next, we need to tell WordPress to use this view when parsing posts and preparing them for being output.
    Go to the header.php file and look for the line
    <?php if (is_home()) : ?>
    and replace it with
    <?php if (is_home() || is_category()) : ?>

    What it does, tells wordpress to use the same logic when the user asks for the home page OR (the new part) the category page (so to speak)

    Should work.

    Take care, any further update of the theme by the author will remove these updates.
    You can use a child theme but myself, I didn’t bother.
    Maybe I’ll do a pull request.

    Best regards
    George, Romania

Viewing 1 replies (of 1 total)
  • The topic ‘Featured images in category view’ is closed to new replies.