• Resolved andrechaos

    (@andrechaos)


    How to change the Copyright text “Theme : eVision Corporate by eVision Themes. Proudly powered by WordPress”?

    I checked the functions.php and footer.php but found nothing

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi andrechaos!

    Taking a look at how the theme is coded, it appears that the theme uses hooks to output some of that. That particular hook is: evision_corporate_action_footer

    It is found in:
    https://themes.svn.www.ads-software.com/evision-corporate/1.1.4/inc/hooks/footer.php

    What you can do is, using a child theme, unhook that and then use your own.

    Something like:

    remove_action( 'evision_corporate_action_footer', 'evision_corporate_footer', 10 );
    add_action( 'evision_corporate_action_footer', 'echild_corporate_footer', 10 );
    function echild_corporate_footer(){
        // copy and modify evision_corporate_footer function to suit your needs
    }

    I hope it helps you out a little bit!

    Thread Starter andrechaos

    (@andrechaos)

    Thanks Jose, worked!
    Cheers,

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Happy to help and glad to see it worked for you. ??

    I have same problem with @andrechaos, i still don’t understand with ‘unhook that and then use your own’. Could you please explain?
    I have created child theme.

    In the example above as given by Jose Castaneda
    remove_action( 'evision_corporate_action_footer', 'evision_corporate_footer', 10 );

    It unhooks the default code that outputs copyright texts on the footer.

    Later ‘use your own’ means override this default behavior by creating new custom function

    function echild_corporate_footer(){
        // write your custom HTML codes for copyright or anything you want
    }

    and hook it back to same action
    add_action( 'evision_corporate_action_footer', 'echild_corporate_footer', 10 );

    what file in child theme we put these code to?

    @ngoctam1011, you should put above code in your child theme’s functions.php .

    Thank you.

    I have placed the code
    remove_action( ‘evision_corporate_action_footer’, ‘evision_corporate_footer’, 10 );
    in my child themes functions.php file, however, it isn’t working. Footer text/links are still there.

    Here is the complete code in my evision corporate child theme’s functions.php – any help would be appreciated!

    <?php
    //
    // Recommended way to include parent theme styles.
    // (Please see https://codex.www.ads-software.com/Child_Themes#How_to_Create_a_Child_Theme)
    //
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }
    //
    // Your code goes below
    //
    remove_action( ‘evision_corporate_action_footer’, ‘evision_corporate_footer’, 10 );

    Hello,
    The footer for that theme is added via this action in the parent theme:

    add_action( 'evision_corporate_action_footer', 'evision_corporate_footer', 10 );

    which displayed:
    Theme : eVision Corporate by eVision Themes. Proudly powered by WordPress

    You want to remove that action. To do that Go to your child theme directory’s functions.php file and add these lines to it.

    // Remove old copyright text
    add_action( 'init', 'evision_corporate_footer' );
    
    function evision_corporate_footer() {
    remove_action( 'evision_corporate_action_footer', 'evision_corporate_footer', 10 );
    }

    I hope that helps.
    Thanks!!

    Easier way is to edit ‘inc/hooks/footer.php’ in your child theme and remove this code:

    <?php printf( __( 'Theme : %1$s by %2$s.', 'evision-corporate' ), 'eVision Corporate', '<a href="'. esc_url('https://evisionthemes.com/').'" rel="designer" target="_blank">eVision Themes</a>' ); ?>
                                <a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'evision-corporate' ) ); ?>" target="_blank"><?php printf( __( 'Proudly powered by %s', 'evision-corporate' ), 'WordPress' ); ?></a>

    Removing from footer.php could cause problems if an update changes the layout though.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Copyright text’ is closed to new replies.