Facebookest

e107 CMS » Forums » e107 v1.x Support » Third Party Code / Theme Support << Previous thread | Next thread >>
outlaw16151
May 25 2012, 12:48PM
Registered Member #61697
Joined: May 29 2011, 07:29PM
Posts: 44
where would i go about putting the code to like us on facebook, you see
i have a facebook page that represents OutlawsGameroom.com and id like to put that facebook plug in on a menu?,,, there is a part you have to paste in the <head> and a part you have to paste where you want it to show... my problem is pasting in the <head>, where would i do this?.....index.php im not fimilliar with
Go to top
Moc
May 25 2012, 01:18PM
  • e107 Site administrator
  • e107 Security Team
  • e107 Support Team
  • e107 Documentation Team
Registered Member #44563
Joined: Apr 12 2008, 03:01AM
Location: The Netherlands
Posts: 3513
Please, please and again please do some searching yourself first.
Google: e107 head javascript => first result. Et voila.

[-link-]


(edit 31/05/12: typo)
[ Edited May 31 2012, 08:12AM ]
Go to top
outlaw16151
May 26 2012, 08:40AM
Registered Member #61697
Joined: May 29 2011, 07:29PM
Posts: 44
Moc wrote ...

Please, please and again plase do some searching yourself first.
Google: e107 head javascript => first result. Et voila.

[-link-]


LMAO.... anybody else wanna tell me what page to paste the code in?

the wiki page was no help
Go to top
outlaw16151
May 26 2012, 08:43AM
Registered Member #61697
Joined: May 29 2011, 07:29PM
Posts: 44
Moc seems pissed lol hey you will be ok... let someone else answer the question
Go to top
Hikingwolf
May 31 2012, 05:04AM
Registered Member #48827
Joined: Dec 16 2008, 08:25PM
Location: Saint Louis
Posts: 129
outlaw16151 wrote ...

Moc seems pissed lol hey you will be ok... let someone else answer the question

If you would have actually read the wiki page you would know where,Moc answered your question. Quote from the page that tells you nothing... "And then edit and insert the code below into header_default.php"
Go to top
Website
Moc
May 31 2012, 08:12AM
  • e107 Site administrator
  • e107 Security Team
  • e107 Support Team
  • e107 Documentation Team
Registered Member #44563
Joined: Apr 12 2008, 03:01AM
Location: The Netherlands
Posts: 3513
@Outlaw: I am in no way pissed at all. All the previous posts you made, however, could be easily answered by some searching on your own. Which consequently would leave us (the support team) with more time to spend on issues that are more advanced and tricky to tackle.
This is what I tried to point out in my initial reply.

Having said that. The answer IS in the wiki, but let me paraphrase it in such a way that it might be clearer for you:

wrote ...
Now with .7, in addition to this method, comes a new way to put JavaScript in your <hea d>, but not only JavaScript, but links to external CSS stylesheets < link>, meta tags <m e ta> and anything else you would like.
To do so, add the following to your theme.php:

Basically, open up your current theme.php. Say you are using a theme called 'example theme' and the theme folder is example_theme'. This is what you need to do:
- Open up e107_themes/example_theme/theme.php
- Now find a place to add the 'theme_head' function, for example after the initial
// [theme information]
(used in many theme.php files).

- Insert this coding, as per wiki instructed:
 function theme_head() {
   return "< scri pt> < link /> < meta /> etc";
 } 

So, say you want to insert javascript code in your <head> tags, simply add this:

    < script src ="/your/path/to/js/files.js"></ script>


And replace the path to the js file you want to include or with whatever content you want in there.

- Save the theme.php file and make sure its uploaded and set to overwrite the previous version. This all depends on what FTP program you use.

Refresh your website, et voila!


Now, instead of (wrongly) assuming I am pissed, read through my reply again and let me know what precisely is of 'no help' in the wiki page I linked.

* Please delete all the spaces in the html codes ( script, head, etc.), as I put it there to avoid e107 sanitizing my reply.
[ Edited May 31 2012, 08:20AM ]
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System