Support » Fixing WordPress » add a script to the page layout?

  • Editing the PHP code of templates makes me nervous as all hell.

    I want to put a script from Scribol into my main article pages to display directly below the comments area.

    Can I add that directly with just a < script > tag like I do when I put their script in the sidebar, or do I need to do something else?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cbmc

    (@cbmc)

    Anybody?

    some scripts will work…some will not. Some require plugins to help

    But to have any hope of them working, they need to go in the html editor, not the visual

    And then you can not switch back to the visual editor for that post. EVER! lol, it will destroy the code

    Thread Starter cbmc

    (@cbmc)

    Well, I’m actually editing the template in a shell with nano. I’m not trying to put the script into a single article, I’m trying to put it onto every article page, just above the comments area.

    Oh, then yeah…. should be able to add script just fine

    Hi cbmc,

    I am trying to install scribol now, can you explain what template you edited to get this working?

    Thanks

    Thread Starter cbmc

    (@cbmc)

    I ended up putting it under the line

    <?php comments_template(); ?>

    in single.php for a specific theme

    so like if your theme was twenty-ten it would go in /wp-content/themes/twentyten/single.php

    You can also put it in footer.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘add a script to the page layout?’ is closed to new replies.