Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #289993

    Hi,

    i missed to create at first a child theme for enfold. So evry change i make in the funtcions.php is lost on evry update.

    The most important rule is for Contact Form 7:
    add_filter( 'wpcf7_form_elements', 'do_shortcode' );

    As you see, it’s a very simple rule for using shortcodes from wordpress and also the theme in cf7.

    Is it somehow possible, to add the rule in another way, or that you implement it to the next update.

    Best regards
    patrick ;)

    #290504

    Hey Schloss Klaus!

    You can create a simple plugin just for this filter ;) Download this file: http://pastebin.com/download.php?i=BZj2xztg , rename it to contactformsevenfilter.php, then upload it into the wp-content/plugins/ folder and activate it like a standard wordpress plugin.

    Regards,
    Peter

    #290507

    There is a better way to manages changes to a themes functions.php. I’d recommend using the WP plugin: code-snippets. https://wordpress.org/plugins/code-snippets/ You can manage/catalog all your various function.php code changes, and active, deactivate, ext….. Also if you add a new function code using this plug-in, then activate code and the code breaks your site, you can put plug in into safe mode by adding a line code into you wp-config.php. define(‘CODE_SNIPPETS_SAFE_MODE’, true); how to do this is defined in plugins read me.txt.

    I am using this plugin to manage my function.pho changes in Enfold without any problems.

    #290523

    Hi!

    Thanks for the suggestion :)

    Cheers!
    Peter

    #294952

    thx, works fine :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘functions.php’ is closed to new replies.