• Meaning….where should I place a bit of code to make an item appear on my site?

    I’m using the Counterize (and using is a hopeful, forward-thinking statement) plug-in on my site and I’m supposed to past a tiny bit of code into my header or footer php file.

    Trouble is, I can only find one file that says header and none that say footer. I tried to paste the info in and it made my whole blog disappear and I got an error on line 261.

    *The plug-in activated seamlessly
    *The theme I’m using is a third-party theme called HEAD by Priss.
    *My blog can be seen (read today’s post for a giggle – it’s short) at https://www.jeffcutler.com/jblog

    Thanks for your help.

    Jeff

Viewing 4 replies - 1 through 4 (of 4 total)
  • Find this in your files:

    Credits
    * Powered by: WP
    * Template by: Priss

    and paste your code just beneath that ?

    Thread Starter sotied

    (@sotied)

    And to quote the Guiness ads….

    “BRILLIANT”

    Thanks. Must have already been a long day for me that I didn’t think of that.

    Yours truly,

    Master of the obvious savant

    Jeff

    Thread Starter sotied

    (@sotied)

    OK. I’ve been trying to add that tiny piece of code

    <?php counterize_add(); ?>

    to my files, AND I found the *Powered by and *Template by info, but nothing seems to work.

    I even moved the code around my index file and it didn’t work.

    Yes, I refreshed it and it didn’t work either.

    Thanks in advance.

    Jeff

    Just above the </head> tag, add:

    <?php counterize_add(); ?>

    Then, look for:
    <li><a href="https://www.prissed.com">Template by: Priss</a></li>
    <?php wp_meta(); ?>

    And remove <?php wp_meta(); ?> (coding mistake I just noticed, I’ll need to get that fixed) and replace it with any or all of the following:

    <li><?php counterize_getamount(); ?></li>
    <li><?php counterize_gethitstoday(); ?></li>
    <li><?php counterize_getlatest7days(); ?></li>
    <li><?php counterize_getuniqueamount() ?></li>
    <li><?php counterize_getfromcurrentip(); ?></li>
    <li><?php counterize_getuniquehitstoday(); ?></li>
    <li><?php counterize_gethitstodayfromcurrentip(); ?></li>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where does a tiny piece of code go?’ is closed to new replies.