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
You might also want to put something as your site title and description in WP Admin > Settings > General. It’s rather glaring to see your site’s title in the browser tab as just “>>”.
Admin
In reply to: SEO – Complete controle over H1 title – Not the permalink in the archive
October 29, 2011 at 12:08 am #18779Open up
loop.phpfile and navigate to line 71. Then, replace this line:<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'graphene'), the_title_attribute('echo=0')); ?>"><?php if (get_the_title() == '') {_e('(No title)','graphene');} else {the_title();} ?></a>with this:
<?php if ( ! is_singular() ) : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(esc_attr__('Permalink to %s', 'graphene'), the_title_attribute('echo=0')); ?>">
<?php endif; ?>
<?php if (get_the_title() == '') {_e('(No title)','graphene');} else {the_title();} ?>
<?php if ( ! is_singular() ) : ?>
</a>
<?php endif; ?>I’ll be making the change in the next major update, so you shouldn’t worry about losing the change when you update the theme.
Admin
You can use the custom fields in the post to give them the release date. Then you can create a custom query in the sidebar using PHP Widget to only show posts whose release date matches the current date.
And I just realised that is sort of what Josh was saying.
Admin
In reply to: Change text "Category Archive" on Category pages to be the Category Title
October 28, 2011 at 11:57 pm #18958Insert this into your child theme’s
functions.phpfile:function graphene_filter_gettext( $translated, $original, $domain ) {
$strings = array(
'Category Archive: <span>%s</span>' => '<span>%s</span>',
);
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 );Basically every text string in the theme is passed through WordPress first so that the strings can be translated properly into the 20+ languages Graphene theme is available in. The function above just makes use of the WordPress function that translates the strings to change the original text string to a custom one.
Admin
OK, will add this option in the next major update.
Admin
Quote:Syahir… any thoughts on including a php widget as a standard feature in graphene?It’s unnecessary, particularly as there’s already a plugin that provides that functionality. There’s plenty of things that can be added that might be useful to some, but if we add them simply because we can, before long the theme’s codes will be so bloated with features that most of time most of the theme users won’t use. It will also make it more difficult to maintain for the developers and customise for the users.
Aside from that, the theme will have to go through the WordPress Theme Review Team before being published on the WordPress.org theme repository. The general consensus in the WordPress community is that themes should only be concerned with the presentation of a site, and leave the functionalities to plugins.
Admin
Quote:Go to your admin panel, and under graphene options, in the “front page options” menu, choose one of your post categories… save it… then go back and choose “disabled” and save it again.No need to select any category first, can just select disabled.
Quote:Why did this error occur?We changed the default settings for the front page posts categories from “default” to an empty array to fix an issue with the front page posts listing, and somehow for some servers the old default settings was retained. Since there is no category with “disabled” as the ID, hence there is no posts shown.
Admin
That’s most probably a remnant from the previous theme that you’re using for your site, or a plugin. The Graphene theme does not provide a ready-made contact page, nor does it have a Small Biz Options panel.
Admin
In reply to: Adsense not displaying in right sidebar on the main page…
October 27, 2011 at 11:42 pm #17831You can change how many ads should be displayed in between the posts by adding this code in your child theme’s
functions.phpfile:<?php
function graphene_custom_adsense_limit(){
return 2;
}
add_filter( 'graphene_adsense_ads_limit', 'graphene_custom_adsense_limit' );
?>That will limit the in-between posts adsense ads to just 2, leaving 1 more ad available for your sidebar.
Admin
In reply to: SEO – Complete controle over H1 title – Not the permalink in the archive
October 27, 2011 at 11:31 pm #18775Quote:Event if I edit the link the “Theme” gives automaticaly a h1 to the url, which is my main concern.There is much more than a font size in the h1 tag. The h1 tells the search engine what is the main subject of a page.
I don’t think it matters. The search engines should be intelligent enough to recognize the text and the link, and treats them accordingly. Furthermore, like TobiF said, the link in the h1 tag points to the article itself, so in any case it shouldn’t affect your SEO.
Sounds to me like you’re nitpicking on the issue here. You should probably direct your attention more to other factors that have more significant effects on SEO, like content and backlinks from high-PR sites, etc.
