Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: How to change the font size and color

  1. #1
    Join Date
    Jul 2004
    Posts
    43

    Cool How to change the font size and color

    I have read for about 3hrs all the different thread on how to change the font size,color or type I have tried many of the different suggestion and found the following conclusion:

    Style.css only control the font of the admin area

    style.php has almost 2000 line even after printing it which gave me about 54 pages I am still unable to control the font in different area: e.g
    -listing_browse.php variables like the address ect..

    -listingview.php same things all the variable such as the description, address, state, zip ect...

    Any body out there who can help out?
    If you suggest style.php please be sensible to the fact that there is about 2000 line and as of today my eyes hurt..

    Sincerely
    Frank Malone

  2. #2
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default

    Unfortunately the html for thes areas comes from either the main.php and style.php. You have to see what functions are being celled on the pages and then modify the html under the actual function which is defined in the style or main files.

  3. #3
    Join Date
    Jul 2004
    Posts
    43

    Red face

    Rectification the style.css also controle the template. I am using the template for the admin area only.


    Sincerely
    Frank Malone

  4. #4
    Join Date
    Jul 2004
    Posts
    43

    Smile

    Ok thank you so much for your participation really appreciate it.

    Now would it be to much to ask if you could just give me an exple. As I am not at all familiar with programming an most of what I do is guess work mixed with try an error. So if you would be so kind as to give me a line of code and it location ( which file) that I need to alter I would really appreciate it.

    I do not know what the line of code that is calling the font style would look like.

    Sincerely
    Frank Malone

  5. #5
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default

    If you look at listingview.php you will see it calling the function renderTemplateArea. If you search the stle.php file for this function you will see several lines like this

    echo "<br><b>$field_caption</b>: $field_value";

    There are different ones for each field type (text, url, email, etc.). You should be able to add a font tag.

  6. #6
    Join Date
    Jul 2004
    Posts
    43

    Cool

    Ok I have try many, many different combination but I was unsucesfull in placing my font tag.

    here is my font tag:
    font-family: Arial,Helvetica,sans-serif;color: #00ff00;

    and here is the line where I tryed to place it:
    echo "<br><b>$field_caption</b>:$field_value";

    on line 451 of the attached style.php

    Could you place it for my?

    Sincerely
    Frank Malone
    Attached Files Attached Files

  7. #7
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default

    The font tag you are using is a css style. You should give it a name and add it to the css file. Example:

    #f1
    {
    font-family: Arial,Helvetica,sans-serif;color: #00ff00;
    }

    Then add the tag in style.php

    echo "<br><f1><b>$field_caption</b></f1>:$field_value";

  8. #8
    Join Date
    Jul 2004
    Posts
    43

    Default

    Thank you

    I edit my style.css file by inserting the following tag:

    h7 {
    font-family: Arial,Helvetica,sans-serif;color: #00ff00;
    }
    I edit my style.php file by inserting the following tag on line 452

    echo "<br><h7>$field_caption</h7>: $field_value";

    But the font did not change at all.

    The original line in style.php on line 452 was:

    echo "<br><b>$field_caption</b>: $field_value";

    By removing the tags (in blue) I was able to remove the bold effect on the font. Therefore I know I am close to make it happen. I feel that perhaps I am forgetting some thing that would be obvious for a pro but that I just can't get as an beginner.

    Do you think you could try on more time to help me out? I attached both my style.php and style.css just in case.

    Sincerely
    Frank Malone :oops:
    Attached Files Attached Files

  9. #9
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    48
    Posts
    9,796

    Default

    Since the area you are trying to change is a link. You need to change this section of the style.css.

    a:link,a:active,a:visited { color : #006699; }
    a:hover { text-decoration: underline; color : #DD6900; }

  10. #10
    Join Date
    Jul 2004
    Location
    Southwest Florida
    Posts
    65

    Default

    There's no such tag as h7 in html. Header tags only go up to h6. Try using <h6> instead of <h7>.

    Or use a class: <h6 class="cap">$field_caption</h6>

    And in your css:
    h6.cap {
    font-family: Arial,Helvetica,sans-serif;color: #00ff00;
    }
    Sonja Ray

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
  •