If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / (EZ) Page Specific CSS classes and selectors

(EZ) Page Specific CSS classes and selectors

Locked

Started by uiserloh on 18 Jul 2007, 1:56 AM · Views: 1,531

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Jul 2007, 1:56 AM
#1
uiserloh avatar

uiserloh

New Zenner

Join Date:
Jul 2007
Posts:
13
Plugin Contributions:
0

(EZ) Page Specific CSS classes and selectors

Hi,

I am a reasonable expert on webdesign/programming, but I was wondering if anybody could point me in the right direction with the following issue:

[1] I have several EZ-Pages with banner images specific to a given EZ page. I would love to use CSS selectors (id="title_of_EZ_page") to specify the source image for each page in the stylesheet. How do I rewrite the template files so that it automatically adds "title_of_EZ_page" to the template files?

[2] Website URL with specific page in question:
http://www.aquajoe.com/index.php?main_page=page&id=24&chapter=0

[3] Further note: you'll see, the issue arrises as the image needs to be called before the <h1 id="ezPagesHeading"> specified in the EZ Page. If that weren't the case, I could simply specify the image location in the EZ Page. An alternate solution would be to delete the H1/H2 heading in the appropriate template, then manually include it in the HTML code of the EZ Page.

Any thoughts? Thanks in advance.

18 Jul 2007, 2:57 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: (EZ) Page Specific CSS classes and selectors

/includes/templates/YOURTEMPLATE/templates/tpl_page_default.php
around line 15 you have:```

<div class="centerColumn" id="ezPageDefault"> ```Perhaps replacing that with this might do it:``` <div class="centerColumn" id="ezPage<?php echo $ezpage_id; ?>"> ```

If your page id=37, that would give you this:```

<div class="centerColumn" id="ezPage37"> ```

You'd have to retool any #ezPageDefault selector in your stylesheet to suit.

.
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.

20 Jul 2007, 4:37 AM
#3
uiserloh avatar

uiserloh

New Zenner

Join Date:
Jul 2007
Posts:
13
Plugin Contributions:
0

Re: (EZ) Page Specific CSS classes and selectors

Worked like a charm.