Modified Functions & Styles Separate from Theme's

Home Forums Calendar Products Events Calendar PRO Modified Functions & Styles Separate from Theme's

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29940
    Grec
    Member

    As mentioned in the thread below I added a function to my theme’s function.php file in order to control the data that is listed in the ical feed.

    Control Data in iCal Feed

    In closing out that discussion I asked a question about how to remove that update from my theme’s function.php file and placing it into a file in a sub-folder (e.g., the usual recommended “events” one) so that it wouldn’t get overwritten during theme updates.

    I’d also be interested in learning how to do this for style modifications as well. Right now the recommended approach seems to be to override the Events Calendar default style by placing them in your theme’s style.css file. Of course again like above, if you update your theme, those changes might get lost.

    Any thoughts on how to do this?

    #29963
    Andy Fragen
    Moderator

    Salvador, the proper way to do this would be to create a child theme and add that code to your child theme’s functions.php file. Read more about child themes at

    http://codex.wordpress.org/Child_Themes
    http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

    #29964
    Andy Fragen
    Moderator

    The proper way to do this is to create a child theme and place your code in the child’s functions.php file.

    http://codex.wordpress.org/Child_Themes

    Sorry if this is duplicated.

    #29976
    Barry
    Member

    Thanks Andy. Salvador: does that answer your question or do you need any further input here?

    #978354
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Modified Functions & Styles Separate from Theme's’ is closed to new replies.