XSitePro Website Design Software Message Board

The online forum dedicated to XSitePro users. Get help with website design in general and using this popular and incredibly powerful website software
It is currently Wed Jun 19, 2013 9:18 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 18, 2012 10:52 am 
Offline

Joined: Tue Oct 19, 2010 6:52 am
Posts: 5
Hi,

here's the deal: I have an adsense site that I have added Adsense to all pages one by one using the Adsense thingy inside Xsitepro

But say I want to remove the adesense from this particular website (remove from all pages), I would then have to go page by page removing the adsense code (i've placed the adsense ads just below the title, that's why I had to insert the code on each page as opposed to inserting in the main panel header for instance).

Now, is there a way that I can set this up in the future so I can easily insert/remove adsense from page no matter where I place it?

My first thought was of either creating all pages as .php OR creating them as .html and inserting a code in my .htaccess file to include php statements.

This way I could still have my .html pages and I would just need to create a page to serve as a template and then use a <php include ...> inside all my pages.

Then I would only need to edit one file when I wanted to change something.

Makes sense?

Any other ideas!?

Thanks in advance!

EDIT: yeah, I tested now and I COULD have inserted the adsense ad WITH the tile above by making use of {%TITLE%} token - but I did not knew about it then :mrgreen:

Anyhow, say I supposedly would like to insert a common template code for adsense in the middle of my articles instead of at the top, how would I do it? PHP include as I've mentioned above or any other better idea!?


Top
 Profile  
 
PostPosted: Thu Apr 19, 2012 7:38 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Mar 11, 2010 3:02 am
Posts: 637
Location: Leeds, UK
Hi John,

The idea in XSitePro is that any content you want on every page is added to one of the outer panels (Header, Footer, Left Right panels & etc.)
And content you want on that web page should be entered in to the Main Panel.
This means that if you want the adverts to appear in the articles (where Google say is a 'hot spot' for adverts), you will need to add them to each web page.
However you do get good control over where on the page they appear.

If there are only occasional web pages that you do not want the adverts to show on, then I suggest adding the adverts to the Right Panel.
This is because in the Web Page > Page Settings > Advanced Settings section you can override the Right Panel on a page by page basis. :)

_________________
Ben Fleeson
Empowering individuals to be financially independent.
http://xsiteprosupport.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group