Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Okay, I tried the dev tool kit again ... at the bottom ... I tried 'header.php', 'header, and 'HEADER', and all came back with "Error: No matching Configuration Keys were found ... header.php, header and HEADER.



    My oh my ... I can't imagine how this is going to go for me when I try adding products.

    HUGz! Jules

  2. #12
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Okay, hold on ... I found it in the dev tool kit ... but I am not seeing it in my FTP program ....

    Going way back in my brain ... is this maybe because the CHMOD (?) is not set up for this to be a writable file?

    Oh my doG .... is CHMOD even a word?

    HUGz! Jules

  3. #13
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Found it.

    Call me Arnold .... "I WILL BE baaaackkk!"

    HUGz! Jules

  4. #14
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Crapolla ... I did something wrong. I thought I just replaced the text ... but now my website just goes to a blank page.

    All I did was replace the text at the bottom.

    PHP Code:
    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

    // Showcase vs Store
    if (STORE_STATUS == '0') {
      
    define('TEXT_GREETING_GUEST''Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
      
    define('TEXT_GREETING_GUEST''Welcome, please enjoy our online showcase.');
    }

    define('TEXT_GREETING_PERSONAL''Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

    define('TEXT_INFORMATION''Define your main Index page copy here.');

    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
      
    // This section deals with product-listing page contents
      
    define('HEADING_TITLE''Available Products');
      
    define('TABLE_HEADING_IMAGE''Product Image');
      
    define('TABLE_HEADING_MODEL''Model');
      
    define('TABLE_HEADING_PRODUCTS''Product Name');
      
    define('TABLE_HEADING_MANUFACTURER''Manufacturer');
      
    define('TABLE_HEADING_QUANTITY''Quantity');
      
    define('TABLE_HEADING_PRICE''Price');
      
    define('TABLE_HEADING_WEIGHT''Weight');
      
    define('TABLE_HEADING_BUY_NOW''Buy Now');
      
    define('TEXT_NO_PRODUCTS''There are no products to list in this category.');
      
    define('TEXT_NO_PRODUCTS2''There is no product available from this manufacturer.');
      
    define('TEXT_NUMBER_OF_PRODUCTS''Number of Products: ');
      
    define('TEXT_SHOW''Filter Results by:');
      
    define('TEXT_BUY''Buy 1 \'');
      
    define('TEXT_NOW''\' now');
      
    define('TEXT_ALL_CATEGORIES''All Categories');
      
    define('TEXT_ALL_MANUFACTURERS''All Manufacturers');
    } elseif (
    $category_depth == 'top') {
      
    // This section deals with the "home" page at the top level with no options/products selected
      /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      
    define('HEADING_TITLE''Welcome to Pawsome Dogz ');
    } elseif (
    $category_depth == 'nested') {
      
    // This section deals with displaying a subcategory
      /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      
    define('HEADING_TITLE''Welcome!  We're so glad you stopped by!  We just love when company drops in ... especially if you brought treats'); 
    }
    ?> 


    Maybe an adult beverage and hour in the hot tub will help?

    HUGz! Jules

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Editing a template 101

    Code:
      define('HEADING_TITLE', 'Welcome!  We're so glad you stopped by!  We just love when company drops in ... especially if you brought treats!');
    You omitted the closing single quote ' that I have highlighted where it should be in the code above

    And the major fo-paw is that you used a single quote in the text in

    we're

    And that is read as the ending single quote
    You need to use the escape sequence for any punctuation in text

    single quote = '
    So this becomes - - and the forum will most likely convert it
    Code:
    we're
    And you do have a header.php file at
    /includes/languages/english/
    Yes it did so I have added spaces to prevent that
    we & # 3 9 ; re
    Last edited by kobra; 23 Jan 2011 at 08:14 AM.
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Editing a template 101

    And you do have a header.php file at
    /includes/languages/english/
    Zen-Venom Get Bitten

  7. #17
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Kobra, I don't know how to thank you! Do you like brownies?

    Okay ... and yes, I had an adult beverage and some hot tub time ... are you saying that when I add words to the .php files such as we're, they're, I'll, you'll, etc. ... that I have to add a space before and after the ' ? So it would be we ' re, they ' re. ??

    Just FYI ... I used to be an admin and a mod at 2 forums back in the day ... and I don't like people doing the work for me ... I do want to learn ... which is why I ask questions.

    But, please know how much I appreciate the help!!

    HUGz! Jules

  8. #18
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    use the escape sequence
    And, as I re-read this, I have no clue what that means.

    HUGz! Jules

  9. #19
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: Editing a template 101

    write it like this

    we\'re
    they\'re
    etc.

    A backslash before the single quote.
    When you see something between two single quotes you escape it with the backslash, so you'll have opening quote middle quote escaped and closing quote.

  10. #20
    Join Date
    Jan 2011
    Posts
    124
    Plugin Contributions
    0

    Default Re: Editing a template 101

    Quote Originally Posted by keneso View Post
    write it like this

    we\'re
    they\'re
    etc.

    A backslash before the single quote.
    When you see something between two single quotes you escape it with the backslash, so you'll have opening quote middle quote escaped and closing quote.
    Thank you for the explain Keneso!!!

    HUGz! Jules

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Template Editing Question
    By freshteck in forum Customization from the Admin
    Replies: 8
    Last Post: 15 Aug 2012, 02:16 PM
  2. Help, editing template,
    By Shinitenshi in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Sep 2011, 04:48 AM
  3. Basic Template Editing?
    By ojhernandez in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Sep 2010, 03:11 AM
  4. Editing a template
    By fredheads in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jun 2008, 05:08 AM
  5. Editing a template in DreamWeaver
    By hellman81 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Sep 2007, 10:24 AM

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