• Hi there, this is my first website I have not done coding before and would love some help.
    The copyright says:
    Copyright © 2015 Perfect Finish Painting. Powered by WordPress & Author: Ben Alvele, alvele.com & Active theme Great

    I would like to change the part that says:
    Author: Ben Alvele, alvele.com & Active theme Great

    To:
    Copyright © 2015 Perfect Finish Painting. Powered by WordPress & Designer: Nicole Dudding, yourpageyoursite.com.au

    The footer.php in the editor says below, would anyone please be able to help me as I don’t want to mess up the website I have created by doing something wrong in the coding area, I look forward to any assistance.
    Nicole.

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php
    /**
    * The template for displaying the footer.
    *
    * @package Great
    
    */
    ?>
    <?php great_wp_footer(); wp_footer(); ?>
    
    </body>
    </html>
Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi @ndudding, I’ve just looked into how you could change the copyright information and it doesn’t look possible.

    Usually themes provide a way of overriding a function, but there doesn’t appear to be a way to override the ‘great_wp_footer’ funtion that lives in template-tags.php.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oh wait, you can just copy the ‘footer.php’ file into your Child Theme folder and replace all of the code with this:

    <?php
    /**
    * The template for displaying the footer.
    *
    * @package Great
    
    */
    ?>
    <?php wp_footer(); ?>
    
    </body>
    </html>

    I think that should work

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    It’s doable but the solution is inelegant. There’s probably an better way to do this, but this works.

    First make and activate a child theme.

    https://codex.wordpress.org/Child_Themes

    I created one in /themes/great-child and put these 3 files there.

    style.css

    /*
    Theme Name: Great Child Theme
    Description: Child theme for the Great theme
    Version: 0.1
    Template: great
    */

    functions.php is too much to paste here, use this link instead.

    http://pastebin.com/TB8DuZRw

    footer.php

    <?php
    
    great_child_wp_footer(); wp_footer(); ?>
    
    </body>
    </html>

    The footer.php file is a copy of the original great/footer.php file with one difference: the file calls great_child_wp_footer() and not great_wp_footer().

    That functions.php file has a duplicate of the parent theme’s function but it has a different name and incorporates the footer changes you want.

    Theme Author benalvele

    (@benalvele)

    🙁

    rilkel

    (@rileykeller)

    🙂

    dedide

    (@dedide)

    This is a bit of bummer for Ben to get no credit for his theme, and makes it look like the OP is taking all the credit.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I would recommend the author looks at other, less invasive ways to receive credit.

    rilkel

    (@rileykeller)

    I had changed it, but after Ben was very helpful with a question I had, I decided to leave his name on the bottom.

    Hi all,
    To replace theme text in a more proper way it is sufficient to add this function to functions.php of a child theme:

    <?php
    function set_theme_text(){
    //rewrite text of the  function called "great_site_contact" located in inc/extras.php
    set_theme_mod ( 'mail', 'new email@gmail.com' );
    set_theme_mod( 'adress', '' );
    set_theme_mod( 'phone', '+216 000 000' );
    set_theme_mod( 'mail_url' );
    set_theme_mod( 'phone_url' );
    //rewrite text of the  function called "great_footer_quote" located in inc/extras.php
    
    set_theme_mod('footer_quote', '');
    set_theme_mod( 'footer_author', 'new author name');
    set_theme_mod( 'footer_link', esc_url( home_url( '/' ) ) );
    set_theme_mod( 'footer_linktext', __('Read more...', 'great') );
    
    }
    ?>

    then, call it from the copy of footer.php just before calling the differents footers:

    <?php
    /**
     * The template for displaying the footer.
     *
     * @package Great
     */
    
    // Theme Footer Copyright Info-Text
    
    set_theme_text();
    
    echo great_copyright_infotext();great_wp_footer();wp_footer(); ?></body></html>

    If you would to hide a given text leave it blank.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi @mohamed.belhassen, this thread is 6 months old and references an older version of the theme; version 0.9. In the original template-tag.php file, there wasn’t a theme setting that you could utilise because the signature was outputted from a string (inside of printf):

    <?php printf(__('Author: %s', 'great' ), 'Ben Alvele, <strong><a target="_self" href="http://alvele.com/">alvele.com</a></strong>' ); ?>

    In the new version, 0.13, the theme signature is instead added into the source code of each page.

    This is in functions.php:

    /**
     * Footer Copyright
     */
    function great_copyright_infotext () {
    	return "<!-- Powered by WordPress & Author: Ben Alvele, alvele.com & Active theme Great -->";
    }

    This is in footer.php:

    echo great_copyright_infotext();great_wp_footer();wp_footer(); ?></body>

    Hope that helps explain why your technique won’t work for the signature.

    Hello
    @riley.keller [ Have tried changing the footer notes but cant seem to get it right! How did you solve it?

    Hey @ichiex517,

    As per forum welcome, you’re required to create your own thread instead of posting in a 9 months old thread. Hope you understand.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Change the Copyright text in the Great Theme’ is closed to new replies.