WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Parse error: syntax error, unexpected '}' (20 posts)

  1. sunsetco
    Member
    Posted 1 year ago #

    I am inexperienced in editing websites, however, I have manually tried getting rid of dummy text box on header (frontpage) of theme Cloriato.

    What I did was deleting some text from
    http://sunset-comfort.com/wp-admin/theme-editor.php?file=front-page.php&theme=cloriato-lite&scrollto=807&updated=true,
    which I tought would do, but it gave me an error on live 37, so I pasted the text back (I had kept it on a notepad just in case.)
    Now I am getting error:
    Parse error: syntax error, unexpected '}' in /home/sunsetco/public_html/wp-content/themes/cloriato-lite/front-page.php on line 32

    my site:
    http://sunset-comfort.com/

    please help :-)

  2. kjodle
    Member
    Posted 1 year ago #

    The first link you provided asks us to login. We can't see that code from your theme editor. You'll need to paste small sections here (between backticks, please) or larger portions in pastebin.

    Your problem is most likely that you simply have an extra "}" or you are missing an opening "{".

    You can just replace the file in question via ftp.

  3. sunsetco
    Member
    Posted 1 year ago #

    in that case, the the issue could lie in the following paragraphs, because without them, my site can actually be seen, but with a broken design--->

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    <?php }  else {  ?>
              <h2><a href="#"><?php _e(  'Single Click Install WordPress Theme', 'cloriato'); ?></a></h2>
          <?php } ?>
          <?php if ( inkthemes_get_option('inkthemes_slidedescription1') !='' ) {  ?>
          <p><?php echo stripslashes( inkthemes_get_option('inkthemes_slidedescription1')); ?></p>
          <?php }  else {  ?>
          <p><?php _e( 'Get Your Whole Site ready in an Instant. Just Upload the Theme and Press the Activate Button, Your whole site would be loaded with all the Dummy Content and all.', 'cloriato'); ?></p>
          <?php } ?>
  4. sunsetco
    Member
    Posted 1 year ago #

    <?php }  else {  ?>
              <h2><a href="#"><?php _e( 'Single Click Install WordPress Theme', 'cloriato'); ?></a></h2>
          <?php } ?>
          <?php if ( inkthemes_get_option('inkthemes_slidedescription1') !='' ) {  ?>
          <p><?php echo stripslashes(inkthemes_get_option('inkthemes_slidedescription1')); ?></p>
          <?php }  else {  ?>
              <p><?php _e( 'Get Your Whole Site ready in an Instant. Just Upload the Theme and Press the Activate Button, Your whole site would be loaded with all the Dummy Content and all.', 'cloriato'); ?></p>
          <?php } ?>
  5. sunsetco
    Member
    Posted 1 year ago #

    I need to get rid of the dummy text and the box it is in, without messing with the header pic, can it be done?

  6. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which code is line 32?

  7. sunsetco
    Member
    Posted 1 year ago #

    my page:
    http://sunset-comfort.com/

    the current error message:
    "Parse error: syntax error, unexpected '}' in /home/sunsetco/public_html/wp-content/themes/cloriato-lite/front-page.php on line 31"

    ... where 'line 31' is where </h2> is :

    <h2><a>"><?php echo stripslashes(inkthemes_get_option('inkthemes_slideheading1')); ?></a></h2>

    ...does it make any sense? Please advise.

  8. Andrew
    Forum Moderator
    Posted 1 year ago #

    Can you re-post that using backslashes surrounding your code?
    E.g

    This is your code

    Alternatively, use the (code) button above your post.

  9. sunsetco
    Member
    Posted 1 year ago #

    my page:
    http://sunset-comfort.com/

    the current error message:
    "Parse error: syntax error, unexpected '}' in /home/sunsetco/public_html/wp-content/themes/cloriato-lite/front-page.php on line 31"

    ... where 'line 31' is where </h2> is :

    <h2>"><?php echo stripslashes(inkthemes_get_option('inkthemes_slideheading1')); ?></h2>

    ...does it make any sense? Please advise.

  10. sunsetco
    Member
    Posted 1 year ago #

    issue not resolved yet, please help!

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Clearly, your theme was created by InkThemes. Have you tried asking on their support forums? They'd be best equipped to help you with their non-free theme.

  12. sunsetco - Please stop bumping.

    As Otto mentioned, that theme was created by InkThemes. It happens to be a premium theme (i.e. one you purchased) - http://www.inkthemes.com/wp-themes/cloriato-wordpress-theme/ - which comes with "Lifetime support"

    Please go ask them :) We encourage you to utilize the services you purchase, in part because they're the best resource, but also in order to allow them to keep working! Taking away their money by undercutting with free support is a little rude of us, and we don't support purchased themes/plugins here because of that.

  13. sunsetco
    Member
    Posted 1 year ago #

    Please do not consider this as bumping, but I do have to tell you that I actually was not aware that Cloriato "Lite" was a paid for theme, since I just installed it and activated it without having to pay any prior fee of any kind. I think that Cloriato (bear) is the premium one, so I am not getting support for my Lite version from InkThemes... coukd you help me please?

  14. esmi
    Forum Moderator
    Posted 1 year ago #

    The wordpress.org support forums are meant for the core application, themes and plugins that are distributed on wordpress.org.

  15. sunsetco
    Member
    Posted 1 year ago #

    OK my bad then... I started looking at the WordPress themes, but since I am looking for a static website format not so bloggish, odds are that I got drifted away. Could you advise how can I get a static looking theme from WordPress and replace the current one, please?

  16. esmi
    Forum Moderator
    Posted 1 year ago #

    Most recent themes in http://wordpress.org/extend/themes/ should work with a static front page.

  17. sunsetco
    Member
    Posted 1 year ago #

    Some minutes before I got your last reply I had found and activated theme 'WP-Creativix' by looking up at http://sunset-comfort.com/wp-admin/theme-install.php, I just searched it by the word 'portfolio.' It was installed and activated without paying any fees. I guess my question is whether it is supported in this forum in case of trouble.

    As to the original post drive...the issue has been resolved, since I am not using the issued theme (Cloriato Lite) anymore. Thank you.

  18. esmi
    Forum Moderator
    Posted 1 year ago #

    I guess my question is whether it is supported in this forum in case of trouble.

    Pretty sure I spotted that theme's developer responding to support issues only yesterday. To increase the chances of a quicker response, always make sure that you post in the theme's dedicated forum (reached via the theme's page in the Theme Repository). Tagging your topic with the theme's folder name wouldn't go amiss either.

  19. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    For example, if you visit that theme's page here:
    http://wordpress.org/extend/themes/wp-creativix

    You can see that there is a "Support" tab at the top. That shows you all the support questions specifically for that theme, and you can leave your own at the bottom of the page, if you can't find your answers in other people's questions.

    Essentially, theme authors who make their themes available on WordPress.org for free have their own support area with each theme. For themes not obtained from WordPress.org, we recommend going to the theme authors directly, on their own sites.

    Now, Cloriato Lite is indeed a free theme available on this site:
    http://wordpress.org/extend/themes/cloriato-lite

    However, you only said "Cloriato" before, and a Google search for it (yeah, I don't know all the themes individually) led me to believe you were referring to their paid version of the theme. In the future, it helps if you post in the proper place, so that the theme authors can receive email notifications and the like. If you had gone to the theme's specific Support page and made your post there, then it would have been much more obvious as to which theme you were referring to.

  20. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    With specific regards to your original problem, if you edit a file and it causes problems, then restore the original file from before you edited it. You can just redownload the theme to get a copy of all the original files. The download button is on this page:
    http://wordpress.org/extend/themes/cloriato-lite

    And it will give you a zip file of the theme. Replace the front-page.php file with the file from the download.

Topic Closed

This topic has been closed to new replies.

About this Topic