Adding HTML for ads and page centering (Full Version)

All Forums >> [Product Forums] >> [Productivity Software] >> [The Print Shop 23.1 and older] >> PS Web Pages



Message


SlvrNBlk -> Adding HTML for ads and page centering (4/3/2008 9:51:48 AM)

I am using the print shop to build my website. I want to add Google AdSense to my page, but it has to be inserted into the page as html. Does anyone know how to do this?




lindarobin -> RE: Adding HTML to page (4/3/2008 2:05:17 PM)

Additional HTML code is inserted into the HTML file using NotePad. It cannot be inserted into the Print Shop project. So after you've published to folder and created your files, I'll show you how open the appropriate file and insert your extra code.




lindarobin -> RE: Adding HTML to page (4/6/2008 4:44:08 PM)

Let's get started. First, make sure that you reserved some space at the top (or side) of your homepage for the ad banner, otherwise your web elements may overlap it.

Open your index.html file with NotePad. It should look similar to this:

[image]local://upfiles/72/9CECCDC30A6649F08B82F7E0BECD576C.jpg[/image]

Follow the directions in red. Copy/paste the block of HTML code after the beginning BODY tag. Save, close and upload this file. If you want the ads on all your web pages, you will need to edit all your HTML files like this.




SlvrNBlk -> RE: Adding HTML to page (4/13/2008 8:10:03 PM)

Thank you so much for your help. I was able to get the ads put into my site. Now here is my current problem. The google ads automatically center on a page, my pages don't. All my text is to the left of the screen. I set it up to where on a square screen it is close to center, but on a widescreen it is pushed all the way to the left. Is there a way to fix that?




lindarobin -> RE: Adding HTML to page (4/13/2008 8:49:34 PM)

quote:

ORIGINAL: SlvrNBlk
...All my text is to the left of the screen. I set it up to where on a square screen it is close to center, but on a widescreen it is pushed all the way to the left. Is there a way to fix that?

To understand why this is, please click my tips link below and read the article about making web pages in Print Shop. In there, is one solution for making things look centered on a larger screen.

Another option is to add 4 extra lines of code to every HTML page, that will center things for all screen sizes. You will have to remember to add these extra lines every time you edit your web project and republish your pages (as you do with the Google ad banner).

Do you want this code?




SlvrNBlk -> RE: Adding HTML to page (4/14/2008 8:15:38 AM)

yes please. thank you.




lindarobin -> RE: Adding HTML to page (4/14/2008 10:02:22 AM)

This is the centering code. It "surrounds" the code you already have. Your code goes in between the DIV and the /DIV tags.

[image]local://upfiles/72/665EC44CEC0B434996BC62B020F2892F.jpg[/image]




SlvrNBlk -> RE: Adding HTML to page (4/14/2008 10:13:06 AM)

Do I have to take out any code? Also, I don't have anything that says <BODY>. This is what I have,

<BODY BGCOLOR="#000000" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000" BACKGROUND="img00000.jpg">
<SPAN STYLE="position:absolute; left:46px; top:255px; width:811px; font-family:Tahoma; font-weight:normal; text-align:center; font-size:24px; color:#A0A0A4;">
<SPAN STYLE="font-family:Tahoma; font-weight:normal; text-align:center; font-size:24px; color:#A0A0A4;">
<A HREF="index.html">

Is this where I should change it, and what exactly should I do?

Thanx again.




lindarobin -> RE: Adding HTML to page (4/14/2008 10:48:01 AM)

This is the first part you do. Add the end DIV and end CENTER tags just before the end BODY tag.

(It is very easy to make a mistake when you don't know any basic HTML, so if you are going to continue tweaking the code, check out one of the numerous free HTML tutorial sites on the internet.)

[image]local://upfiles/72/221C69FE280E44219299C64B5C56ECC2.jpg[/image]




SlvrNBlk -> RE: Adding HTML to page (4/14/2008 2:03:00 PM)

Thank you for all your help, I have it figured out now.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4
1.660156E-02