Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: Having trouble customizing title

    Yep. the meta_tags.php didn't like that the title of the page has an apostrophe in it. When I changed it back to Zen Cart! it worked again, which allowed me to change templates again.

    I'm going to start all over again as you suggest. I hope I know enough to be embarrassed about making it "WAY more complicated than it really is".

    One more question before I stop taking up any more of your time, pleae. As php didn't like the apostrophe in the title, is there a syntax that works when you need one?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Having trouble customizing title

    Yes, using \' instead of ' will let it use an apostrophe inside a pair of ' marks.

    So, you could use this:
    Code:
    define('TITLE', 'Mary\'s Store');
    Or, if you really needed to get adventurous, you could change the pair of single-quotes to double-quotes, and then you could use your apostrophe inside, like this:
    Code:
    define('TITLE', "Mary's Store");
    The idea is to use consistency when marking the beginning/ending of the text string.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Having much trouble changing the title text of my site.
    By blossomandbe in forum General Questions
    Replies: 1
    Last Post: 25 Mar 2011, 05:38 AM
  2. Having Trouble finishing install
    By shirtsofwisdom.com in forum Installing on a Windows Server
    Replies: 1
    Last Post: 30 Jan 2009, 02:33 AM
  3. having trouble refreshing
    By dingfelder in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 4 Sep 2008, 03:13 PM
  4. Having trouble configuring...
    By rajato in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 May 2007, 08:34 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