Minori

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Change text of events plugin #1193761
    Minori
    Participant

    Hi! I’ve tried to change the code on functions.php but then the page just crashes, I don’t know if I didn’t understand the instructions, I’ve placed the code on top of the functions.php file like so:

    <?php
    
    $custom_text = array(
            'Venue' => 'Location',
            'Related %s' => 'Similar %s',
    
    /**
     * Autoloader
     *
     * Automatically load files when their classes are required.
     */
    spl_autoload_register( 'avada_register_classes' );
    function avada_register_classes( $class_name ) {
    	if ( class_exists( $class_name ) ) {
    		return;
    	}
    	if ( 'TGM_Plugin_Activation' == $class_name ) {
    		return;
    	}
    	$class_path = get_template_directory() . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php';
    	if ( file_exists( $class_path ) ) {
    		include $class_path;
    	}
    	if ( false !== strpos( $class_name, 'Avada_AvadaRedux' ) ) {
    		$class_path = get_template_directory() . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'avadaredux' . DIRECTORY_SEPARATOR . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php';
    		if ( file_exists( $class_path ) ) {
    			include $class_path;
    		}
    	}
    }

    and also like this

    <?php
    
    /**
     * Autoloader
     *
     * Automatically load files when their classes are required.
     */
    spl_autoload_register( 'avada_register_classes' );
    function avada_register_classes( $class_name ) {
    	if ( class_exists( $class_name ) ) {
    		return;
    	}
    	if ( 'TGM_Plugin_Activation' == $class_name ) {
    		return;
    	}
    	$class_path = get_template_directory() . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php';
    	if ( file_exists( $class_path ) ) {
    		include $class_path;
    	}
    	if ( false !== strpos( $class_name, 'Avada_AvadaRedux' ) ) {
    		$class_path = get_template_directory() . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'avadaredux' . DIRECTORY_SEPARATOR . 'class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php';
    		if ( file_exists( $class_path ) ) {
    			include $class_path;
    		}
    	}
    }

    but either way the site crashes,help!

    Nora

    in reply to: Delete buttons on event page and events post #1193759
    Minori
    Participant

    Hello! Thank you for your quick answer! I’ve changed the style.css file as well as copied the code onto the css theme editor and nothing happened. I would like to as as well if it’s possible to display the events navigation (from previous to next) on top of the events instead of the bottom. Thank you so much!!

    Nora

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