Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Add code snippet to functions.php #115970
    Biacna
    Participant

    @Mahesh: Thanks. I tried adding the snippet code at the end. But then my site got 500 internal server error. Can you advise what’s gone wrong?

    <?php
    /**
    * Functions and definitions
    *
    * Sets up the theme using core.php and provides some helper functions using custom functions.
    * Others are attached to action and
    * filter hooks in WordPress to change core functionality
    *
    * @package Catch Themes
    * @subpackage Clean Education
    * @since Clean Education 0.1
    */

    //define theme version
    if ( !defined( ‘CLEAN_EDUCATION_THEME_VERSION’ ) ) {
    $theme_data = wp_get_theme();

    define ( ‘CLEAN_EDUCATION_THEME_VERSION’, $theme_data->get( ‘Version’ ) );
    }

    /**
    * Implement the core functions
    */
    require trailingslashit( get_template_directory() ) . ‘inc/core.php’;

    /**
    * Removes link to a recurring event’s RSS feed from the <head>
    */
    function tribe_remove_recurring_feed() {
    if ( tribe_is_recurring_event() ) {
    remove_action( ‘wp_head’, ‘feed_links_extra’, 3 );
    }
    }
    add_action( ‘template_redirect’, ‘tribe_remove_recurring_feed’ );

    in reply to: Add code snippet to functions.php #115922
    Biacna
    Participant

    @Mahesh: Thank you very much. Can you advise exactly where should I insert the code. Below is the functions.php

    <?php
    /**
    * Functions and definitions
    *
    * Sets up the theme using core.php and provides some helper functions using custom functions.
    * Others are attached to action and
    * filter hooks in WordPress to change core functionality
    *
    * @package Catch Themes
    * @subpackage Clean Education
    * @since Clean Education 0.1
    */

    //define theme version
    if ( !defined( ‘CLEAN_EDUCATION_THEME_VERSION’ ) ) {
    $theme_data = wp_get_theme();

    define ( ‘CLEAN_EDUCATION_THEME_VERSION’, $theme_data->get( ‘Version’ ) );
    }

    /**
    * Implement the core functions
    */
    require trailingslashit( get_template_directory() ) . ‘inc/core.php’;

Viewing 2 posts - 1 through 2 (of 2 total)