Viewing 15 replies - 1 through 15 (of 19 total)
  • Are you trying to change the text of the Title? Or the link which is based on the post and permalinks.

    Thread Starter windandsea

    (@windandsea)

    im trying to change the link of the title based on post. thanks

    WHen editing a Post change the Permalink. Located just under the Title.

    I tried that and it didn’t work. I think I’m trying to do the same thing as windandsea. But I want my page title to link to my home page. WordPress won’t let me leave the permalink blank (meaning that I’m just leaving the homepage part and leaving the edit part blank).

    Is there another way to accomplish this?

    Hmm. The answer may be in there, but there is too much information and I am to ignorant of PHP to understand what the heck I’m reading.

    Anyone else out there who can just tell me how to have my page title point to my homepage instead of pointing to itself?

    The wordpress ‘help’ pages are less-than-helpful to folks that are not natural programmers.

    @mjblake
    If you want the title that is displayed within the page then you need to edit either (depends on theme used) header.php or the template for the page such as page.php.
    Should be something like:
    <h1 class="entry-title"><?php the_title(); ?></h1>
    and change to something like:
    <a href="mysite.com"><h1 class="entry-title"><?php the_title(); ?></h1></a>

    Is this what you’re talking about Webjunk?

    <?php get_header(); ?>

    <div id=”content” class=”col-full”>

    <div id=”main” class=”col-left”>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <?php include(‘post.php’); ?>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <div class=”post-title”>

    <h4><?php _e(‘Sorry, no posts matched your criteria.’, ‘cp’); ?></h1>

    </div>

    <?php endif; ?>

    </div><!– #END main –>

    <?php get_sidebar(); ?>

    </div><!– #END content –>

    <?php get_footer(); ?>

    do you have a header.php

    yes, but I didn’t see what you were talking about in it.

    Post the header.php into Pastbin

    Next Time as per the rules paste into:
    https://wordpress.pastebin.ca/

    Wha I think we need actually is from: post.php

    As an aside from a quick look in an earlier post you did is an error above:
    <h4><?php _e('Sorry, no posts matched your criteria.', 'cp'); ?></h1>

    Need to start and end with the same tags. there is h4 and ending in h1

    oh. never heard of the pastebin. I thought you meant to post here. sorry.

    posted in the paste bin and fixed the h4, h1 problem.

    We need the link to where in Pastbin….

    pastebin – mjblake – post number 1958992

    is that enough?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘change link in a post title’ is closed to new replies.