WordPress.org

Ready to get started?Download WordPress

Forums

Make category invisible to main blog, but accessible with a link. (5 posts)

  1. X-Evolutionist
    Member
    Posted 4 years ago #

    My blog is all serious. I want to add a category to post about the fun stuff in my life that I current post elsewhere in my Windows Live Space. But, I do not want to add those fun posts unless I can shuffle them off to the side someplace. I want you to have to make a special trip to see them, like with a link.

    I also want to have a separate color scheme, if possible.

    What would be the easiest way?

    I would like to avoid making a separate blog entirely for this purpose, if possible.

    Thank you,

    X

  2. Jonas Grumby
    Member
    Posted 4 years ago #

    You can hide a category from appearing in the menu by excluding it...

    Template Tags/wp list categories

    You can also use a plugin like User Access Manager to assign a category to a specific group of people who are allowed to see it.

    There is such a thing as parent themes and child themes but I have never tried it. You can get just about anything you want to display on the screen with Conditional Tags and Page Templates though.

  3. X-Evolutionist
    Member
    Posted 4 years ago #

    Hi SS Minnow:

    I appreciate the information! I'm not brave enough to edit any of the php's (yet). I'll have to summon up some courage.

    Thank you!

    X

  4. henkholland
    Member
    Posted 4 years ago #

    Hi X,

    If your front page shows your blogposts of all your categories then you want to exclude the posts in your funstuff category from that, by editing index.php

    An example is found here: http://codex.wordpress.org/The_Loop#Exclude_Posts_From_Some_Category

    Next, find the id of your category "funstuff" and remember the number.
    You do that by going into Dashboard/Posts/Categories and in the list hover over the category title; the id is readable in the browsers bottom bar.

    Now copy category.php within your themes folder and save it with the name category-10.php (if 10 is the id of funstuff).

    Then comes the styling. Styling is done in your css but for this specific template (category-10.php) to have a different styling you need to make the div id's and the classes specific.
    So change <div id="container"> into <div id="container10">
    Change <div class="post" into <div class="post10" etc etc

    Next go into your style.css and copy the relevant blocks like container:

    #container
    {
    	background: #FFFFF2;
    	float: left;
    	width: 420px;
    	margin: 0px;
    	padding: 0px 0px 6px;
    	border-left: 1px solid #FF6600;
    	border-right: 1px solid #FF6600;
    }

    on an empty line below it with the name changed, like:

    #container10
    {
    	background: #FFFFF2;
    	float: left;
    	width: 420px;
    	margin: 0px;
    	padding: 0px 0px 6px;
    	border-left: 1px solid #FF6600;
    	border-right: 1px solid #FF6600;
    }

    etc etc

    Now, for your funstuff category you can edit in these specific code blocs (with the 10 in their name) and that won't affect the rest of yor site.

    So, ok, a little php and some css, but for that there is a nice tool:
    Get Firefox and then the free Firefox addon Firebug. You can then click anywhere in your site and see what piece of the css influences that piece of your site and you can even make changes but not save them, so it is safe to practice.

    And, always backup your theme files before editing so you can rollback. Just use ftp to make a copy to your PC.

  5. X-Evolutionist
    Member
    Posted 4 years ago #

    Hi henkholland,

    Thank you very much for the information! I apprecate it.

    X

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags