WordPress.org

Ready to get started?Download WordPress

Forums

My posts do not show up when I click them from main page (6 posts)

  1. clutchlt
    Member
    Posted 2 months ago #

    Hi,

    I am new to this and i just setup my website through go daddy. i have the twenty twelve theme installed.

    When I post things, for some reason it will show up on my main page like this:

    http://ltmindset.com/

    But if you click the "change your mindset" it does not display the post.

    I made a change in my content.php file because for some reason when i was posting, the "leave a reply' link or comments section would be at the top of my post so I cut that part and pasted that in the bottom somewhere.

    Could this be why it is causing it?

    Any help would be great,

    thanks!

  2. Sarathlal N
    Member
    Posted 2 months ago #

    Hi;
    You already answered for your question :-).

    I made a change in my content.php file because.....

    If you are a beginner, always play with WordPress installation on your localhost.

    Now you made some changes in twenty twelve theme files (content.php). This is not the perfect way. First you want to make a child theme for twenty twelve theme and then edit files from that child theme.

    To solve your problem, either switch to any other default theme, then delete that old twenty twelve theme, install a new twenty twelve theme & activate new theme.

    Then make a child theme for twenty twelve theme & done your editing on it.

  3. clutchlt
    Member
    Posted 2 months ago #

    Thanks I did what you said. and it fixed it in terms of deleting and reinstalling the theme.

    But now I have the same original problem before which is if you notice on the site now, the "leave a reply" is at the top of the post.

    Do you have any idea how to get it at the bottom?

    Thanks,

  4. Sarathlal N
    Member
    Posted 2 months ago #

    First make a child theme for twenty twelve theme. Then we have too many options to remove that leave a reply.
    In child theme's style.css file, add style property display: none for leave-reply class.

    .comments-link .leave-reply {
    display: none;
    }
  5. clutchlt
    Member
    Posted 2 months ago #

    How do I install a child theme.

    I don't want to delete the leave a reply link. I just want to put it at the end of the post instead of the top.

    Thank you for your help!

  6. Sarathlal N
    Member
    Posted 2 months ago #

    Hi;
    Making a child theme is too simple.
    Just read this codex or search about WordPress child theme.

    Then if you want to move leave a reply from top to bottom;
    1) first copy content.php from twenty twelve theme to your child theme & open that file.
    2) Then move section related to comment popup link (start from line 31 to end in line 35) in to footer section (after line 49).
    3) If you don't need this leave a reply for single post, Just wrap your code with an if statement like below one.

    <?php if ( !is_single()) { ?>
    //Your code comes here.....
    <?php } ?>

Reply

You must log in to post.

About this Topic