Support » Fixing WordPress » WP gallery: backslash following "

Viewing 8 replies - 1 through 8 (of 8 total)
  • Krishna

    (@1nexus)

    Member

    I get this:
    HostGator Web Hosting Website Startup Guide

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

    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,

    Krishna

    (@1nexus)

    Member

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

    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,

    Krishna

    (@1nexus)

    Member

    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.

    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!

    Krishna

    (@1nexus)

    Member

    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;

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WP gallery: backslash following "’ is closed to new replies.