Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    okay i did as directed, the image appeared, but the text "New Products for..." and "Featured Products" are not aligned with the image... any suggestions for this?

  2. #12
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with Centerbox Header

    You can position the bg image by adding to the declaration.
    Code:
    .centerBoxHeading {
        background-image: url(../images/center_box.gif);
        background-position: center center;
        }
    There are other values that can be used for this if center center doesn't do the right job.

  3. #13
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    Thanks alot GJ!

  4. #14
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    Sw,
    Lets see a link to your great work please.

  5. #15
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    LOL hey Haredo

    Take a look again and see.
    I don't know if you could consider it great work yet HAHAHA

    http://cart.lifewaynutrition.com

    i changed my header graphics.
    but like i said I need to figure out how to reposition that text for the
    centerboxes.

    I feel like im doing this the hard way for some reason, maybe not, i dunno.

  6. #16
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    Sw,
    Beautiful graphics.
    A master of photoshop I see.

    Change this in the stylesheet.css

    Look for:
    .centerBoxHeading

    background-color:#FFFFFF;
    background-image:url(../images/centerbox.png);
    background-position:center;
    background-repeat:no-repeat;
    height:72px;
    padding:0.5em 0.2em;
    padding-top:3em;
    width:668px;
    }

    Change the:
    1. padding:0.5em 0.2em;



    To:
    1. padding-top: 3em;

  7. #17
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    Great! going to try it now! thanks for the tip!
    if you need or would like to get in touch with me just click the Avatar and it will
    provide you with my ICQ / AIM screen name for easier contacting capabilities.

    Thanks for the complement!

  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with Centerbox Header

    Yes, nice graphics!

    PM reply posted so it can be useful to others trying to do the same thing:

    "...Is there anyway now that I have the image centered properly that I can change the text from "new products for..." to what i want it to be?"

    That's where the Developers Toolkit (in admin > Tools) comes in.

    All output text is defined in language files, to make it possible to switch languages quickly.
    Paste a distinctive snippet of the text you want to change in the lower left box, select all files and search. Among the results will be the file and line number where the text is defined.

    Change the 'New Products for' to 'Your Desired Text', keeping the single quotes.

    If you want to eliminate the month, you need to edit /includes/modules/your_template/products_new.php (copy it from /includes/modules/products_new.php). In this section at the bottom of the file:
    PHP Code:
      if ($new_products->RecordCount() > 0) {
        if (isset(
    $new_products_category_id) && $new_products_category_id != 0) {
          
    $category_title zen_get_categories_name((int)$new_products_category_id);
          
    $title '<h2 class="centerBoxHeading">' sprintf(TABLE_HEADING_NEW_PRODUCTSstrftime('%B')) . ($category_title != '' ' - ' $category_title '' ) . '</h2>';
        } else {
          
    $title '<h2 class="centerBoxHeading">' sprintf(TABLE_HEADING_NEW_PRODUCTSstrftime('%B')) . '</h2>';
        }
        
    $zc_show_new_products true;
      }
    }
    ?> 
    comment out the
    , strftime('%B')
    to get:
    PHP Code:
      if ($new_products->RecordCount() > 0) {
        if (isset(
    $new_products_category_id) && $new_products_category_id != 0) {
          
    $category_title zen_get_categories_name((int)$new_products_category_id);
          
    $title '<h2 class="centerBoxHeading">' sprintf(TABLE_HEADING_NEW_PRODUCTS /*, strftime('%B')*/) . ($category_title != '' ' - ' $category_title '' ) . '</h2>';
        } else {
          
    $title '<h2 class="centerBoxHeading">' sprintf(TABLE_HEADING_NEW_PRODUCTS /*, strftime('%B')*/) . '</h2>';
        }
        
    $zc_show_new_products true;
      }
    }
    ?> 
    You can do the same with
    . ($category_title != '' ? ' - ' . $category_title : '' )
    if you don't want to show the category name.
    Last edited by gjh42; 25 Mar 2008 at 04:29 PM.

  9. #19
    Join Date
    Mar 2008
    Posts
    100
    Plugin Contributions
    0

    Default Re: Problem with Centerbox Header

    Thanks a TON for the help guys! It worked great!!!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. IE7 / compatibility mode centerBox problem
    By marknew in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Sep 2011, 12:19 PM
  2. Centerbox Categories module vs. default Centerbox
    By notageek in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Mar 2010, 08:11 AM
  3. I need help with centerBox
    By shahram in forum General Questions
    Replies: 2
    Last Post: 15 Dec 2009, 02:44 AM
  4. Centerbox problem: support needed...
    By sunny747 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Apr 2007, 12:55 PM
  5. Centerbox content problem
    By mcmatt in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 20 Feb 2007, 07:55 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