We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40628
    • 4 Posts
    I just went in to change my copyright to 2014 in my address "chunk" at bottom of every page on our site and the type went black (supposed to reverse white). Can anybody help me out? (Yes, I rarely make modifications in modx). Thanks!
      • 19872
      • 1,078 Posts
      Did you accidentally remove a p tag or accidentally delete the closing tag? If it's reversed, it probably has a style applied to the p or other tag or a simple div class for the item.
        • 19872
        • 1,078 Posts
        Your surrounding div shows up as <div id="\"address"\"">

        Probably should be <div id="address">>
          • 40628
          • 4 Posts
          Quote from: mmcgee at Aug 21, 2014, 07:52 PM
          Your surrounding div shows up as <div id="\" address"\""="">

          Probably should be <div id="address">></div></div>

          That sounded logical. I tried it, but it didn't work. Thanks for the input. If you think of something else, please let me know. Thanks.
            • 19872
            • 1,078 Posts
            Not sure if this is an answer for you, but the issues seems exactly like the issue you are having. http://markimarta.com/modx/extra-backslashes-when-saving-chunk-in-modx-evolution/

              • 19872
              • 1,078 Posts
              Another link that may help as well.
              http://forums.modx.com/index.php?topic=40996.0

              Certainly in this instance it's more extreme.

              Turn OFF magic_quotes_gpc
                • 46668
                • 51 Posts
                If the link in your profile is the site your trying to fix then I cant see what's been deleted in the html but a quick fix would be in your css file called mainpage_alt.css find this bit
                #subfooter {
                    background-image: url("../images/mainpage_footer_3.jpg");
                    background-repeat: no-repeat;
                    float: left;
                    margin-top: 5px;
                    width: 966px;
                }

                and add color:#000; to that so it will look like this
                #subfooter {
                    background-image: url("../images/mainpage_footer_3.jpg");
                    background-repeat: no-repeat;
                    float: left;
                    margin-top: 5px;
                    width: 966px;
                    color: #000;
                }


                Or even easier in your footer add the following to the to <p> tag that surrounds your text like this
                <p style="color:#fff;">Southwest... </p>


                One last thing might look better if you add some padding to the left and right so you could do this
                <p style="color:#fff; padding:0 20px 0 20px;">Southwest... </p>


                Hopefully one of them will fix it

                Good Luck [ed. note: panfire last edited this post 9 years, 8 months ago.]
                • http://webdesign.about.com/od/css/a/aa073106.htm

                  Always validate your HTML and your CSS . I have these two in my bookmarks toolbar since I use them so much.
                    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
                    • 19872
                    • 1,078 Posts
                    Quote from: [email protected] at Aug 21, 2014, 07:58 PM
                    Quote from: mmcgee at Aug 21, 2014, 07:52 PM
                    Your surrounding div shows up as <div id="\" address"\""="">

                    Probably should be <div id="address">></div></div>

                    That sounded logical. I tried it, but it didn't work. Thanks for the input. If you think of something else, please let me know. Thanks.

                    So—turning off magic quotes gpc did not work?

                    The issue does lie in the problematic source code being generated.

                    Susan has a good idea about validating your code. http://validator.w3.org is a good source for this.

                    Below is one of 38 errors and 13 warning found on the home page. Running the validation and reviewing the errors will help to isolate and resolve issues.

                    Error Line 453, Column 9: an attribute value must be a literal unless it contains only name characters
                    <div id=\"address\">

                    You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.


                      • 19872
                      • 1,078 Posts
                      Just an additional followup here.

                      Does your chunk code contain the wrapping div information? If YES, try removing the wrapping div and putting it in your template page such that your template page would look as shown below. (note: this would essentially be a hack to possiblby resolve the issue.) Until the magic quotes issues is resolved or confirmed to be OFF, you will have issues elsewhere in the site where ever you attempt to insert quotes in your chunks. ) bigredphone class as well, located at the top of your pages, is also affected by this and not displaying properly.

                      <div id="address">
                      [[$YourChunkNameHere]]
                      </div>
                      



                      If these two chunks—for your address and your big red phone— contain the wrapping div code, then something has occurred either with an update or change to your server or MODx that has messed with the magic quotes setting causing those backslashes to be generated.

                      Again though, if you have successfully turned off magic quotes, try clearing the MODx cache first, as this may just be a cache issue. You can also manually clear your cache using the hosting panel file manager or an FTP application by navigating to the core > cache directory and simply delete the contents of the cache directory. (note: This method is for MODx Revolution sites).

                      What's is Magic Quotes anyhow?
                      When ON, all ' (single-quote), " (double quote), \ (backslash) and NULL characters are escaped with a backslash automatically.