Page 1 of 1

Banner Graphic

PostPosted: Thu Apr 17, 2014 1:27 pm
by kevin
I am using the shopsite template ship shape. I added a banner graphic under "edit page content". Is there any way to make this graphic clickable to say, a coupon page?

I also tried adding the same graphic using html in the Text 1 box but it doesn't look quite as good as the banner graphic since it's sandwiched between the page name and the regular text.

Re: Banner Graphic

PostPosted: Fri Apr 18, 2014 8:54 am
by ShopSite Lauren
No, there isn't a way to make a page banner graphic clickable. What I would suggest would be to put the page name and banner graphic in the text 1 field, that way you can get the layout and functionality that you want. Go to Pages > Edit Page Layout, and uncheck the checkbox to display the page name. Then add the code in the text 1 field, with the <h1>Page Name</h1> below your clickable image.

Re: Banner Graphic

PostPosted: Fri Apr 18, 2014 10:15 am
by Jim
What Lauren said is the easiest way. But if you don't mind editing a template you could edit the template to change the behavior.

The page template used is Flex-Build-11.sst. In that template is this code.
Code: Select all
          [-- IF PAGE.Graphic --]
            [-- IF PAGE.DisplayGraphic --]
              <img [-- PAGE.Graphic REMOVE_HTML --] class="pg_img" align="[-- VAR.Align --]">
            [-- END_IF --]
          [-- END_IF --]
Change it to be like this
Code: Select all
          [-- IF PAGE.Graphic --]
            [-- IF PAGE.DisplayGraphic --]
              <a href="[-- MyStoreURL --]" ><img [-- PAGE.Graphic REMOVE_HTML --] class="pg_img" align="[-- VAR.Align --]"></a>
            [-- END_IF --]
          [-- END_IF --]


This will link the image to store page that is configure as the My Store URL on Preferences > Hosting Services screen. You could change the [-- MyStoreURL --] to the full url of another page if you want to link to a different location.