WordPress.org

Forums

ZenLite
[resolved] Unusual request - remove permalink from post titles (4 posts)

  1. Eve Alexander
    Member
    Posted 2 years ago #

    I know this is an unusual request but we have our reasons!

    We've been through all the php pages and have not found where we can remove the permalink link from the page titles.

    If anyone knows, please share!

    http://wordpress.org/extend/themes/zenlite/

  2. esmi
    Forum Moderator
    Theme Author

    Posted 2 years ago #

    Create a child theme and then change:

    <?php if( !is_singular() ) :?><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute( array('before' => __('Permalink to ', 'zenlite'), 'after' => '') ); ?>"><?php endif;?><?php the_title();?><?php if( !is_singular() ) :?></a><?php endif;?>

    to:

    <?php the_title();?>

    in a copy of format-page.php in your child theme.

  3. Eve Alexander
    Member
    Posted 2 years ago #

    Esmi, thank you but it didn't work. We found that same code on all the format- pages, removed it and it's still linking from the home page.

  4. esmi
    Forum Moderator
    Theme Author

    Posted 2 years ago #

    Do not edit the parent theme!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags