ThemeShaper Forums » Thematic

Page content disappears after posting

(14 posts)
  • Started 10 years ago by lhm
  • Latest reply from amygail
  • This topic is resolved
  1. Hi,

    This has to be easy, but I can't figure out what's going on:

    On one of my pages, www.pr-roman.dk/bloggen, (the page that I plan to use for posts), the content is suddenly gone. I only get: "Apologies, but we were unable to find what you were looking for. Perhaps searching will help."

    This happened after posting a test post. The post appeared alright, but the page content was gone. I deleted the post and now everything is gone. I still see the content on the admin page. I use custom permalinks, and have set a static front page and a different static page for posts.

    Thanks for any help.

    Lasse

    Posted 10 years ago #
  2. That's your 404 page. Try turning off permalinks and see what happens. If it works with permalinks turned off, then it may be that your server isn't rewriting your urls correctly.

    Posted 10 years ago #
  3. Thanks, but it still doesn't work. I changed the permalink settings to "default", deleted the post page and started over.

    This is what I get: When I create a new page everything looks ok. Under "Settings -> Reading" I select the page I just created as "Posts page". But when I create a post on that page, the page content disappears. When I delete the post everything, both page content and post disappears. When I delete the whole page, and try to recreate it, it is still blank, even though the admin panel shows content.

    This is the page I'm talking about: http://www.pr-roman.dk/?page_id=173

    Any help would be MUCH appreciated.

    Thanks,
    Lasse

    Posted 10 years ago #
  4. I'm a bit confused by your statement:

    But when I create a post on that page, the page content disappears.

    Are you putting content on this page before you select it as the post page? If so, this is not the correct way to get content on top of a posts page.

    Try creating a page with no content, call it "Test". Select that page as the posts page, and make sure to select another page as the Static Page.

    Do your posts show?

    Posted 10 years ago #
  5. Yes, posts do show when I do it this way. Am I supposed to put content at the top of the posts page now, _after_ selecting it as the posts page?

    Thanks a lot for your help, awarner20.

    Posted 10 years ago #
  6. Hey, no problem:) I wanted to isolate the issue first. Ok, so you have your posts page now, but you need to add content to it? Where would you like this content? On the top of your posts? Under your posts? After your posts? Will this content ever change? If so, how often?

    I ask all these questions because as with most things WP and Thematic, there is more than one way to accomplish your goal.

    The easiest solution if you just need content on top of your posts is to create a "sticky" post. When writing a post, look to the right side under the Visibility: public section. You will see an option to

    Stick this post to the front page

    This will allow you to have static content always on top of your post page, and then you can change it as easy as editing the post:)

    You could also use the built in Thematic widget areas too, look at the readme.html in the Thematic folder.

    Is this what you're looking to do?

    Posted 10 years ago #
  7. Yes. I wanted a short introduction to appear at the top before all the regular posts. I didn't realize that I wasn't supposed to put content on a posts page. Your method seems to work just fine.

    Now that it works, there's another small issue that pops up: I hid the entry titles by using:

    .entry-title {
    display:none;
    }

    in my style.css. (From this discussion: http://forums.themeshaper.com/topic/names-of-pages.) That's because I didn't want to repeat the page titles as entry titles on the other (non-post) pages. But on the post page I need the entry titles; it looks really silly with a byline but no headline.

    Any way to hide entry titles on specific pages?

    Cheers,
    Lasse

    Posted 10 years ago #
  8. Hi Lasse,

    try to use the body classes ..

    .page .entry-title {
    display:none;
    }

    Chris

    Posted 10 years ago #
  9. Thanks, Chris, but I must be missing something. Adding your code to my style.css has no effect. I need somehow to identify the page(s) that I want to change.

    I tried:


    .body.slug-bogen.entry-title {
    display:none;
    }

    and

    .page.slug-bogen.entry-title {
    display:none;
    }

    and many other variations with no luck. I must be confusing classes with something else; I'm very new with CSS.

    The page 'bogen' is here: http://www.pr-roman.dk/bogen

    What am I missing?

    Thanks,
    Lasse

    Posted 10 years ago #
  10. amygail
    Member

    you need a space between slug-bogen.entry-title

    should be like so...

    body.slug-bogen .entry-title {
    display:none;
    }

    this is also giving you and error

    //.entry-title {
    //display:none;
    // }

    If you're trying to comment it out it should be like this
    /*
    .entry-title {
    display:none;
    }*/

    Posted 10 years ago #
  11. Wonderful, you're an angel, now I'm finally seeing progress :-)

    Is there a way to do this without using permalinks/slug-names? Thing is, whenever I turn this on, the leave-a-comment-functionality breaks.

    (And just to learn a bit, what's the logic behind needing a space in that particular spot?)

    Thanks again,
    Lasse

    Posted 10 years ago #
  12. amygail
    Member

    I guess you could say that the space is because the items are separate elements: body.slug-bogen is one and .entry-title is another .
    You need to keep them separate so the browser knows what it's looking for.

    'body.slug-bogen' tells it what page it's looking for and .entry-title is the element you want to change

    The 'leave a comment' functionality should be effected by using permalinks.

    Posted 10 years ago #
  13. The 'leave a comment' functionality should be effected by using permalinks

    Does that mean I can't both use permalinks AND have users leaving comments?

    Posted 10 years ago #
  14. amygail
    Member

    Ooops TYPO sorry!
    I meant ....

    The 'leave a comment' functionality should NOT be effected by using permalinks

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.