Syahir Hakim
KeymasterKuala Lumpur, Malaysia
When not perched on my workspace, I tremendously enjoy hiking in the bushes and climbing mountains. They serve as much-needed refuges from the pretense of cities.
Forum Replies Created
-
Admin
Yep, the
.page-titleCSS is being printed out to the head even when it is unnecessary. It will be fixed in the upcoming version.Admin
Which version of WordPress are you using? If it’s a very old version before the Custom menu feature was introduced, that might explain it.
Admin
Thanks, Danny! Won’t be long now 🙂
Admin
Admin
WP Admin > Appearance > Graphene Options > Display > Excerpts Display Options > Show More link for manual excerpts.
Admin
The error is exactly what it says: you cannot redeclare the same function.
Instead of copying the functions I posted above two times, do this instead:
// Change some strings
function graphene_filter_readmore( $translated, $original, $domain ) {
$strings = array(
'Continue reading »' => 'My New Text »',
'Read the rest of this entry »' => 'My Other New Text »',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_readmore', 10, 3 );Admin
Oh, in that case you need to use the Custom Excerpt feature to control the text. The
<!--more-->tag is for the normal, full-content blog-layout listing.In the Edit Post screen, near the upper right corner, click on the Screen Options pulldown tab and make sure you tick “Excerpt”. Then an “Excerpt” box will have been added to the page, under the “Graphene post-specific options” box. Enter the custom excerpt you want to be displayed in that box.
Admin
Or you don’t actually have to hide the header div, but just use absolute positioning to position the slider exactly on top of the header image, and give it a default solid background so that the header image will never be visible.
Or just override the header image CSS so that it has no background at all.
Admin
You can use the
<!--more-->tag.
Admin
The same code applies. Just change the string inside that code with the string that you want to replace:
// Change "Read the rest of this entry" link Button
function graphene_filter_readmore( $translated, $original, $domain ) {
$strings = array(
'Read the rest of this entry »' => 'My New Text »',
);
if ( ! empty( $strings[$original] ) ) {
$translations = &get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'graphene_filter_readmore', 10, 3 );
