Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2019
    Location
    United States
    Posts
    44
    Plugin Contributions
    0

    Default How can I change the font size and change to italic?

    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
    9,152
    Plugin Contributions
    11

    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.

  3. #3
    Join Date
    Oct 2019
    Location
    United States
    Posts
    44
    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
    9,152
    Plugin Contributions
    11

    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.

  5. #5
    Join Date
    Oct 2019
    Location
    United States
    Posts
    44
    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
    4,018
    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
    44
    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

  8. #8
    Join Date
    Dec 2017
    Location
    FLAH-DUH
    Posts
    25
    Plugin Contributions
    0

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

    [QUOTE=dbltoe;1362509]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.

    Need help...!.
    1. found stylesheet_colors.css in responsive classic /css folder
    2. made changes, saved back to proper location,
    3. refreshed my site - no change to colors
    4. opened file again to make sure changes were uploaded - no change to colors
    5. removed all cache files - no change to colors
    6. made changes to every color in the stylesheet - no change to colors in my browser...
    7. changed the stylesheet.css in both template folders - no change to colors in my browser...

    It has to be something simple I am missing...

  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,692
    Plugin Contributions
    9

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

    [QUOTE=johnniejetski2;1370915]
    Quote Originally Posted by dbltoe View Post
    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.

    Need help...!.
    1. found stylesheet_colors.css in responsive classic /css folder
    2. made changes, saved back to proper location,
    3. refreshed my site - no change to colors
    4. opened file again to make sure changes were uploaded - no change to colors
    5. removed all cache files - no change to colors
    6. made changes to every color in the stylesheet - no change to colors in my browser...
    7. changed the stylesheet.css in both template folders - no change to colors in my browser...

    It has to be something simple I am missing...
    to make changes in your css, i would suggest spending a little bit of time with developer tools. with the developer tools, you can see specifically which css file and which line is controlling the display of the specific item.

    do a web search and learn about developer tools. it will greatly help with your styling prowess, rather than randomly trying to figure which sheet is controlling what.

    good luck.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,152
    Plugin Contributions
    11

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

    Quote Originally Posted by mprough View Post
    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;}
    Nope. OP is using classic as the template: NOT responsive_classic

    @MDLIV -- Change back to responsive_classic and take a look at the docs on templates at https://docs.zen-cart.com/user/first_steps/overrides/

 

 
Page 1 of 2 12 LastLast

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