• darrvar

    (@darrvar)


    I want to hide the permalinks that show up on each page that link to other pages on my site. I gather I need to edit the page.php. I think I know where to go to do this Appearance>Editor>Page Template (page.php) I do not know how to edit code. I found a line that reads:

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

    Is this the line that contains the code? If so, what should I remove / edit to make the hide the permalink?

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi

    (@esmi)

    There’s no link in that code.

    Thread Starter darrvar

    (@darrvar)

    Thank you.

    Can you tell me exactly what to look for and exactly how to change it?

    esmi

    (@esmi)

    Not without a link to a sample page on your site.

    Thread Starter darrvar

    (@darrvar)

    https://www.highlifecredit.com

    See where it says Home Base basically twice? One right on top of the other?

    If you hover over the one on the bottom it says ‘Permanent Link to Home Base’.

    Can you help?

    esmi

    (@esmi)

    Try changing:

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

    to:

    <h2><?php the_title(); ?></h2>

    in page.php.

    Thread Starter darrvar

    (@darrvar)

    I tried that and it didn’t work.

    What should I try next?

    esmi

    (@esmi)

    Remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    Also disable/deactivate any caching plugin(s).

    Thread Starter darrvar

    (@darrvar)

    Do you have any other suggestions?

    esmi

    (@esmi)

    Is your site using a static front page or a posts page? If it’s the former, does it use a custom template file? Is there a front-page.php or home.php file in your theme?

    Thread Starter darrvar

    (@darrvar)

    A static front page.

    When I go to Reading Settings. I have my homepage set as my Front Page. But under Post Page, my Blog page is not one of the choices. I don’t know if that’s significant.

    In my custom theme I see a homepage.php and page.php.

    esmi

    (@esmi)

    Try editing homepage.php.

    Thread Starter darrvar

    (@darrvar)

    OK here is the code from homepage.php:

    <?php
    /*
    Template Name: homepage
    */

    get_header(“home”); ?>
    <!– content starts –>
    <div id=”content”>
    <center>

    <div id=”main”>
    <div class=”post” id=”homepage-content”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <div class=”entry”>
    <?php the_content(‘<p class=”serif”>’ . __(‘Read the rest of this entry’, ‘vector_lover’) . ‘ »</p>’); ?>

    <?php //wp_link_pages(array(‘before’ => ‘<p>‘ . __(‘Pages’, ‘vector_lover’) . ‘: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
    </div>
    </div>

    <?php endwhile;
    endif; ?>

    </div>

    </div>

    <?php //get_sidebar(); ?>

    <!– content ends–>
    </center>
    </div>
    <?php get_footer(); ?>

    What code do I replace? What do I replace it with?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can I hide permalinks?’ is closed to new replies.