Support » Themes and Templates » Is it possible to…

  • Hello. I was wondering if it is possible to have it so on the front page of my blog there are no tags/cats/comments showing, then you click …more and they are shown then.

    In the theme I am creating I want the front page to be minimal as there’s lots of boxes, and I want each to have only the post title, and a more tag in. Should I use the_excerpt tag, or is there a way of placing all the tags somewhere they’ll only show after clicking more? I’ve tried the latter only can’t seem to get it working…

    Thanks for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sounds like what you want is conditional tags. Use as needed in your theme files.

    So if you want something to not display on your front page, go into your index.php and wrap that part of the code in this:

    <?php if(!is_home()){ ?>
    ... this stuff won't appear on the front page ...
    <?php } ?>

    If your theme as a file called home.php, by the way, you don’t need conditional tags. Just edit that file and only the front page will be affected.

    Thread Starter Barfly

    (@barfly)

    Oh, so because I don’t have a page called home.php and my page is index.php I just wrap in that? Brill!

    I thought the nightmare I’d be having was the CSS – it was working perfectly .. WAS then I checked i.e. 6 – I am soo mad! I don’t know why but my divs are dropping onto the next line, not floating next to each other – I’ve tried altering the width of everything, nevermind, need to go fix that now!

    Thanks very much for your help… 😀

    No problem. As for float divs dropping when viewed in IE, there are many, many, many threads on that topic. Search for “sidebar drops” or something like that. (Most posts about dropping divs talk about sidebars, but the same principals apply to any div.)

    Thread Starter Barfly

    (@barfly)

    cool… If I supply the link if anyone reading this could take a look and advise a solution. I’ve played with some margin, width and other properties since, but you get the idea. Three columns, all wrapped in divs… the right one dropping in i.e. I am going to search the forums now for some solutions.

    http://twisted-solutions.co.uk/wp_test

    Thanks!!

    Thread Starter Barfly

    (@barfly)

    I think it has something to do with the footer being in the container (fixed that now -oops)

    … still trying to fix it up though!

    Thread Starter Barfly

    (@barfly)

    ha ha! When I change the site to view 1 post the problem is resolved, so the problem lies with the story div!

    ah ha!

    Thread Starter Barfly

    (@barfly)

    adamrbrown: thank you for the code – worked perfectly!

    Fixed up my CSS now too! Yeah!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Is it possible to…’ is closed to new replies.