- This topic has 12 replies, 2 voices, and was last updated 9 years, 10 months ago by
owen.
-
AuthorPosts
-
November 21, 2013 at 11:27 pm #17476November 22, 2013 at 12:29 am #17486November 22, 2013 at 12:46 am #17490
owen
Member@Sakin: all there is to the <body> tag is
<?php body_class(); ?>
where is the actual code for the body located?November 22, 2013 at 12:50 am #17492Sakin
Keymaster@owen: There you can see
‘ code.<body <?php body_class(); ?>>
. In wordPress Theme we need to add default hook body_class in `November 22, 2013 at 10:32 pm #17527November 22, 2013 at 10:36 pm #17529Sakin
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.
November 23, 2013 at 11:40 pm #17580owen
MemberNovember 23, 2013 at 11:51 pm #17581Sakin
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>
November 24, 2013 at 2:41 pm #17592owen
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?
November 24, 2013 at 7:39 pm #17598Sakin
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.
November 24, 2013 at 9:02 pm #17602November 24, 2013 at 9:19 pm #17603Sakin
Keymaster@owen: If you want me to try in your site then you can reply my email that I have just send in.
November 24, 2013 at 9:46 pm #17604 -
AuthorPosts
- The topic ‘Where is the tag located?’ is closed to new replies.