We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40896
    • 1 Posts
    I have a phone number as part of an image on my home page: www.russianpersonaltrainer.com
    It is on the green part, looks as a picture.
    How do I correct the phone number? I managed to do it on the sides of the home page, but not on the top. Please help!
    [email protected]
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      It is likely either in the template itself, or a chunk for the header.

      Can you post here at the forum, the code from the template associated with the home page? (use the code button at the top of the entry field to wrap what you paste - second set from left, third button in)

      What version of MODX are you using? Evolution or Revolution? And the version number please.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 32316
        • 387 Posts
        The phone number is part of an image that is a background for the 'logo div' - included with css

        How do I correct the phone number?
        The phone number is part of an image - which makes it harder to change.

        Easiest would be if you have access to the original image - which hopefully would be saved as a 'layered' version, then you could just alter the text layer and re-save as a jpeg. BUT if I had this original image I would save it without the phone number and put the phone number on top of the image with html.

        Otherwise you are going to have to edit the image on the site with your favorite image editor - again if I was going to this trouble I would edit out the phone number and then use the image as a background and put the phone number in with html text - in Modx this could be a chunk that is used everywhere the phone number is used so if it needs to changed or corrected it could be done in one place.

        The image you need to edit is:

        http://www.russianpersonaltrainer.com/images/logo.jpg

        and is added to the page as a css background - line 36 in main.css:

        div#logo {
            background: #FFF url(../images/logo.jpg) 0 0 no-repeat;
            cursor:pointer;
        }
        [ed. note: whistlemaker last edited this post 14 years, 2 months ago.]
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          This is why I always avoid using images with text as part of the image. It never fails, sooner or later the text has to be changed. So I always immediately edit such images to remove the text, then use the image as a background for an HTML container with the text as HTML. A plus to that is better accessibility.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 32316
            • 387 Posts
            This is why I always avoid using images with text as part of the image. It never fails, sooner or later the text has to be changed.
            Exactly

            Instead of writing
            The image you need to edit is:
            I probably should have written: "The image you need to REPLACE is:"