• Resolved artsyandi

    (@artsyandi)


    I am working on the “single” page of my wordpress theme that you go to to read a full blog post or to comment on it. In doing so I am struggling with two different (probably simple) issues.

    First, I need to remove the hyperlink that is on the title.

    Second, I have entered a “previous post / next post navigation to the top… but it isn’t showing up on page load.

    Can someone look at the code and let me know what I would need to do to make these two thing happen?

    TIA!

    [code moderated according to forum rules - please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • in single post, use next_post_link() and previous_post_link() (singlar ‘post’ in the function name)
    you’ll find the description for these in the codex.

    re: html link:
    http://www.w3schools.com/html/html_links.asp

    Thread Starter artsyandi

    (@artsyandi)

    Ok… I got the issue fixed with the navigation links… but am still having an issue with the header title being a link.
    How do I change the following code to make it be a solid title rather than a link?

    <h3 class="h1" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" class="single" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

    <h3 class="h1" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>

    you remove the parts that make the html link:
    before the title:
    <a href="<?php echo get_permalink() ?>" class="single" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>">
    after the title:
    </a>

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

The topic ‘Removing hyperlink and adding navigation…’ is closed to new replies.