Forums / General Questions / Banner in define page not showing on HOME Page

Banner in define page not showing on HOME Page

Views: 1,147

Results 1 to 7 of 7
26 Dec 2014, 9:26 PM
#1
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Banner in define page not showing on HOME Page

I have the coding below in the define_main_page.php file for https://www.scottish-shopper.com but the banner is not showing. What is wrong ?

<center><a href="http://www.scottish-shopper.com"><img alt="Winter Sale" height="184" src="http://www.irishshopper.com/images/WinterSaleBanner.jpg" width="450" /></a></center>
26 Dec 2014, 9:32 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Banner in define page not showing on HOME Page

Are you sure that the define_main_page is being pulled in? Check that Configuration->Define Page Status->Define Main Page Status is set to either 1 or 2.

27 Dec 2014, 2:59 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Banner in define page not showing on HOME Page

irishshopper:

I have the coding below in the define_main_page.php file for www.scottish-shopper.com but the banner is not showing. What is wrong ?

<center><a href="http://www.scottish-shopper.com"><img alt="Winter Sale" height="184" src="http://www.irishshopper.com/images/WinterSaleBanner.jpg" width="450" /></a></center>

Is there a reason that the image is not being hosted from this site instead of from another?
Or asked more appropriately, is there a reason that the image is hosted offsite instead of locally? (Why is the src= set to irishshopper.com instead of scottish-shopper.com?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

27 Dec 2014, 3:21 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Banner in define page not showing on HOME Page

Do you have any AdBlock plugins installed in your browser? Sometimes they'll block banner-ad-images like that from displaying simply due to their shape/size as being commonly used for ads. Try turning off those browser plugins as a test.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Dec 2014, 9:43 AM
#5
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Re: Banner in define page not showing on HOME Page

This has now been fixed. I was not aware you could "turn off" the main page being used from the Configuration settings.

We have quite a number of sites all using this banner for a few days over the Xmas / New Year break all hosted on the same server so rather than upload the image for each URL just have uploaded it once and bring it in from there for each site. As I say it will only be used for around a week.

Thank you for all your help.

28 Dec 2014, 2:07 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: Banner in define page not showing on HOME Page

irishshopper:

This has now been fixed. I was not aware you could "turn off" the main page being used from the Configuration settings.
I'm glad you got it sorted out!

28 Dec 2014, 3:16 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Banner in define page not showing on HOME Page

irishshopper:

This has now been fixed. I was not aware you could "turn off" the main page being used from the Configuration settings.

We have quite a number of sites all using this banner for a few days over the Xmas / New Year break all hosted on the same server so rather than upload the image for each URL just have uploaded it once and bring it in from there for each site. As I say it will only be used for around a week.

Thank you for all your help.

Agree, glad fixed.

Couple of reasons I asked about the origin of the image(s) was that first, if the site being referenced wasn't in your control (and even if it is), then changes made to that image in the original store will be positively (or negatively) passed on to the other stores. This would be more of a negative thing if not in your own control as would be at the whim of whomever owned the site.

The other thing is that the uri provided in the src call could lead to security notifications to the user if the site being visited has SSL enabled and depending on when/where the image is displayed. Basically if the webpage were being displayed using https, then the browser could report that there was mixed content as the image would be displayed using http.

Another thing of thought is that these multiple stores are now relying on this one store to function properly (properly enough) to display the image instead of each being relatively self contained. (Okay, so if they are all on the same host, that means when the host has a problem the sites are highly like to have one, but it seems like each site will have to be individually modified after the fact anyways.)

Just some thoughts perhaps to those reading in the future, but glad it's working/been resolved.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...