WordPress.org

Ready to get started?Download WordPress

Forums

Adding a filter code to Convention Theme's functions.ph file giving this error (3 posts)

  1. anilbisht04
    Member
    Posted 1 year ago #

    Adding a filter code to Convention Theme's functions.ph file giving this error:

    Parse error: syntax error, unexpected ':' in /home/uttarpgu/public_html/newbookrack.com/wp-content/themes/convention/functions.php on line 70

    I forgot to backup my original functions.php template:

    So any of the two solutions can be good:

    I revert the template to its original state

    OR

    Have this error corrected.

    Waiting for your Help. Thanks

  2. Tarsem Singh
    Member
    Posted 1 year ago #

    Login to your website through FTP and edit your theme function file by wp-content/themes/convention/functions.php on line 70

  3. Adding a filter code to Convention Theme's functions.ph

    Using FTP or whatever file management tools your host has provided you with and upload a fresh copy of that functions.php file from that theme.

    http://wordpress.org/extend/themes/convention

    Also you may want to consider using a child theme instead of editing that theme directly. It's easy and will protect your changes from any theme updates.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.