Support » Fixing WordPress » Remove “Permalink to” from <a title=”…..”

  • Resolved Procyon



    I honestly have no idea where to look in the code and thought I’d save myself time by posting here. It’s not a big problem, but I think it looks a bit ugly. I have a few product images and it always says “Permalink to Product Name” when I hover over the product image.
    Check here. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The code is probably in the index.php, but may be in a different file for your theme. Look for a line like this:

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

    and delete ‘Permanent Link to’ from the title=” part (be sure to leave the double quote).

    The author of the theme told me it’s somewhere in wordpress.
    It is, unfortunately, not the index.php file (default theme) you just told me. I also checked all of the other files in the same folder but no luck.

    Find alt= and delete code after alt= or paste ur source code here…

     * @package WordPress
     * @subpackage Default_Theme
    get_header(); ?>
    	<div id="content" class="narrowcolumn" role="main">
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    		<?php endwhile; ?>
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    	<?php else : ?>
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    	<?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    paste ur functions.php …because ur theme got only functions.php ..its right

    hello you are pasting default wordpress theme file…not that….find this path and find page.php or single.php and replace alt =

    functions from my theme or from default?

    that’s the thing…I already went through every php file in that theme and couldn’t find it….the author tells me it’s somewhere in wordpress

    …and not in the theme.

    found it! it was in a file called category_body.php
    thanks guys!

    Wow, i hope the author isn’t that forgetful in his usual duties, whatever they may be… assuming he wrote the original code… 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove “Permalink to” from <a title=”…..”’ is closed to new replies.