WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to get rid of / fix coding visible in public page (11 posts)

  1. whateverme
    Member
    Posted 1 year ago #

    Hi

    Sorry, stupid is sending a new topic.
    I don't know at all your computer language so I am going to express my issue with images.

    As I tried a while ago to rid of the name of my ex hosting company which had its name after 'Site by' at the bottom right, now I have visible publicly (footer side):

    Site by - (function() { var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)'); request = true; b[c] = b[c].replace( rcs, ' ' ); b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; }());
    ---------------------------------
    I went into Editor (as it was where I messed all up a while ago) and checked one by one all set up but I failed to find that coding anywhere.

    So how to get rid of or fix this? Could you please be simple in explaining,

    thank you VERY MUCH

  2. michael.mariart
    Member
    Posted 1 year ago #

    That code is JavaScript, and it's outside of the normal script tags that are normally there to wrap around it. My guess is that's the way that their way of hiding it from you when you go looking for it like this. If you can't see it in the editor area, I'd guess that it's being put there by a PHP function or something similar.

    Can you show what the actual code in the editor is? That way we'll be able to see what it looks like and try ot advise what you can, and can't, remove.

    * Just remember to use the 'code' butotn to enclose the code so that it's displayed correctly.

  3. whateverme
    Member
    Posted 1 year ago #

    Hi Michael

    Thank you for your reply
    The thing is that I went through everything in Editor and paste part of that code in my Find field on the top of check too if I could see that coding everywhere under Editor, I can't find anything.
    As such, I can't show you that code in Editor

    Does it make sense?

    I don't understand what you wrote in your last sentence.

  4. michael.mariart
    Member
    Posted 1 year ago #

    I wasn't asking you to find that code in the editor, because I don't believe that you'll find it, at least not in the file that you're looking in. What I wanted you to do was to open the file in the editor that you originally made the changes in but don't make any changes to it. Copy the files contents from the editor window, and paste it in here so we can see what the contents of the file looks like.

    my last sentance was trying to tell you that when you paste the code here, click on the 'code' button that's above the editor window here so that it will wrap and format the code correctly because if you don't do that it will be a huge mess that no one will be able to read. :)

  5. whateverme
    Member
    Posted 1 year ago #

    Hi Michael

    Thanks again
    The thing is that I did it long ago, and because I got into trouble I gave up as I wanted to have a new web anyway

    So I can't say what and where the file in the editor is that I accessed to corrupt.
    As it is to do with 'Site By', I am assuming it is with footer, but I can't say.
    Told you I was stupid

    So what can be done?

  6. whateverme
    Member
    Posted 1 year ago #

    `Site by - (function() { var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)'); request = true; b[c] = b[c].replace( rcs, ' ' ); b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs; }());

    That is the code as seen in the visible page.

  7. michael.mariart
    Member
    Posted 1 year ago #

    If you can't find the file, then you can use a different theme. That may or may not come with it's own set of problems.

    It's most likely that what you're looking for is in the footer.php file. That's the standard place for the bottom of the page.

    And yes, I know what the code is that's seen on the page, but just because that's what's shown on the page doesn't mean that's exactly what you're looking for in the file.

    Your choices are basically this:

    1. Switch to a different theme and see if it does what you want it to
    2. Scrap the site and start again, and as you said that you wanted to change, this isn't such a bad option
    3. Post the contents of the footer.php file here and we will see if something can be done (but no promises)
  8. whateverme
    Member
    Posted 1 year ago #

    Hi Michael

    Actually I really like that Mortar theme and want to use it if possible for my new web (I have posted a new post earlier in relation to not been able to access that Mortar theme for my new web.

    So here is the content of the footer.php
    Thanks Michael

    ` </div><!-- / #container_16 -->

    <div class="container_16">

    <div class="credits">
    <div class="grid_16 nav_wrapper">

    <div class="grid_8 alpha">
    <p style="text-align:left;"><?php _e('Copyright ©',woothemes);?> <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.</p>
    </div><!-- / #grid_8 -->

    <div class="grid_8 omega">
    <p style="text-align:right;">Site by - <a href="http://amXXXXXXX.com.au/" style="color:

    </body>
    </html>

    <?php wp_footer(); ?>

  9. whateverme
    Member
    Posted 1 year ago #

    I can't see anything here that contains the coding I can see in the visible page.... What the heck I have done..

  10. whateverme
    Member
    Posted 1 year ago #

    HEY

    I FIXED IT!

    I went to Cufon, and saw matters (ben... yes) with footer. So I clicked on one and then another and done

    Script Positions

    You can switch the positions from where the scripts should get loaded in your templates sourcecode.
    This can fix some errors in Firefox (e.g. FireBug Console: Error "9").

    Cufon Initial-Script:
    Header (Recommended) > that was opted
    Footer

    Cufon Replacement-Script:
    Header (Recommended) > I think I just changed that
    Footer

    Cufon Delay-Fix:
    Header
    Footer (Recommended) > or I might have just changed that

    MICHAEL
    THANK YOU VERY MUCH, YOUR QUESTIONS PUSHED MY LOOKING HARDER, MAINLY WHEN YOU ASKED ABOUT FOOTER

    XX :)

  11. whateverme
    Member
    Posted 1 year ago #

    What the heck if 'Cufon', seems like a Spanish word.
    Anyway, matter finally closed

Topic Closed

This topic has been closed to new replies.

About this Topic