Banner Graphic

Questions and answers about ShopSite Custom Templates

Banner Graphic

Postby kevin » Thu Apr 17, 2014 1:27 pm

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.
kevin
 
Posts: 11
Joined: Thu Apr 17, 2014 1:10 pm

Re: Banner Graphic

Postby ShopSite Lauren » Fri Apr 18, 2014 8:54 am

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.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Banner Graphic

Postby Jim » Fri Apr 18, 2014 10:15 am

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 8 guests

cron