Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2019
    Location
    United States
    Posts
    36
    Plugin Contributions
    0

    Default How can I change the font size and change to italic in .php

    In the following test site: https://testzen.marindelaislaverde.com/ I would like to adjust the tagline (Just when you thought it couldn't get any better!) font size and style to italic in header.php, however, I don't think I can use css styles in php.

    Any suggestions?

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,355
    Plugin Contributions
    8

    Default Re: How can I change the font size and change to italic in .php

    In Chrome, when I right-click on the word thought and select inspect, I see that line 129 of stylesheet.css controls the #tagline.
    Code:
    #tagline {font-style:italic;font-size:1.8em;text-align:center;margin-top:10px;}
    Adding the first item in red will change the font size. The em in the second red-colored item means that the font will adjust as the screen gets smaller or larger, so I wouldn't change the em - just the 1.8. Changing the number will show up on your browser. Once you decide what number you want, you will need to edit the file to make the changes. You will not see the changes on your site until you edit the file, save the file to your site, AND clear your cache.

    Also, I would suggest you look into the mod in the second line of my sig. It will make your journey through color changes much easier. We recommend you clone the responsive_classic to some template of your naming PRIOR to making changes.


    1. Use lat9's clone a template to clone responsive_classic to something new (like marinOrig)
    2. Apply the color change mod in the second line of my sig to the new template and pick your colors.
    3. Use the clone again to clone marinOrig to marinWeb.
    4. Make changes to marinWeb.


    The advantages are:
    • You have an original responsive_classic for testing.
    • You have marinOrig to fall back on and test changes to marinWeb.
    • Changes to marinWeb affect your site but not the fall-back/test templates.


    It's a preparation step that will save you a lot of grief in the long run.
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

  3. #3
    Join Date
    Oct 2019
    Location
    United States
    Posts
    36
    Plugin Contributions
    0

    Default Re: How can I change the font size and change to italic in .php

    Thank you so much for your reply, however, I do believe I followed your instruction but to no avail. I opened the file: includes/templates/responsive_classic/css/stylesheet.css
    and added on the #tagline "font-style:italic;" as well as changed the "1.8em" to "1em", but nothing happened.


    Am I going to the correct place?
    Last edited by MDLIV; 14 Oct 2019 at 02:34 AM.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,355
    Plugin Contributions
    8

    Default Re: How can I change the font size and change to italic in .php

    Please read this entire paragraph once again.
    Adding the first item in red will change the font size. The em in the second red-colored item means that the font will adjust as the screen gets smaller or larger, so I wouldn't change the em - just the 1.8. Changing the number will show up on your browser. Once you decide what number you want, you will need to edit the file to make the changes. You will not see the changes on your site until you edit the file, save the file to your site, AND clear your cache.
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

  5. #5
    Join Date
    Oct 2019
    Location
    United States
    Posts
    36
    Plugin Contributions
    0

    Default Re: How can I change the font size and change to italic in .php

    Thank you dbltoe for taking the time out to help me, however, I am a novice at using Zen Cart, and I did read you complete response several times, but I did not understand what you wrote after; "Also, I would suggest you look into the mod..." If you can simplify what you wrote I would greatly appreciate it.

    Thank you so much!

  6. #6
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,712
    Plugin Contributions
    61

    Default Re: How can I change the font size and change to italic in .php

    He is saying you will need to edit the following file (includes/templates/responsive_classic/css/stylesheet.css) by adding

    Code:
    #tagline {font-style:italic;font-size:1.8em;text-align:center;margin-top:10px;}
    He is also saying that if you use this addon (https://www.zen-cart.com/downloads.php?do=file&id=2087), you can clone the default template you are using and make changes to it instead for easier testing and integrity.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  7. #7
    Join Date
    Oct 2019
    Location
    United States
    Posts
    36
    Plugin Contributions
    0

    Default Re: How can I change the font size and change to italic in .php

    Thank you Melanie (mprough) for the clarification. I truly appreciate you.

    ~ Paul

 

 

Similar Threads

  1. Replies: 5
    Last Post: 28 May 2010, 08:26 PM
  2. How to change the Salutation font size?
    By willieWontGo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Oct 2009, 09:50 PM
  3. How can I change Font-weight from Bold to Italic?
    By ttmb33 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Sep 2009, 11:30 PM
  4. How can I change the font size of the "Price" Column?
    By susanshropshire in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 May 2009, 08:50 AM
  5. Can i Change the Font Size and / or Colour???
    By ElijahD in forum Basic Configuration
    Replies: 1
    Last Post: 25 Apr 2009, 08:15 AM

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