Guide to setting up a store like mine 7 pages: [1] 2 3 4 5 6 7
SugarVsSpice
Posted: Sunday, May 10, 2009 11:25:42 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 8/13/2008
Posts: 1,300
I had quite an adventure setting up my store yesterday and figured it might be useful to share what I did. I've done HTML and a bit of CSS before but never anything like this so you definitely don't have to be a pro to do it. The code looks scary at first but the more you fiddle with it the more sense it makes (although admittedly there’s still quite a bit of it that makes no sense at all!) Shocked

Heres my store to show you what can be done with these guides;
http://www.zazzle.com/SugarVsSpice

Before you get started
Setup another gallery to be your sandbox (they’re free!)
Make it private; MyZazzle > Store > Store Settings > Basic Information > Store Access; “Make this store private”

If you need to find any code you can use Ctrl+F in Firefox (probably works in other browsers too but I haven’t tried) and be sure to Validate/Preview regularly!

If you don't have your own website to put pictures on grab yourself a free PhotoBucket account to upload them to.

Ok let’s go… Grin

Background Image
Find this in Appearance > CSS
#mainShell {
width:100%;
background-color:#<z:color name="PageBackground" />;
padding-bottom:40px;
/* add main background image here, if desired:
background-image:url();
*/

}


Change to…
#mainShell {
width:100%;
background-color:#<z:color name="PageBackground" />;
padding-bottom:40px;
background-image:url("http://www.yourdomain.com/background.jpg");
background-repeat: no-repeat;
background-position: top;

}


I made my background image 1870px × 949px (the same size as the one on the clonewars store, I figured they’d know what they were doing) Smile

If you’d like your background to repeat change no-repeat to either; repeat, repeat-x or repeat-y


Custom Header
Find this in Appearance > CSS…
#pageMantle {
overflow:hidden;
width:900px;
<z:mantleimage />
}


Change to…
#pageMantle {
overflow:hidden;
width:900px;
height:200px;
background-image: url("http://www.yourdomain.com/header.png");
background-repeat: no-repeat;
background-position: top;

}


If your new header is taller than 200px just change the height to match.

Remove underline from links and make them bold
Find in Appearance > CSS…
a, td a {
color:#<z:color name="MainLink" />;
}
/*.controls a.active, DO WE NEED THIS? */
.navPane a.active {
background-color:#<z:color name="PodBackground" />;
color:#<z:color name="MainText" />;
font-weight:bold;
}


Change to…
a, td a {
color:#<z:color name="MainLink" />;
text-decoration:none;
font-weight:bold;

}
/*.controls a.active, DO WE NEED THIS? */
.navPane a.active {
background-color:#<z:color name="PodBackground" />;
color:#<z:color name="MainText" />;
font-weight:bold;
text-decoration:none;
}



Add images for product lines
You don't actually need advanced store customization to do this; see this thread > Shop Organization


Rearrange Sidebar
Edit Content > XML
Rearranging things in here will change them on the various pages. Eg I changed…
<z:module name="infonavigation" visible="true" />
<z:module name="gallerystatistics" visible="false" />
<z:module name="productsearch" visible="true" target="products" />
<z:module name="featuredcategories" visible="true" target="products" />
<z:module name="productlines" visible="true" target="products" />
<z:module name="producttypes" visible="true" target="products" />
<z:module name="tags" visible="true" target="products" />


to…

<z:module name="productlines" visible="true" target="products" />
<z:module name="producttypes" visible="true" target="products" />
<z:module name="productsearch" visible="true" target="products" />
<z:module name="infonavigation" visible="true" />
<z:module name="gallerystatistics" visible="true" />
<z:module name="featuredcategories" visible="true" target="products" />
<z:module name="tags" visible="true" target="products" />


If you’d like to hide any sections in the menubar just change visible="true" to visible="false"

Note that each page has its own code so the list under:
Code:
<z:page id="home" title="Home" navigable="true" visible="true" template="maintemplate">

Will change the order/visiblity on the hompage

Code:
<z:page id="products" title="Products" navigable="true" visible="true" template="maintemplate">

Will change the order/visiblity on product pages and so on.

So for example I have the tags visibility set to “true” on my homepage and “false” on the products page.


Change Dividers on Side menu and Comment Wall
Find in Appearance > CSS…
.hr {
background-image:url(<z:asseturl type="hr" />);
}


Change to…
.hr {
background-image:url("http://www.yourdomain.com/line.png");
}


Zazzle will stretch whatever image you give it to fit accordingly. For mine I made a little line graphic 145px wide.
If you’d like to get rid of the line altogether just remove the link;
.hr {
}



