Forums

continue reading issue and permalinks! (11 posts)

  1. curauser
    Member
    Posted 9 months ago #

    Hi,
    I have designed a website based on the wordpress. I have two issues and I have no idea how to sort them out
    this is the link to the: http://cura3.sbs.ohio-state.edu

    1- On the front page of the above website, when I click on the "continue reading" of the posts, it gets to the bottom/middle of the page newly opened! But it is supposed to direct you to the top of the new page

    2- On the front page of the website, how could I remove the permalinks from the posts titles; or how can I link the posts titles to one of the pages!?

    If you have any idea for these two issues, it will help me a lot. I am about to finish this website but I am stuck at these two issues.

  2. popper
    Member
    Posted 9 months ago #

    Hi there!

    1-From the codex: "By default, when you click on the Read More link, the web page loads and then "jumps" to the spot where the <--more--> tag is set in the post.". If you want to change it, look at this article in the codex, and use the code there.

    2- Open up the index.php file, look for something along this lines:

    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>

    just delete de <a href></a>

  3. curauser
    Member
    Posted 9 months ago #

    Awesome! the first one solved
    but the solution that you provided for the second one didnt help. There is not such a code on the index.php code! but I found a piece of code similar to that, on loop, but it didnt help the titles! Are there other ways?

    The ideal solution for me is to link each of the post titles on the front page (permalinks), to a different page. Is that ever possible?

  4. popper
    Member
    Posted 9 months ago #

    Can you post your index.php in pastebin.com so I can take a look at it?

  5. curauser
    Member
    Posted 9 months ago #

    sure! this is index: http://pastebin.com/dxkG34mg

  6. popper
    Member
    Posted 9 months ago #

    Allright, seems the posts loop should be in the loop.php file, can you post that one? :P

  7. curauser
    Member
    Posted 9 months ago #

    sure. thanks for the help.
    here loop is: http://pastebin.com/UgwGcGzf

  8. popper
    Member
    Posted 9 months ago #

    In line 126, you have:

    <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Try removing the <a href> parts:

    <h2 class="entry-title"><?php the_title(); ?></h2>

    That should do it. To link the post to another page, probably the best idea is to use a custom field, say "Custom link", and replace the above <a href>'s whit the the link entered in the custom field.

  9. curauser
    Member
    Posted 9 months ago #

    hey Awesome! it removed the link!
    but for the "linking post title to another page" thing, if I used a custom link, it will link all the post titles to one page, while I was wondering if I could link each post title to a different page!
    Thanks again! removing the post title permalinks still helps!

  10. popper
    Member
    Posted 9 months ago #

    No, I meant using a custom field, named "custom link". That would link each post to a different page.

  11. popper
    Member
    Posted 9 months ago #

    Double post.

Reply

You must log in to post.

About this Topic