WordPress.org

Ready to get started?Download WordPress

Forums

Is it possible to... (8 posts)

  1. Barfly
    Member
    Posted 6 years ago #

    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.

  2. Adam Brown
    Member
    Posted 6 years ago #

    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.

  3. Barfly
    Member
    Posted 6 years ago #

    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... :D

  4. Adam Brown
    Member
    Posted 6 years ago #

    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.)

  5. Barfly
    Member
    Posted 6 years ago #

    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!!

  6. Barfly
    Member
    Posted 6 years ago #

    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!

  7. Barfly
    Member
    Posted 6 years ago #

    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!

  8. Barfly
    Member
    Posted 6 years ago #

    adamrbrown: thank you for the code - worked perfectly!

    Fixed up my CSS now too! Yeah!

Topic Closed

This topic has been closed to new replies.

About this Topic