Custom Sidebar
See Ars_Celtica’s fabulous guide here


Add HTML section to the beginning of your homepage
In the CSS add this at the top under <z:csstemplate id="csstemplate" live="true" xmlns:z="urn:zazzle:api">

/*-------------------------------------------
| MY BIT
---------------------------------------------*/

.intro {
width:686px;
position:relative;
left:0px;
top:0px;
}

/*-------------------------------------------
| END MY BIT
---------------------------------------------*/


In the Appearance > XHTML find:
Code:
<div id="group_1"></div>
<div id="group_2" class="contentPane">
<z:placeholder name="contentpane"></z:placeholder>
</div>
<div id="group_3">


and add...
Code:
<div id="group_1"></div>
<div id="group_2" class="contentPane">
<div class="intro">
</div>
<z:placeholder name="contentpane"></z:placeholder>
</div>
<div id="group_3">


Then you can put whatever HTML you like in between the intro div tags. Be mindful that its XHTML rather than the regular sort.
As far as I could work out the X stands for “Xtra Annoying” as its super nit-picky about your code! Smile Once you get the hang of it its not too bad though. Here are some things that tripped me up…

XHTML tips
- Don’t use any capital letters in the code

- always end your code blocks so;
<br> = wrong
<br /> = right!
<img src="http://www.yourdomain.com/image.png"> = wrong
<img src="http://www.yourdomain.com/image.png" /> = right!
<a href="http://www.yourdomain.com">Link</a> = wrong
<a href="http://www.yourdomain.com" rel="nofollow">Link</a> = right!

- always nest your tags correctly so;
<strong><h1>Text</strong></h1> = wrong
<strong><h1>Text</h1></strong> = right!

- Some text characters upset the code;
& = wrong
&amp; = right!

More info on XHTML: http://www.w3schools.com/xhtml/default.asp

You’ll notice that the intro gets added to every page in your store, but fear not…


Adding the Into to *just* the Homepage
If you go over to Edit Content > XML you’ll notice that each page is set to the same template;
Code:
<z:page id="home" title="Home" navigable="true" visible="true" template="maintemplate">


Change the Home one to:
Code:
<z:page id="home" title="Home" navigable="true" visible="true" template="hometemplate">


Then back to Appearance > XHTML
Copy and paste the entire contents of Layout XHTML below itself, so you have 2 templates.

On the first one change
Code:
<z:htmltemplate id="maintemplate" live="true" xmlns:z="urn:zazzle:api" xmlns="urn:zazzle:xhtml">

to…
Code:
<z:htmltemplate id="hometemplate" live="true" xmlns:z="urn:zazzle:api" xmlns="urn:zazzle:xhtml">


Remove the divs and any intro text you might have added from the previous step from the 2nd template (maintemplate)
You should be left with the intro on your homepage and nothing on the other pages.

Custom About Page
Same setup as the previous guide. Add another template to your XHTML but call this one “abouttemplate
Find in Edit Content > XML
Code:
<z:page id="about" title="About" navigable="true" visible="true" template="maintemplate">


Change to…
Code:
<z:page id="about" title="About" navigable="true" visible="true" template="abouttemplate">


Make sure your abouttemplate has the <div class="intro"></div> in the right place and add whatever XHTML you’d like (See previous; “Add HTML section to the beginning of your homepage”)


Custom Footer (Added 24/11/09)
In Appearance > Style (CSS) add:

#myfooter {
width:900px;
height:112px;
margin-left:auto;
margin-right:auto;
background-image: url("http://www.yourdomain.com/footer.jpg");
background-repeat: no-repeat;
background-position: top;
}


Make the height match whatever your footers height is. Make your image 900px wide to match the bottom of the store

In Appearance > Layout (XHTML) find the following at the bottom of each page you'd like the footer;

</div>
<div class="clearBoth"></div>
</div>
</body>
</html>


and add;

<div id="myfooter">
</div>

</div>
<div class="clearBoth"></div>
</div>
</body>
</html>


That will put your image at the bottom. Remember you need to add it to every page template you'd like it on... so if you want it on *every* page you'll need it above every </html> (It's a lot easier if your browser has a find function. It's Ctrl+f in Firefox... then just put </html> into the box and it will take you to them all)

If you'd like to then have more information within the footer (like the picture link that I do) just add html within the div tags. So mine looks like;

<div id="myfooter">
<center>
<a href="http://www.SugarVsSpice.com" rel="nofollow" target="_blank">
<img src="http://www.sugarvsspice.com/zazzle/footerlink.png" />
</a>
</center>

