WordPress.org

Ready to get started?Download WordPress

Forums

All-in-One Event Calendar
Putting themes in the themes folder (2 posts)

  1. gwc_wd
    Member
    Posted 1 year ago #

    To get All-in-One Event Calendar to follow standard WordPress directory structure, having theme folders in the themes directory, then a couple of simple edits to the file all-in-one-event-calendar.php will do the trick. Note: You need to edit the file before you activate the plugin, or if you do it after you have activated, then you will need to manually delete the existing theme folder from the wp-content main directory.

    My real purpose in doing this was a nagging stubbornness to demonstrate that putting the theme files in the themes directory is a viable option. For sane users I don't think it makes a wit of difference and you would have to re-edit the all-in-one-event-calendar.php file again after every upgrade. Not being quite sane, I intend to do just that.

    Anyway, I've been running with these edits for about a week on the newest version, 1.7, and have seen no ill effects. In fact 1.7 is definitely an advance on 1.5 well worth having.

    Line 195
    define( 'AI1EC_THEMES_ROOT', WP_CONTENT_DIR . '/' . AI1EC_THEMES_FOLDER );
    Change to
    define( 'AI1EC_THEMES_ROOT', WP_CONTENT_DIR . '/themes/' . AI1EC_THEMES_FOLDER );

    Line 200
    define( 'AI1EC_THEMES_URL', WP_CONTENT_URL . '/' . AI1EC_THEMES_FOLDER );
    Change to
    define( 'AI1EC_THEMES_URL', WP_CONTENT_URL . '/themes/' . AI1EC_THEMES_FOLDER );

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  2. Yani Iliev
    Member
    Posted 1 year ago #

    I highly recommend that you DO NOT make that change.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic