WordPress.org

Ready to get started?Download WordPress

Forums

P2
Change Permalink to an image? (3 posts)

  1. keeperbay
    Member
    Posted 6 months ago #

    How do I change the word Permalink to an image?
    Permalink means Nothing to normal people. It only means something to us WordPress users. I need to change the word Permalink to a comment image so people know that they click on that to comment.

    Also when Reply is click an error shows up saying that P2 isn't connected to the server, but of course when Permalinks is clicked it works perfectly fine. ("Whoops! Looks like you are not connected to the server. P2 could not connect with WordPress.")

    Build site: http://how2fakeit.com/
    Current/updated version of WordPress, Current/updated version of theme.

  2. The permalink is actually just a link to the view the single post view - you don't need to click Permalink to reply to a post.

    To change it to an image and remove the text, first set up a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made one before:

    http://codex.wordpress.org/Child_Themes
    http://op111.net/53/
    http://vimeo.com/49770088

    The word "Permalink" is contained in the file entry.php. Create a copy of this file and place it in your child theme folder. Have a look at line 37 and replace Permalink with other text of your choosing in this function: <?php _e( 'Permalink', 'p2' ); ?>

    Here's the full piece of code for context:

    <a href="<?php the_permalink(); ?>" class="thepermalink<?php if ( is_singular() ) { ?> printer-only<?php } ?>" title="<?php esc_attr_e( 'Permalink', 'p2' ); ?>"><?php _e( 'Permalink', 'p2' ); ?></a>

    If you prefer an image, you'd place your image tag in the same spot as the word Permalink, for example:

    <?php _e( '<img src="http://full/path/to/image.png" />', 'p2' ); ?>

    Be sure to include a full path to the desired image on your server.

    I'll reply to your other issue separately.

  3. Also when Reply is click an error shows up saying that P2 isn't connected to the server, but of course when Permalinks is clicked it works perfectly fine. ("Whoops! Looks like you are not connected to the server. P2 could not connect with WordPress.")

    Does this happen whether you are logged into your account or not?

    I've clicked on your comment link several times and haven't seen the error yet.

Reply

You must log in to post.

About this Theme

About this Topic

Tags