Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13639

    Right now, in the Sentence theme, the title of each blog post is its permalink. I also want to add the word and link PERMALINK underneath each post on the same line as COMMENTS, LIKES, etc.

    I found the php that creates the permalink in the title:

    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?>

    I’d like to know two things: 1. what is the correct php to do this (is it the following)?

    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> PERMALINK ?>

    And, 2. where shall I place this to accomplish this task? What file and where in that file. Thanks.

    #79971

    Hi,

    Open format-standard.php located in the theme’s includes folder. Replace this snippet:

    /*
    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep">/</span>';

    echo '<span class="blog-permalink minor-meta">';
    echo "<a href='".get_permalink()."'>".__('#permalink','avia_framework')."</a>";
    echo '</span>';
    */

    With this:

    /*
    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep">/</span>';
    */

    echo '<span class="blog-permalink minor-meta">';
    echo "<a href='".get_permalink()."'>".__('#permalink','avia_framework')."</a>";
    echo '</span>';

    What this should do is uncomment the built-in permalink.

    Regards,

    Mya

    #79972

    Perfect. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Adding Permalink at end of each blog post’ is closed to new replies.