• On the indexpage i have all my articles, so the visitors can read them witout using any links. The full text of the articles are visible on the indexpage.

    Where in the php-code, can i change so the subjects for the articles on the indexpage, not are links to the article?
    (I my situation, that is no point to have links to articels that the visitor can read the full text of, at the indexpage. my english is bad, but i hope you understand what i mean?)

    //Brian

Viewing 6 replies - 1 through 6 (of 6 total)
  • Look in the loop of the index page and remove the a tag surrounding the_title().

    You might have a section something like this:
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>

    I think you could change that to:
    <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>

    Are you not having comments on the page? One reason to keep access to the permalink page would be to read/submit comments.

    Yes, what oriecat said. Beat me to it.

    Actually the title of the article leads not only to the “full text” but also to the comment page (technically single.php template).
    But if you want to remove the link from your index.php – open it in a plain text editor and somewhere in the “post” div find this line:
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    Remove the permalink anchor:
    <?php the_title(); ?>

    Thread Starter brianbrian

    (@brianbrian)

    Thanks a lot for the help! 🙂

    Thanks
    Brian

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Remove links in subjects…’ is closed to new replies.