Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    13
    Plugin Contributions
    0

    Default (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?mai...d=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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: (EZ) Page Specific CSS classes and selectors

    /includes/templates/YOURTEMPLATE/templates/tpl_page_default.php
    around line 15 you have:
    Code:
    <div class="centerColumn" id="ezPageDefault">
    Perhaps replacing that with this might do it:
    Code:
    <div class="centerColumn" id="ezPage<?php echo $ezpage_id; ?>">
    If your page id=37, that would give you this:
    Code:
    <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.

  3. #3
    Join Date
    Jul 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: (EZ) Page Specific CSS classes and selectors

    Worked like a charm.

 

 

Similar Threads

  1. Buttons and selectors.........................help!!!!!!!!!
    By shawnstar86 in forum Customization from the Admin
    Replies: 4
    Last Post: 19 Jul 2010, 03:50 AM
  2. Change CSS on specific page/pages
    By elchoco in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Dec 2008, 03:23 AM
  3. changing link colours for specific classes
    By yoyodyne in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 May 2008, 11:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg