WordPress.org

Ready to get started?Download WordPress

Forums

Can I insert one counter for Site + Saite Blog? (4 posts)

  1. Dobo12
    Member
    Posted 5 years ago #

    Hi,

    Can you explain for me:

    I have site counter: http://www.accd.ge
    I am interesting to insert this counter in my blog (WP 2.6): http://www.accd.ge/giga
    Can I count posts for bouth Saite and Site-Blogg (WP).

    Thanks,

    :)

  2. Eric Mann
    Member
    Posted 5 years ago #

    Dobo12 -

    I looked at your site, and it should be fairly easy to add the counter on your WP blog. Go to the Theme Editor (in the 'Design' menu) and open the file 'footer.php.' Add the following code where you'd like the counter to appear (I took this code off of your existing site http://www.accd.ge):

    <script language="JavaScript" src="http://counter.top.ge/cgi-bin/cod?100+25150" type="text/javascript"></script>
    <noscript>
    <a target="_top" href="http://counter.top.ge/cgi-bin/showtop?25150"><img src="http://counter.top.ge/cgi-bin/count?ID:25150+JS:false" border="0" alt="TOP.GE" title="accd" /></a>
    </noscript>

    This should add the same counter onto the bottom of your WP blog.

    ... then again, looking at your blog (www.accd.ge/giga), I already see the counter on the bottom. Have you already solved this problem?

  3. Dobo12
    Member
    Posted 5 years ago #

    I can't solved this problem. I just put my counters another place, not in footer, because footer.php is security coded (not PHP, let see:
    " ... 5eXl5eXl5eXl5eXl5eIGNsNTFyIGMybDNtbiAxbmQgcz ...").
    I can't to understand where in footer I can put my TOP-Counter script.

  4. Eric Mann
    Member
    Posted 5 years ago #

    ... If your footer file is encoded, I can't really help you add anything to it. But seeing that you already have the counter on the bottom of your page, do you really need to put it directly into footer.php? You seem to have already added the counter, and it's in an appropriate location on the page ...

    The only way you could add it directly to footer.php is to contact the theme designer and ask for a non-encoded copy. You could also add a function to functions.php to call the javascript code and place it in the footer ... is functions.php encoded as well?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags