how to edit your web page source code

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
emilyg
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Dec 02, 2011 7:18 pm

how to edit your web page source code

Post by emilyg » Tue Feb 21, 2012 3:22 pm

Hello!

I am trying to install the SSL Seal on my website. I purchase it from Network Solutions. They really haven't helped me to much on this. (They told me that even though they recommend Joomla they don't know anything about it.) According to them the SSL Certificate has been installed on their end since they are hosting the website. I am now generating the seal and it says 'Click "Generate Code" to view the JavaScript code that you will need to copy and paste in your Web page source code.'

<head>

<script language="JavaScript" src="https://seal.networksolutions.com/sites ... iteseal.js" type="text/javascript"></script>

<body>

<!--
SiteSeal Html Builder Code:
Shows the logo at URL https://seal.networksolutions.com/image ... cgreen.gif
Logo type is ("NETSB")
//-->
<script language="JavaScript" type="text/javascript"> SiteSeal("https://seal.networksolutions.com/image ... cgreen.gif", "NETSB", "none");</script>



Paste the JavaScript code in your Web page source code:

1. Open your Web page in an editing tool.

2. Copy the code generated above and paste it directly into the HTML.

Note: Make sure you paste the head code inside the <head> tags and paste the <body> code inside the <body> tags where you would like your Seal to appear. (See example below.)

We recommend displaying your Seal in the footer of your Web page or in a location that is clearly visible such as your shopping cart.

3. Save and publish your Web page, then view it in a Web browser to make sure the Seal displays correctly.

I noticed that the site isn't even available when you type https. I don't know if that is because the seal isn't on there or if they did not install the certificate correctly. Please help me because I am getting myself confused.

Thanks!

artonezero
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 144
Joined: Thu Nov 23, 2006 12:02 pm
Location: London, UK
Contact:

Re: how to edit your web page source code

Post by artonezero » Tue Feb 21, 2012 7:47 pm

You can't post Javascript into Joomla directly. You either needs to install a Custom HTML module such as Custom HTML Advanced
http://extensions.joomla.org/extensions ... ules/16359
or install a component which allows you to add Javascript into articles such as Sourcerer
http://extensions.joomla.org/extensions ... ntent/5051

If you can't see your site in https://... then you should definitely get onto Network Solutions. YOu can force the site to show in https by going to Global Configuration > Server Force SSL: Entire site
Mike Lloyd | Published Joomla Author
http://www.learnjoomla.co.uk <-- Joomla! 2.5 Help

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44096
Joined: Sat Apr 05, 2008 9:58 pm

Re: how to edit your web page source code

Post by Webdongle » Tue Feb 21, 2012 7:59 pm

An extension would be one answer to adding a javascript tag to your source code and would work if you changed your default Template. You could also paste it directly into your default Template's index.php ... but if you changed your default Template you would also have to do the same for that.

You will also have to tell Joomla to use ssl on the parts you want it used.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

artonezero
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 144
Joined: Thu Nov 23, 2006 12:02 pm
Location: London, UK
Contact:

Re: how to edit your web page source code

Post by artonezero » Tue Feb 21, 2012 8:11 pm

Editing templates to insert code is not recommended for beginners - it is also difficult to maintain
Mike Lloyd | Published Joomla Author
http://www.learnjoomla.co.uk <-- Joomla! 2.5 Help

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44096
Joined: Sat Apr 05, 2008 9:58 pm

Re: how to edit your web page source code

Post by Webdongle » Tue Feb 21, 2012 9:10 pm

artonezero wrote:Editing templates to insert code is not recommended for beginners ....
A simple edit like that is a good place to start.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Joomla! 2.5 Coding”