luka1002

Member

Forum Replies Created

  • In reply to: Change Powered by WordPress and the Graphene Theme

    #41311
    Quote:
    It is a PHP code. You need to put that code after the opening PHP tag, i.e <?php.

    Try this,

    <?php

    function graphene_filter_gettext( $translated, $original, $domain ) {

    $strings = array(

    ‘Powered by %1$s and the %2$s.’ => ‘This site does not have Super Cow power!’,

    );

    if ( ! empty( $strings[$original] ) ) {

    $translations = &get_translations_for_domain( $domain );

    $translated = $translations->translate( $strings[$original] );

    }

    return $translated;

    }

    add_filter( ‘gettext’, ‘graphene_filter_gettext’, 10, 3 );

    This is better, removed all but my text is not there?

    In reply to: Change Powered by WordPress and the Graphene Theme

    #41309

    Well, i wonna remove everything from footer and place my one text. Have to do it in child theme. Tried this code up, and does not work. When loading functions.php (from child) first loads text of code and than normal blog like no change. I removed this functions.php for now.

    http://electronicequip.net/

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