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
Just to get you started:
#container {
position: relative;
}
#nav {
position: absolute;
width: 100%;
top: 550px;
}
.featured_slider {
margin-bottom: 47px;
}Admin
It’s really difficult to see which elements that need to be hidden when we can’t see the website. Try using Firebug plugin for Firefox to figure it out yourself.
Admin
Glad you found it 🙂
Admin
In reply to: Changing a Subpage Image Thumbnail that is different from the featured image
July 30, 2011 at 8:20 pm #15825Sorry, no way to currently do this. The theme always give preference to featured image first, and then to the other images in the post.
Admin
Try this:
.type-page .post-title {
display: none;
}Admin
Insert this in Graphene Options > Display > Custom CSS:
.page .post-title {
display: none;
}Admin
If there is no featured image selected, it’ll display the first image uploaded for that post, even if that image is not inserted into the post.
Admin
Scrap my suggestion above. Here’s a (much) better way. Throw this code into your child theme’s
functions.phpfile:function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Follow me on Twitter' => 'Follow my organisation on Twitter',
);
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 );Obviously, change the following line to reflect your organisation’s name or initial:
'Follow me on Twitter' => 'Follow my organisation on Twitter',Admin
Editing the theme’s
functions.phpfile directly is bad. Don’t do it.Doing this in a child theme will require creating a new
functions.phpfile, and then copying the entire code block that defines the Twitter widget from the theme’sfunctions.phpfile into the child theme’sfunctions.phpfile, and then make the edit in the child theme’sfuncitons.phpfile. This is not as bad as editing the theme’s originalfunctions.phpfile, but it’s still bad, because you will miss out on any improvements on the Twitter widget in future updates.The third option would be to use the Codestyling Localization plugin, which will allow you to modify the theme’s strings without actually touching any of the theme’s codes.
Admin
Did this happen from the beginning, or just recently?
