Tagged: ,

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #17476
    owen
    Member

    Hi,
    just wondered where the <body> tag is located on my site?

    #17486
    Sakin
    Keymaster

    @owen: That is HTML code and is located in header.php file.

    #17490
    owen
    Member

    @Sakin: all there is to the <body> tag is <?php body_class(); ?> where is the actual code for the body located?

    #17492
    Sakin
    Keymaster

    @owen: There you can see <body <?php body_class(); ?>> . In wordPress Theme we need to add default hook body_class in `‘ code.

    #17527
    owen
    Member

    @Sakin:so could I enter a script before the closing > tag?

    #17529
    Sakin
    Keymaster

    @owen: Can you tell me what type of code that you are trying to add in and what is the instruction that you go it. Then I can explain to you where you can add it.

    #17580
    owen
    Member

    @Sakin: I’m trying to add the css3-mediaqueries-js script in order for media queries to work in older browsers. The actual script is here

    #17581
    Sakin
    Keymaster

    @owen: Then you need to add that script in “Code to display on Footer” from “Appearance => Webmaster Tools => Header and Footer Codes”

    But you need to wrap your JavaScript with script tag. For example

    <script type="text/javascript">
    /*
     * Add in your script
     */
    </script>
    #17592
    owen
    Member

    @Sakin: when I try to press the save button it comes up with a 404 error and when I go back to the theme options the script is gone! I tried saving it with all plugins deactivated but that still didn’t work! Is there any alternatives?

    #17598
    Sakin
    Keymaster

    @owen: Check this code http://pastebin.com/a33gxQFY that I pasted in “Code to display on Footer” and it’s working fine. Maybe you missed something.

    #17602
    owen
    Member

    @Sakin: When I press the save button it comes up with a 404 error!

    #17603
    Sakin
    Keymaster

    @owen: If you want me to try in your site then you can reply my email that I have just send in.

    #17604
    owen
    Member

    @Sakin: Thanks but now I have decided against adding the script as my site takes a while to load but thanks so much again!

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Where is the tag located?’ is closed to new replies.