Forums

Can I hide permalinks? (13 posts)

  1. darrvar
    Member
    Posted 1 year ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    There's no link in that code.

  3. darrvar
    Member
    Posted 1 year ago #

    Thank you.

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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

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

  5. darrvar
    Member
    Posted 1 year ago #

    http://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?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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.

  7. darrvar
    Member
    Posted 1 year ago #

    I tried that and it didn't work.

    What should I try next?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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).

  9. darrvar
    Member
    Posted 1 year ago #

    Do you have any other suggestions?

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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?

  11. darrvar
    Member
    Posted 1 year ago #

    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.

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try editing homepage.php.

  13. darrvar
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags