Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default Category title alignment

    On my product info page, I have the image on the left and title and description to the right. Standard fare, I think. I am trying to align the title with the top of the image, but I can find no eay to do this. Is there a simple approach?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Category title alignment

    While I have not applied this, in general one can move the order of things to acheive what they want. So using the override system for your template and a copy of the tpl_product_info_display.php file find this code:
    Code:
    <!--bof Main Product Image -->
    <?php
      if (zen_not_null($products_image)) {
      ?>
    <?php
    /**
     * display the main product image
     */
       require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
      }
    ?>
    <!--eof Main Product Image-->
    
    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
    <!--eof Product Name-->
    And change the order like this and see how it renders:
    Code:
    <!--bof Product Name-->
    <h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
    <!--eof Product Name-->
    
    <!--bof Main Product Image -->
    <?php
      if (zen_not_null($products_image)) {
      ?>
    <?php
    /**
     * display the main product image
     */
       require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>
    <?php
      }
    ?>
    <!--eof Main Product Image-->
    If it does not produce the desired result..just delete the override file.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default Re: Category title alignment

    I end up with a real mess. Moved the title to the left of the image and above it. I have probably used css to alter the position of the image in relation to the left margin. I am thinking that rather than go back to the beginning I might put the image, title and description php in a table!! Not kosher, I know...

  4. #4
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default Re: Category title alignment

    Guilt overwhelms me, but tables are my friend.

 

 

Similar Threads

  1. v151 Display Category Description below category Title on the Product page
    By Alexander81 in forum General Questions
    Replies: 11
    Last Post: 13 Apr 2013, 12:13 AM
  2. coding the new products title, featured products title, category titles
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Aug 2010, 12:08 AM
  3. Display Category Description below category Title on the Product page
    By nigelt74 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Sep 2009, 02:06 PM
  4. Image alignment and page title issue
    By mjgriff in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 May 2008, 12:44 AM
  5. Replies: 9
    Last Post: 3 Mar 2008, 04:54 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR