WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP gallery: backslash following " (9 posts)

  1. mario0
    Member
    Posted 1 year ago #

    Hi all,
    Having a problem with a backslash appearing after "< -- Previous" at the base of the image on the attachment page here: http://mmnkltd.com/cdavis/river-flow/river-flow-4/.
    The character itself links to the previous image.
    I cannot figure out how to get rid of it.
    Suggestions, please.
    Thank you
    Cheers,

  2. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    I get this:
    HostGator Web Hosting Website Startup Guide

    Please contact your host to find out what's wrong with your site.

  3. mario0
    Member
    Posted 1 year ago #

    Hi Krishna.
    Thank you for getting back to me so quickly.
    Really strange; I don't get that message. HostGator is the host.
    I tried the same URL on Safari (IE), Chrome and IE9 and get the image/page I expect.
    Any thoughts?
    Thanks again.
    Cheers,

  4. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    What do you get here: http://mmnkltd.com/

  5. mario0
    Member
    Posted 1 year ago #

    Hi,
    Yes, I do get "HostGator Web Hosting Website Startup Guide". That is OK. I don't have anything for the index page. The site is just a holding/sandbox.
    What do you see at the http://mmnkltd.com/cdavis/river-flow/river-flow-4/ URL?
    thanks
    cheers,

  6. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Yes, I got it.

    BTW, did you edit any template of the theme? The slash seems to come from the template of the theme. Check for it by going to Editor (in the Dashboard) and remove it.

    Still better, replace the theme with a fresh copy. You may lose your customizations. To avoid it always create a Child Theme and then customize it.

  7. mario0
    Member
    Posted 1 year ago #

    From the edited attachment page in a child theme:

    <?php if ( has_excerpt() ) : ?>
    	<h3><?php the_excerpt(); ?></h3>
    
    	<?php endif; ?>
    
    	<nav class="attach-nav clear">
    		<p class="prev alignleft"><?php previous_image_link( 0, __( 'Previous', 'portfolio' ) ); ?></p>
    		<p class="next alignright"><?php next_image_link( 0, __( 'Next', 'portfolio' ) ); ?></p>
    	</nav>

    From the default attachment page:

    <?php if ( has_excerpt() ) : ?>
    		<figcaption>
    			<?php the_excerpt(); ?>
    		</figcaption>
    	<?php endif; ?>
    	<nav class="attach-nav clear">
    		<p class="prev alignleft"><?php previous_image_link( 0, __( 'Previous', 'portfolio' ) ); ?></p>
    		<p class="next alignright"><?php next_image_link( 0, __( 'Next', 'portfolio' ) ); ?></p>
    	</nav>

    I didn't make any changes to that part of the code, just to the h3 and removing the <figcaption>.

    I'm not seeing any "\". Is it in the "'portfolio'" piece above?
    thank you!

  8. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    It seems the \ is from your style CSS (inspect with firebug or sililar browser tool). Possibly from:

    a[rel="next"]:after, .attach-nav .prev a:after, .next-comment-link a:after {
        color: #505050;
        content: " \\";
        margin-left: 0.2em;
  9. mario0
    Member
    Posted 1 year ago #

    Hi Krishna,
    Perfect. I went into the child css I've made and adjusted the content line.
    What a super new thing to learn. Here was interesting info on that: http://css-tricks.com/css-content/ by Chris Coyier.
    Any thoughts about why the "\" would be used in the one spot and not with the "Next"? (Seems strange to have it regardless.)
    Thank you very much for the assistance.
    Cheers

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags