Forum Replies Created
-
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
December 12, 2013 at 12:32 pm #41309Well, 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.
Viewing 2 posts - 1 through 2 (of 2 total)
