Page 1 of 2 12 LastLast
Results 1 to 10 of 51

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    I can't get it too work (adding text to the bottom of my center column). I followed clydes instructions and got a parse error for the '}'. Changed that to a ')' and cleaned the error. However, I get NO text showing up. I'm using 1.3.7.

    It's the first site in my signature if you need to take a look.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customize Center Page Layout

    Quote Originally Posted by wtashby View Post
    I can't get it too work (adding text to the bottom of my center column). I followed clydes instructions and got a parse error for the '}'. Changed that to a ')' and cleaned the error. However, I get NO text showing up. I'm using 1.3.7.

    It's the first site in my signature if you need to take a look.
    I didn't notice the centercolumnFooter declaration in either of your (2) stylesheets.

    stylesheet.css and stylesheet_new.css nor did I see the (div id="centercolumnFooter") on the page when I viewed the page source.

    Those two stylesheets appear to be identical so I'd get rid of one of them just to prevent them from interfering with each other.

  3. #3
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    The two css files work in tandom with my template. If I get rid of one (either one) the template goes bonkers

    Aside from that, I've added the declaration in both of them, I have modified, created and uploaded all the files you described, exactly as you described, and it just won't call the center column footer.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  4. #4
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Remember, it's The Real As Seen On TV I'm concerned about.

    Quick question about
    2. in includes/languages/english/extra_definitions/YOUR_TEMPLATE
    create a new file centercolumn_footer_defines.php

    define ('CENTERCOLUMN_FOOTER_TEXT','You can place any text you want here'};
    Is that supposed to be wrapped in <?php ?>
    cause I did
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customize Center Page Layout

    Just to double check:

    #centercolumnFooter {
    margin: 0;
    padding: 0;
    }

    Make sure this is in both of your stylesheets.
    includes/templates/trublu/css/stylesheet.css and stylesheet_new.css
    ----------

    2. in includes/languages/english/extra_definitions/trublu
    create a new file centercolumn_footer_defines.php

    define ('CENTERCOLUMN_FOOTER_TEXT','You can place any text you want here');

    3. open includes/templates/trublu/templates/tpl_index_default.php

    scroll to the bottom of the file and just above the last </div>

    insert the following statement:

    <div id="centercolumnFooter"><?php echo CENTERCOLUMN_FOOTER_TEXT; ?> </div>

  6. #6
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Quote Originally Posted by clydejones View Post
    Just to double check:

    #centercolumnFooter {
    margin: 0;
    padding: 0;
    }

    Make sure this is in both of your stylesheets.
    includes/templates/trublu/css/stylesheet.css and stylesheet_new.css
    ----------

    2. in includes/languages/english/extra_definitions/trublu
    create a new file centercolumn_footer_defines.php

    define ('CENTERCOLUMN_FOOTER_TEXT','You can place any text you want here');

    3. open includes/templates/trublu/templates/tpl_index_default.php

    scroll to the bottom of the file and just above the last </div>

    insert the following statement:

    <div id="centercolumnFooter"><?php echo CENTERCOLUMN_FOOTER_TEXT; ?> </div>
    I've done all that. Checked, and rechecked to make sure all were where they should be. Also, I asked if the div statement in centercolumn_footer_defines.php should be inside <?php ?>

    If I don't wrap the statement in php, then the entire statement (just the statement) shows up at the very top of the page. By wrapping it in php, it doesn't show up at the very top of the page, but, it doesn't show up at all.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Customize Center Page Layout

    No it is just another defines statement like the hundreds of others in the language files. So you there is no need to surround it as you describe.

    Take a look at the bottom of the page HERE to see it in action.

  8. #8
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Ok, I removed the php from the file. Take a look at the site, and you'll see what I mean at the very top of the page.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  9. #9
    Join Date
    Feb 2006
    Posts
    656
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    Quote Originally Posted by clydejones View Post
    No it is just another defines statement like the hundreds of others in the language files. So you there is no need to surround it as you describe.

    Take a look at the bottom of the page HERE to see it in action.
    Every single defines page in the language files that I've looked at has the defines inside of the php code. When I simply put define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add'); into a blank file, save it, then upload it, then I get define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add'); at the very top of every page.

    When I do this:

    <?php
    define('CENTERCOLUMN_FOOTER_TEXT','This is the Text I want to add');
    ?>

    I doesn't show up at the top of the pages. It doesn't show up at all.
    I Think, Therefore I Zen. I Zen, Therefore, I AM!
    Personalized Flowers!
    Flowertown Speaking Roses
    using version 1.5.7-06232020

  10. #10
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Customize Center Page Layout

    could you post the contents of tpl_index_default.php
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How do I customize page layout?
    By zc_fan in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 May 2011, 03:11 AM
  2. Customize one category's page layout
    By timstoel in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Dec 2008, 09:39 PM
  3. Center Page Layout
    By a4tech in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Apr 2007, 08:15 AM
  4. Customize Page Layout
    By weflorencekoh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Feb 2007, 03:14 PM
  5. customize a page layout
    By mikajlo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Nov 2006, 01:56 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