</div>
</div>
<div class="clearBoth"></div>
</div>
</body>
</html>


In case you're interested:
The target="_blank" tag makes the browser open a new window (not necessary, but I put it in so the user wouldn't loose my store)


Adding a Bigger Header to the Homepage (or pushing the sidebar down!) Smile (Added 24/11/09)
In Appearance > Style (CSS) find your custom header -see "Custom Header" if you haven't added one already;

#pageMantle {
overflow:hidden;
width:900px;
height:200px;
background-image: url("http://www.yourdomain.com/header.png");
background-repeat: no-repeat;
background-position: top;
}


And below it add

#welcomeMantle {
overflow:hidden;
width:900px;
height:572px;
margin-left:auto;
margin-right:auto;
background-image: url("http://www.yourdomain.com/welcomeheader.png");
background-repeat: no-repeat;
background-position: top;
}

Having the width at 900 will make it fit onto the rest of the page. You can make the height whatever you'd like (the sidebar and page contents will appear below whatever you set it to.)

Important: You MUST have margin-left and margin-right tags or the new header will stick the left hand side (took me ages and lots of hair pulling to work that one out! No idea why the original pageMantle one doesn't need them.)

Then in Appearance > Layout (XHTML) find the Hometemplate (the one with id="hometemplate" at the begining -See "Adding the Into to *just* the Homepage" if you haven't set this up already)

Change <div id="pageMantle"> to <div id="welcomeMantle">

That will add your new bigger header to the homepage and push the rest of the page contents (including the sidebar) down.


Moving from your Sandbox to your live gallery
Once you're happy with your layout open 3 notepads (or equivilent simple text editor, not a rich text one like word... that could mess things up) and copy the XHTML, CSS and XML into them. Log into your real gallery and paste them all into the right sections.

Ta-da! Grin
Ars_Celtica
Posted: Sunday, May 10, 2009 11:46:32 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 5/3/2009
Posts: 121
Nice! Great tips on the non-standard header size, especially, and you even write comments! (I know that I'm going to need my own comments months from now when I go back in after awhile, so I always try to add them.)

You can specify a size for your new horizontal rule if you want to; if you do, it'll repeat in the comment wall instead of stretching.

Also, in those good tips about XHTML instead of this:

Code:
<br></br>


you can save your fingers by doing this:

Code:
<br />


...which closes the tag inside itself. Just like the img tag, in fact. Or like "Lost".

I love the fact that you mentioned keeping 3 Notepads open. I've had trouble remembering which stores I had pasted all my text from and I have WAY too many text editors on the screen Smile.

SugarVsSpice
Posted: Sunday, May 10, 2009 11:55:00 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 8/13/2008
Posts: 1,300
Thanks! Grin

There's no way I would have been able to do what I did without your posts! You're my ZAGC hero hehe!
designsbyshawn
Posted: Sunday, May 10, 2009 3:30:00 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 5/2/2008
Posts: 99
Looks like a great tut. I'm semi-experienced with some of this stuff but this has me stumped.. is there a place you're getting these:
"<z:module name="infonavigation" visible="true" />
<z:module name="gallerystatistics" visible="false" />
<z:module name="productsearch" visible="true" target="products" />
<z:module name="featuredcategories" visible="true" target="products" />
<z:module name="productlines" visible="true" target="products" />
<z:module name="producttypes" visible="true" target="products" />
<z:module name="tags" visible="true" target="products" />"

I'm looking everywhere and I can't seem to find a list or anything.. except here of course. Nor can I fond them in the XML code given. I feel so dumb right now. lol.
Ars_Celtica
Posted: Sunday, May 10, 2009 3:36:17 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 5/3/2009
Posts: 121
That's in Content/Advanced; the other two customization areas are under Appearance.
designsbyshawn
Posted: Sunday, May 10, 2009 3:46:28 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 5/2/2008
Posts: 99
OHHHHHHHH well @!$#%!@#$!@.. I feel like an idiot now.. I didn't even know that was there. Thx. *hangs head in shame*
BlockQuoteProducts
Posted: Sunday, May 10, 2009 4:54:53 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 6/11/2008
Posts: 1,198
As the the page Mantle (header) I had to add the height statement even thought is was the default 900x200 - else the header did not display.

#pageMantle {
overflow:hidden;
width:900px;
height:200px;
background-image: url("http://www.yourdomain/header.png");
background-repeat: no-repeat;
background-position: top;
}


BlockQuote Products Resume Kit
SPLAT BlacK
in the Public Domain
Images Magical on Zazzle

SugarVsSpice
Posted: Sunday, May 10, 2009 5:06:43 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 8/13/2008
Posts: 1,300
Ooo well spotted, changed the 1st post...thankies! Smile
Updated the <br /> tip too...din't know that one... much tidier! Grin
doggieduds
Posted: Monday, May 11, 2009 8:43:19 AM

Groups: Member

Joined: 5/8/2009
Posts: 9
Location: Weston
Thanks SO much for posting this! I haven't done much with web design since css was just emerging on the scene (don't laugh, I'm old), and I never bothered to learn it, just kind of bumbled my way through when I needed to...this will help a LOT!!

Just as soon as I get a chance I'm going to try it out! You've just moved to MY list of Zazzle heroes Smile

Patti

Zazzle usernames:
bostonsandboxers
doggieduds
littlebittathisnthat
vintagedogart
mingtees
Posted: Monday, May 11, 2009 8:50:44 AM

Groups:

Joined: 6/9/2008
Posts: 222
Thank you much for that. You saved me a lot of grief trying to rearrange the sidebar. And nice image layout on the front page as well.
Eileendover
Posted: Monday, May 11, 2009 10:10:11 AM
Groups: Member

Joined: 4/22/2009
Posts: 27
I'm new to Zazzle, and you've become my first Hero Smile Thanks for sharing this info!
SugarVsSpice
Posted: Monday, May 11, 2009 10:41:21 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 8/13/2008
Posts: 1,300
Nps guys! Grin

doggieduds wrote:
Thanks SO much for posting this! I haven't done much with web design since css was just emerging on the scene (don't laugh, I'm old), and I never bothered to learn it, just kind of bumbled my way through when I needed to...this will help a LOT!!


Funny you should say that, me too!
I was happy doing my messy HTML in notepad and then all this css malarky came along...blurgh! I keep learning bits of it and forgetting it... 2 steps forward and 1 back... and you know that when we get the hang of this something new will come out, argh we must be getting old! Laughing
PixDezines
Posted: Monday, May 11, 2009 9:29:27 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 1/13/2008
Posts: 114
Location: Hawaii
YOU ARE VERY KIND... Thanks. I will try.
Ricaso_Graphics
Posted: Tuesday, May 12, 2009 2:27:01 AM
 Zazzle Proseller
Groups: , ProSeller

Joined: 6/14/2008
Posts: 7,008
Ty .. sugarvspice .. now I wanna go home and try some of this out .. can someone please call my boss and tell him I NEED to leave like NOW Grin

Also would I be able to add your tutorial to my zazzle tutorial blog with full credit to yourself and a link back to your store?
malibuitalian
Posted: Tuesday, May 12, 2009 3:48:53 AM
 Zazzle Proseller
Groups: , ProSeller

Joined: 10/19/2007
Posts: 3,773
Thank you, Sugarvsspice for sharing your knowledge with those of us who are CSS challenged!

You are too kind Roses Love Roses Love Roses Love Roses Love Roses Love Roses Love Lori
SugarVsSpice
Posted: Tuesday, May 12, 2009 10:02:19 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 8/13/2008
Posts: 1,300
Ricaso_Graphics wrote:
Also would I be able to add your tutorial to my zazzle tutorial blog with full credit to yourself and a link back to your store?


Of course! Thx Grin
BarnyardAnimals
Posted: Saturday, May 16, 2009 6:41:09 AM

Groups: Member

Joined: 5/15/2009
Posts: 25
Thanks so much indeed!
militaryloveshop
Posted: Saturday, May 16, 2009 9:57:06 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 4/18/2007
Posts: 372
Location: New York Metro Area
Thank you so much for this!!
I am going to have so much fun customizing my store!
JMGNole2
Posted: Thursday, May 21, 2009 8:49:51 AM
Groups: Member

Joined: 5/21/2009
Posts: 1
Tis helped me soooo much. Roses

I've just gotten started with the renovation, but it's fun. Maybe I'm losing it. Grin

mingtees
Posted: Thursday, May 21, 2009 10:12:00 AM

Groups:

Joined: 6/9/2008
Posts: 222
One thing about this part :
*-------------------------------------------
| MY BIT
---------------------------------------------*/

.intro {
width:686px;
position:relative;
left:0px;
top:0px;
}

/*-------------------------------------------
| END MY BIT
---------------------------------------------*/

just a parse error in there as it is, so add the slash to the top to paste:

/*-------------------------------------------
| MY BIT
---------------------------------------------*/

.intro {
width:686px;
position:relative;
left:0px;
top:0px;
}

/*-------------------------------------------
| END MY BIT
---------------------------------------------*/
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded