• Hi!

    I have now managed to make a categorys posts look different when you click the category in the sidebar. But on the frontpage the posts still looks like all the other ones.

    So basically I have managed to customize how the posts are looking on the categorys page, but on the frontpage they don’t show that way.

    Is there a way to make them? ??

    Please help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Try editing your theme’s index.php template file.

    Thread Starter Gussan

    (@gussan)

    Yes but how do I edit sertain posts in it?

    Sorry? You want to edit specific posts? Why can;’t you edit them via Admin->Posts?

    Thread Starter Gussan

    (@gussan)

    Not like that. But on the front page where all the posts are showing (on the blog).

    I want the posts that belongs to one category to have a different look than the other ones. How do I do this?

    Thread Starter Gussan

    (@gussan)

    Thanks so much, that really helped. But it doesn’t solve my whole problem.

    Now I can change the font sizes, colors and everything. But for example if I want to remove the title of the post or just remove or add things to the posts within that category on the font page. How do I do this? I can’t seem to find out how :-/

    Example: https://www.petterstordalen.no/

    Check out his posts and tweets. The difference. I manage to get my tweets as posts automatically, but they look like all other posts.

    Please help someone ! ??

    Thread Starter Gussan

    (@gussan)

    I still can’t figure it out :-/
    I manage to change the CSS of the post. But not the post itself. I manage to change all the posts on the frontpage, but not sertain ones within one category.

    I hope is not too late.

    Dirty solution:

    Create multiple php files for each post:
    single-post-book.php
    single-post-shoe.php
    single-post-default.php
    (this can have any name – shoe.php – doesn’t matter)

    After that delete content in single.php and write something like this

    <?php if (in_category('books')) { include ('single-post-book.php'); } elseif (in_category('shoes')) { include ('single-post-shoe.php'); } else {include ('single-post-default.php');}

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom category theme help!!’ is closed to new replies.