• Resolved vandermill

    (@vandermill)


    Hi there,

    I’m making a website (here) and have a sparkling question ;).

    On this page I would only like to show post of a different category. Off course I can use a archive page which only shows this category, but the look and feel of the archive page doesn’t match de rest of the website.

    What should I do?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Silkalns

    (@silkalns)

    I think it would be easier to just modify archive page to match blog and other pages.

    The first think would be to remove archive page header and you can do it like this:

    .category .page-header {
      display: none;
    }

    Add this code to Theme Options – Other – Custom CSS.

    What else is there that you don’t like it about archive page, so we can work from there.

    Thread Starter vandermill

    (@vandermill)

    I tried this and it did what you said. The thing is that it also removed the title of the posts.

    I then tried to change .page-header into page-title. That did the job.

    But then I thought.. well I do need a title. It just has to look like the title on the page.

    So what do I want from the archive-template:

    – I want the title to be there, but looking like the title on a page. So not red but blackish.
    – I want the title to be in the whit box like on a page. In the category it kind of sits on top of the white div-area.

    I would already like to say thanx for taking time for me.

    Kind regards,
    Rob

    Thread Starter vandermill

    (@vandermill)

    Okay I have managed to do have it look like I want it to. (Example).

    Now I want the map on this page to show up above the posts and only on the category ‘5’.

    Is that possible?

    Theme Author Silkalns

    (@silkalns)

    For that you can use is_category conditional tag. You can read more about it here.

    The basic idea would look like this:

    if is_category( '9' ) {
    	// do something
    } else {
        // do something else
    }

    This code should go inside archive.php template file.

    hello, i think what you need is a plugin named list category post.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Specific category on a page’ is closed to new replies.