Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    Unfortunately I'm off to work now but I'll have another look in the morning.

    Cheers and happy birthday!

    btw, its not a sidebox I am trying to alter, in the central (main) column I want to put the 'What's New for ....' in a container with rounded corners.
    Last edited by billybonds; 22 Jun 2007 at 06:51 PM.

  2. #2
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    Well I got it to work as I need for the time being... (not really a long term solution)

    I made a new div in tpl_main_page.php above...

    <?php
    /**
    * prepares and displays center column
    *
    */


    require($body_code); ?>

    which had my original rounded corners code and text in it (nothing from Zen Cart) to give me my first (and original) rounded corners div.

    and left the rounded corners code around

    <?php
    /**
    * prepares and displays center column
    *
    */


    require($body_code); ?>

    which, after removing code from languages/english/template/index.php, is only showing 'What's New for...' anyway so it gives the effect I'm after, i.e. two rounded corner divs.

    Not the best explanation (or solution) but will do for the time being...

    There is a nifty corners template which may well do what you require although I guess will involve a lot of work...

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: Rounded Corners on What's New for June, etc.

    A variety of methods here - be warned, this is a very addictive site and will give you all sorts of ideas!
    Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
    20 years with Zencart !

  4. #4
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    Quote Originally Posted by Ryk View Post
    A variety of methods here - be warned, this is a very addictive site and will give you all sorts of ideas!
    Already an addict!!

  5. #5
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    ok firstly sorry for the bump - unfortunately I have realised that I have to get this straight...

    To recap - what I wish to do is put rounded corners on the 'what's new' section of the home page - that is in the center column - not sidebox.

    the page is http://www.african-masks-art-and-gif...shop/index.php

    I have put my 'rounded corners' code (found at http://www.redmelon.net/tstme/4corners/) around

    <?php
    /**
    * prepares and displays center column
    *
    */


    require($body_code); ?>

    in tpl_main_page.php, but this puts rounded corners around the entire middle section. How do I put rounded corners around 'What's new for June' section or 'featured products', etc.?

    Thanks.

    P.S. If you are viewing this in ie6 - my apologies! (I have been working on a pc with Vista and therefore no immediate access to ie6 - I will get around to it... *^^&#37;%!$* ie6!)

  6. #6
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    Just in case anyone is looking for how to do this...

    It is actually very simple.

    If you wish, as I do, to put rounded corners around the 'What's New for (say) August' then...

    in YOUR_TEMPLATE find 'tpl_modules_whats_new.php' in the templates folder and put the appropriate code around...

    Code:
    <div class="centerBoxWrapper" id="whatsNew">
    <?php
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    for example

    Code:
    <div id="border">
    
    <div id="borderbot">
    
    <div class="centerBoxWrapper" id="whatsNew">
    <?php
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    
    </div>
    
    </div>
    obviously this can be applied to the other pages/divs.

  7. #7
    Join Date
    Nov 2003
    Location
    UK
    Posts
    105
    Plugin Contributions
    0

    Default Re: Rounded Corners on What's New for June, etc.

    What a surprise... probs with ie (inc. ie7)

    not sure if it is the way I am doing it but if you experience the same you can always comment away ie with...

    Code:
    <![if !IE]>
    code...
    <![endif]>
    e.g.

    Code:
    <![if !IE]>
    
    <div id="border">
    
    <div id="borderbot">
    
    <![endif]>
    
    <div class="centerBoxWrapper" id="featuredProducts">
    <?php
    /**
     * require the list_box_content template to display the product
     */
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    
    <![if !IE]>
    
    </div>
    
    </div>
    
    <![endif]>

 

 

Similar Threads

  1. Border-radius.htc for rounded corners in ie?
    By mike_uk100 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 May 2011, 07:57 PM
  2. Rounded corners
    By commdiver in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 Jan 2011, 12:45 AM
  3. rounded corners
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 21 Jul 2010, 07:20 PM
  4. rounded corners alignment issues for sidebox
    By abs007 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Jan 2010, 09:21 PM
  5. rounded corners for bottom center column ?
    By gorie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jan 2008, 08:44 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