Forums

Beginner needs help with comments and archives page for pressrow (27 posts)

  1. rkem18
    Member
    Posted 2 months ago #

    Hi,

    I'm so new to this, and having a very hard time understanding how to do a lot. I have the pressrow 0.1 by Chris Pearson theme. On my homepage, there are three pages listed, two of which I did not create on my dashboard. I'm trying to figure out how to get rid of the "archives" page. I can't delete it from my dashboard, because I never created the page. It was automatically there when I installed the theme.

    Second, when people go to comment, it takes them to my "about" page and they are unable to comment.

    any help would be so much appreciated - I'm about to give up!

    Thanks!

  2. pboosten
    Member
    Posted 2 months ago #

    What's the url to your site?

    Peter

  3. rkem18
    Member
    Posted 2 months ago #

    sortakindafamous.com

  4. rkem18
    Member
    Posted 2 months ago #

    thank you for responding!!!

  5. rkem18
    Member
    Posted 2 months ago #

    p.s. i think i figured out the comment thing - just need help with the archives

  6. pboosten
    Member
    Posted 2 months ago #

    Since I don't know the theme, I'm gonna make a guess here about the filename: in most of the cases I've seen, the navigation bar is in the file header.php. So that'll be your starting point.

    In that file there's something like this:

    <div id="nav">
    <ul>
    <li>
    <a class="blog" href="http://sortakindafamous.com">blog</a>
    </li>
    <li>
    <a class="archives" href="http://sortakindafamous.com/archives/">archives</a>
    </li>
    <li>
    <a class="about" href="http://sortakindafamous.com/about/">about</a>
    </li>
    </ul>
    </div>

    If you want to get rid of archives, change this bit to:

    <div id="nav">
    <ul>
    <li>
    <a class="blog" href="http://sortakindafamous.com">blog</a>
    </li>
    <li>
    <a class="about" href="http://sortakindafamous.com/about/">about</a>
    </li>
    </ul>
    </div>

    (the exact wording could differ, since I'm reading html, while the php may look a bit different).

    I'll look into the other problem in a jiffy.

    Peter

  7. rkem18
    Member
    Posted 2 months ago #

    ugh - did not figure out the comment thing

  8. rkem18
    Member
    Posted 2 months ago #

    ok i'll try that - thanks!

  9. rkem18
    Member
    Posted 2 months ago #

    ahhhhh! that worked!!! thank you thank you!!!

    any luck on the comments issue?

  10. rkem18
    Member
    Posted 2 months ago #

    Ok

    I figured out the comments issue. Here's my issue now. I've created an "about" page, but I don't know how to link it up to the "about" tab on the blog. Does that make sense? so when you click on the 'about' tab on the blog, the actual 'about' page that i created on my dashboard doesn't show up...

  11. pboosten
    Member
    Posted 2 months ago #

    Second, when people go to comment, it takes them to my "about" page and they are unable to comment.

    What exactly do you mean here? If I click on 'No Comments' for the first post (My Cholesterol), it takes me to this url http://sortakindafamous.com/?p=79#respond, which is the article itself, yet it doesn't jump to the input field.

    I'm able however to put something in. I'm not seeing the about page at that point. Is it after they submit their comments?

    Peter

  12. pboosten
    Member
    Posted 2 months ago #

    http://sortakindafamous.com/?p=79#comments will actually take you to the correct spot in the post, but I'm not sure how to fix this.

    Peter

  13. rkem18
    Member
    Posted 2 months ago #

    I don't exactly understand what permalinks are. So when I finished creating my "about" page on the dashboard, I went to "change permalinks" and put in a custom permalink of http://sortakindafamous.com/about/. This allowed me to be able to access the "about" page that I had created in my dashboard from the "about" tab on the blog. However, when I did this, the option to add comments anywhere on the blog went away. If you clicked on "no comments" it would just take you to the "about" page.

    So I think I have the comments working (like you saw). But now I just need to figure out how to access the "about" page that I created on my dashboard to the "about" tab that is on my blog...

    I don't really know how else to explain it so i hope this makes sense!

  14. pboosten
    Member
    Posted 2 months ago #

    Ah, now I know: comments-popup-link takes a fourth parameter, which should be 'comments' in your case (index.php).

    Peter

  15. pboosten
    Member
    Posted 2 months ago #

    The problem with permalinks is, that they require something called mod_rewrite on your apache, and a .htaccess file in your webroot (if you enable permalinks, you'll see the content for that .htaccess in your browser).

    If your webserver isn't configured to use mod_rewrite, then you can swiftly forget about permalinks :-)

    Without permalinks, you can access the about page by modifying the link to its ID, like /?p=24 (the number is just an example, you can find the correct page ID from the admin page, just by hovering the mouse over the 'edit page' link and watch carefully in your status bar.

    Peter

  16. rkem18
    Member
    Posted 2 months ago #

    thanks - but I totally messed up my comments thing because I tried to fix it without really knowing what I'm doing - can you take a look at what I did - you'll see it when you go to the page...

  17. rkem18
    Member
    Posted 2 months ago #

    haha - i have no idea what i just did and i have no idea what you said about fixing the about page - sorry if i'm frustrating you!

  18. pboosten
    Member
    Posted 2 months ago #

    what exactly did you change to the comments_popup_link()?

    Can you copy that part (starting from <?php end ending at ?>) here?

    Remember to use backticks around that part.

    Peter

  19. rkem18
    Member
    Posted 2 months ago #

    <?php comments-popup-link('No Comments', '1 Comment', '% Comments'); ?>

    That was me trying to fix it after i messed up....

    what are backticks?

  20. pboosten
    Member
    Posted 2 months ago #

    comments_popup_link, I assume?

    Peter

  21. rkem18
    Member
    Posted 2 months ago #

    oh...

    '<?php comments-popup-link('No Comments', '1 Comment', '% Comments'); ?>'

    is that what you meant?

  22. pboosten
    Member
    Posted 2 months ago #

    those aren't backticks, but never mind... the function needs underscores, not dashes (comments_popup_link vs comments-popup-link).

    Peter

  23. rkem18
    Member
    Posted 2 months ago #

    thank you!

    could you try to guide me through that "about" page thing?

  24. pboosten
    Member
    Posted 2 months ago #

    which way you wanna go? permalinks, or no permalinks?

    Let's start with number 2, since that's the easiest.

    Go to your admin panel, and select 'pages' on your left hand side. Now hover over the about page you created (not click), and watch your status bar (of the browser). It should say something like:

    http://sortakindafamous.com/wp-admin/page.php?action=edit&post=10, where the number 10 can be different, however is crucial to what we're trying to accomplish. Remember this number.

    Now go to the header.php, and find the spot where you removed the 'archives' part, earlier in this thread.

    Change the url for the about page, specifically where it says /about you change it into /?p=10, where you replace the 10 with the number you just remembered.

    That should be about it.

    Peter

  25. pboosten
    Member
    Posted 2 months ago #

    In order to get the comment thingemy nice, change this:

    <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>

    into this:

    <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments'); ?>

    That should do the trick to get the readers right away to the comment space.

    Peter

  26. rkem18
    Member
    Posted 2 months ago #

    thank you so so so so much peter!!

  27. rkem18
    Member
    Posted 2 months ago #

    AND i just figured out how to get the archives tab out of the about page!! thank you so much for your help!

Reply

You must log in to post.

About this Topic