Skip to:
Content
Pages
Categories
Search
Top
Bottom

Basic PHP HTML Inserting

  • @irieside

    Participant

    I’ve seen many coding edits, but where do I enter/modify these codes? Is there a place to do it on the dashboard of wordpress, or will I need to use a FTP?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @mercime

    Participant

    @irieside It depends on what you’re trying to do. Which code are you referring to?

    @irieside

    Participant

    for example they gave me this:

    <script type=”text/javascript”>
    $(document).ajaxSuccess(function() {
    setTimeout(function(){
    if (“undefined” !== typeof(RW))
    RW.render(null, true);
    }, 500);
    });
    </script>

    for an AJAX refresh, but i dont know where to put it

    @henrywright

    Moderator

    Hi @irieside

    JavaScript can go inside a PHP file (via use of the <script> tag) or it can go into a .js file. In the case of the latter, you don’t need to use the <script> tag.

    @hnla

    Participant

    @irieside not sure why you are asking this here? Who gave this snippet to you and why didn’t that come with instruction on where to place?

    If you grabbed it from this page then the question probably should have been asked there:
    http://rating-widget.com/support/do-you-have-a-refresh-code-for-ajax-loaded-content/

    @irieside

    Participant

    THis is more of a general question inspired by this specific occurence. I’ve seen many codex inserts for various reasons and issues, I just don’t know where to insert the code. would i need to downlaod the php files and then re-upload or is there a way to access coding via control panel or dashboard. sorry for my lack of knowledge.

    @mercime

    Participant

    @irieside We cannot generalize where and what to add any/all codes you find online because as I mentioned above, it all depends on what/where the code will be used. Sometimes it only needs a line or just inserting it in one file, sometimes you need to add/delete code in many files.

    Link to the page with the code you are referring to and if there’s enough information there, we may be able to help you.

    @irieside

    Participant

    it’s http://www.knack-shack.com/news-feed/

    if you click “show more” at the bottom of the feed, the like feature won’t be activated on those updates.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Basic PHP HTML Inserting’ is closed to new replies.
Skip to toolbar