speak your mind

Homepage Community Forums Legacy Theme Support speak your mind

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2192
    tjd
    Customer

      Hi,

      When I select a blog Post to open in a separate page, there is at the bottom of the Post, a Comment box with the title: Speak your mind.

      Many foreign visitors will not understand that idiomatic phrase and I’d like to change it. Problem is, I can’t locate where it resides in the css, if that’s where it is. Can you help me find it so I can change it?

      Thanx,

      Tom Dolan

      #2195
      Wes
      Moderator

        To modify the “Speak your mind” text, add the following code to your functions.php file and adjust it to say whatever you want. (edit the part that says “Leave a comment”)

        /** Modify the speak your mind text */
        add_filter( 'genesis_comment_form_args', 'custom_comment_form_args' );
        function custom_comment_form_args($args) {
        $args['title_reply'] = 'Leave a Comment';
        return $args;
        }

        #2201
        tjd
        Customer

          Hi Wes,

          I added the code you sent and edited it to: Leave a Comment, Ask a Question. When I selected update I got the following message:

          Parse error: syntax error, unexpected T_FUNCTION in /home/tomj8796/public_html/wp-content/themes/legacy/functions.php on line 42

          At the moment I can’t access the site to correct this. Can you advise how I can proceed?

          Thanx,

          Tom Dolan

          #2202
          Wes
          Moderator

            You must have added the code in the wrong spot, or maybe you left out something? Anytime you add code, it must be after the first . I just tested the above code myself and it worked fine for me. Did you change anything? If you remove a comma, semicolon, etc it will cause an error with php. I would copy and paste the code again exactly as it is to make sure it works, and then edit the words Leave a Comment.

            I always recommend making PHP edits with an external editor and an FTP program. By using FTP externally, if you make a mistake (missing comma, semicolon, etc) you can undo it and resave from within the program….then the error will go away. If you make a mistake with the WP admin editor, then it becomes difficult to get back since the error notice takes down the entire site.

            If you can’t go backwards (using your “back” button) and resave, then you’ll probably have to contact your host and have them revert back to a saved point…..you could also just replace the functions.php file with an FTP program and the error would go away immediately.

            It is highly recommended to use and get familiar with an FTP program when editing PHP files. I recommend Filezilla, and depending on whether you have Mac or Pc, you can search for a php editor. It will be much easier to make edits to your css and other files as well.

            #2203
            tjd
            Customer

              Thanx Wes,

              But I’m apparently ‘locked-out’ of access to my site. I don’t know how to get past the error message and get into my site… how do I do that? I checked on my iPhone and it too show the error message.

              As far as the location of the code I added. I just pasted your code into maybe the third or fourth from the top. Spacing looked ok to me. I’m no expert but it looked ok. The only change was to add some text to your text.

              But now I’m mostly concerned about my inability to access my site…

              Tom Dolan

              #2204
              Wes
              Moderator

                Thats what I was saying earlier, there is no way to get pass the php error notification unless your hosting company reverts you back to a previously saved point, or if you replace the functions.php file (where the error was made) with a working functions.php file (without the error, or the original file).

                If it happened to me, I would simply login to filezilla (the FTP program I use) and look into the folders where my theme is located and delete or overwrite the functions.php file with one that doesn’t have the error. Although I personally never run into this issue because I always edit from FTP.

                So you’ll definitely need to either have your hosting company revert you back to a saved point, or you would need to setup a FTP program. I recommend setting up a FTP program, it’s a faster more secure way of editing your files.

                #2205
                tjd
                Customer

                  Hello Wes,

                  I need to understand this advice so please bear with me. I rarely use ftp, so if I use filezilla “and look into the folders where my theme is located and delete or overwrite the functions.php file with one that doesn’t have the error.” am I looking into the File Manager in the cPanel at my Host? And if so, will I be able to locate the functions.php? If not cPanel, then where am I looking? I don’t understand how filezilla allows me to see the info you’re suggesting I look at & change….but I’m willing to go if I can.

                  You say you always edit from FTP, does that mean you edit up on the Host Server files using the File Manager? BTW, my cPanel shows a File Manager and also a Legacy File Manager. Sound right to You?

                  A little guidance thru this and I’ll be on my way.

                  Thanx Wes,

                  Tom

                  #2206
                  Wes
                  Moderator

                    Yes you can use the cpanel ftp/file editor if you want, but I would recommend an external one like Filezilla. Since this is sort of an emergency and you need to get the site back up fast, you could just use the cpanel file editor for now since its already setup with your site.

                    Depending on your host, you may see a folder called “public_html” or something similar, then you should see your site name/url. Once you click into your site folder, look for “wp-content” then “themes” then “Legacy”. The functions.php file will be inside Legacy. You’ll need to replace it with the original functions.php (this can be found in your theme that you have saved on your computer). You could also see if you can edit the functions file if cpanel allows you to (try right click, edit…or look for an edit button). If it does then you can go in and delete the code you added earlier and click save to see if your site restores.

                    #2207
                    tjd
                    Customer

                      Thanx Wes, 
                      I’m off to to the Host and I’ll update you later.
                      Tom

                      …and I’ve just returned…SUCCESS!!! I HAVE A SITE AGAIN WES…..YEA!

                      I could access & edit in the cPanel so I deleted the block of code on the cPanel. You’re ‘the Man’ Wes!

                      OK now I’m gonna try that code once again, and to be sure, I just want to be sure of the correct placement in the .php code list. Should enter it directly after the 1st < ?php at the very top of the page or after ‘Start the engine’ and ‘Child theme’? just want to be certain…

                      Hopefully I’m not going to bother you again with this today.

                      Thanx for your attention and guidance,
                      Tom in a very grey, chilly Tokyo

                      #2208
                      Wes
                      Moderator

                        I would place it in the middle somewhere so its organized.

                        I got the code from the StudioPress code snippets page here – http://my.studiopress.com/snippets/comments/#speak-your-mind …….there are plenty more tutorials, and code snippets under the “Resources” link in the navigation.

                        #2209
                        tjd
                        Customer

                          Hey Wes,

                          Thanx for hand-holding me thru this debacle(to me anyway).

                          I’ll check-out some of the other codes you suggested too.

                          Happy Holidays,

                          Tom Dolan

                          #2210
                          Wes
                          Moderator

                            You’re Welcome!

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • The topic ‘speak your mind’ is closed to new replies.