Forums

[resolved] Removing permanent link from the posts titels (7 posts)

  1. Listic
    Member
    Posted 2 years ago #

    Hi!

    I would like to remove the permanent link from the posts titels..

    I belive i have to edith the code below. But im not really a sharck at this, so if someone has 1 min I would be very tankfull.

    index.php
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    page.php
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

  2. stvwlf
    Member
    Posted 2 years ago #

    <h2>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    is this what you mean?

  3. Listic
    Member
    Posted 2 years ago #

    Ohhh sorry

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

    Just tried replasing both simular lines in index.php and page.php to:
    <h2><?php the_title(); ?></h2>

    But I see no changes at all..!!

  4. Jeremy Clark
    Moderator
    Posted 2 years ago #

    Did you force a refresh when you where viewing you blog, hitting CTRL + F5 will force a refresh in Firefox and IE.

  5. stvwlf
    Member
    Posted 2 years ago #

    What you did is correct. Did you refresh your browser screen several times, to force the page to be downloaded from the server again? Also, you need to make that change in single.php, archive.php. and category.php

  6. Listic
    Member
    Posted 2 years ago #

    Ohhhh had to make the same change to home.php
    so now it works..
    Thanks for your time

  7. Linkaq
    Member
    Posted 1 year ago #

    Okay, okay, okay! I think I fianlly found the right post. I want to remove the "Permanent Link" part of the title, but I still want the name of my post to work as a link. How do I do this?

    This is what the code in my index.php file looks like:

    <h2 class="some-class">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
    <?php the_title(); ?>
    </a>
    </h2>

    I really appreciate the help dudes.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.