• Hi!

    So, I probably messed something up in a file, but I can’t find it anywhere. I have some unwanted characters (} }); )on the bottom of my blog ( picture here).

    * The problem is not in the theme, the characters appear in every theme.
    * The problem is not in a plugin, I deleted and installed everything.
    * I used “Ultrafinder” to look up the characters (} });), but it only found 2 files and there were no errors in these files.
    * I edited some core files, so I think I messed something up there, but I followed (almost) all my steps and couldn’t find anything.

    I hope someone can figure out where the problem is.
    Thanks!
    Farina

Viewing 12 replies - 1 through 12 (of 12 total)
  • do you have your website live ?

    I edited some core files

    Oh – naughty! ??

    Never, ever, edit WordPress core scripts. And do not encourage others to do so. Editing core scripts can bring down your entire site and/or open security holes for hackers to use. Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter thespot

    (@thespot)

    Zota Marius: Yes, the website is live. https://www.thefamousspot.nl/

    Esmi: I know, I know! I’ve had a lot of WordPress blogs in the past, and I always edit small things in the core files…. Never had any issues, but I think I did something, somewhere wrong, but I’m not sure if the unwanted characters are there because an error in a core file. Before I re-upload everything, I just wanted to check if that’s the most logical reason.

    Thanks both for your replies!

    Thread Starter thespot

    (@thespot)

    Oh, btw, I only edited core files from 1 plugin (Ultimate Member).
    Before re-uploading, I deleted the plugin completely and the characters were still there.

    look in footer.php is between your js. scripts. or in the plugin that put your .js files on the bot of page

    Thread Starter thespot

    (@thespot)

    Hmmm, can’t find anything there.

    Have you tried switching themes to see if this removes the issue?

    we can’t help you without seeing the files of your site …. and here you can’t post them … try disabling the plugin`s one by one … and see if one of the caouse that

    Thread Starter thespot

    (@thespot)

    Esmi: Yes, I did that, but the characters appear in every theme.
    Zota Marius: Also did that!

    I think I’m just going to reupload everything and start over, it’s the only solution I can think of right now.

    Thread Starter thespot

    (@thespot)

    So, I ‘played’ with my footer.php and somehow the characters changed their position. It’s now appearing next to my copyright text instead of under it. So, the problem might be in my footer.php file.
    Could someone please check my code?

    <body>
    <html>
    
    	</div><!-- #content -->
    	<?php if ( is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) || is_active_sidebar( 'sidebar-6' ) ) : ?>
    		<?php get_sidebar('footer'); ?>
    	<?php endif; ?>
    
    	<footer id="colophon" class="site-footer" role="contentinfo">
    		<div class="container">
    			<div class="site-info col-md-6 col-sm-6">
    
    				<span class="sep"> </span>
    				<?php printf( __( 'Copyright ? 2016 - #tFS TheFamousSpot.nl | <a href="https://thefamousspot.nl/contact/" rel="nofollow">Contact</a>' ), 'Contact' ); ?>
    			</div><!-- .site-info -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    can you check all the scripts that are loaded by wp_footer() .. there you have a problem … a type error.
    those characters (} }); seemes to be a close declaration of an javascript function and check your custom js if you have

    Thread Starter thespot

    (@thespot)

    Ok, thanks! I’ll take a look at that.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Unwanted characters at the bottom of my blog’ is closed to new replies.