• Resolved homelessvinyl

    (@homelessvinyl)


    Hi there,

    I wouldn’t call myself a novice, however I am reasonably new to using WP and building my website predominently by myself, with some assistance from my far more experienced brother. He is unavailable to help at the moment so I’m turning to the good folk here for help.

    My website is almost ready to go live and in an attempt to add the social icons code via Symple-Shortcodes I now receive the following error at every menu or dashboard link:

    Parse error: syntax error, unexpected ‘.’ in /home/homele14/public_html/wordpress/wp-content/plugins/symple-shortcodes/symple-shortcodes.php on line 29

    I have my FTP File Manager open and have been able to locate the .php location of the file where the error seemingly appears. Here is the first 70 lines of code using Notepad++, which includes the Symple-Shortcodes-social-icon area:

    <?php
    /*
    Plugin Name: Symple Shortcodes
    Plugin URI: https://www.wpexplorer.com/symple-shortcodes
    Description: A free shortcodes plugin
    Author: AJ Clarke
    Author URI: https://www.wpexplorer.com
    Version: 1.1
    License: GNU General Public License version 3.0
    License URI: https://www.gnu.org/licenses/gpl-3.0.html

    Include functions */
    require_once( dirname(__FILE__) . ‘/includes/scripts.php’ ); // Adds plugin JS and CSS
    require_once( dirname(__FILE__) . ‘/includes/shortcode-functions.php’); // Main shortcode functions
    require_once( dirname(__FILE__) . ‘/includes/mce/symple_shortcodes_tinymce.php’); // Add mce buttons to post editor
    /*
    * Plugin: Symple Shortcodes Plugin
    * Author: AJ Clarke : https://wpexplorer.com
    * Copyright: Copyright (c) 2012, AJ Clarke
    * License: GNU General Public License version 3.0
    * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    */

    /* Clear Floats
    ================================================== */
    .symple-clear-floats {
    clear: both;
    }

    .symple-clearfix:after {
    content: “.”;
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    }

    /* Spacing
    ================================================== */
    .symple-spacing {
    display: block;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    }

    /* Social
    ================================================== */
    .symple-social-icon{
    display: inline-block;
    margin-right: 5px;
    }
    .symple-social-icon img{
    display: inline;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    }
    .symple-social-icon img:hover{
    opacity: 0.8;
    }

    According to Notepad++, line 29 is this one:
    .symple-clear-floats {

    Can anyone help me restore it all back to a functioning site (I don’t care if for the moment I don’t have the social-icons present) or provide a working solution to include the social-icons?

    Your help and advice is greatly appreciated.
    Richie

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you add the CSS to this file?

    Download the plugin, extract that file, use FTP or host file manager to upload the file (rename the one at site first).

    Then download the edited one and try again.

    If that does not work, rename the plugin folder /plugins/symple-shortcodes/ to /plugins/old-symple-shortcodes/

    Thread Starter homelessvinyl

    (@homelessvinyl)

    Thanks, I believe I added the code to CSS and updated/saved. It was about 3am this morning and I may not be recalling what I did exactly.

    Sorry, instructions might be losing me. Also, I don’t know how I “download the plugin” when at every turn “I now receive the following error at every menu or dashboard link” (as stated in opening post)

    Cheers.

    Contact your host and ask them if they can show you how to rename a plugin folder.

    Thread Starter homelessvinyl

    (@homelessvinyl)

    Oh, I still have my FTP File Manager open at a page that I’m able to edit either the file name:
    /home/homele14/public_html/wordpress/wp-content/plugins/symple-shortcodes/symple-shortcodes.php

    OR

    I could edit line 29, as described in opening post.

    What would you recommended I do PV?

    Many thanks!

    Thread Starter homelessvinyl

    (@homelessvinyl)

    Sorted PV. Found the folder level and was able to change the filename.

    Thanks for all your help!
    Richie

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error and syntax error’ is closed to new replies.