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
Search for
Navigationin the style.css file. Be warned, you may not like what you’ll find there.Admin
That code has far too many closing
</div>s. Try deleting them one by one until the footer layout works properly again.Admin
Uh oh, I was under the impression that you already have a child functions.php.
Anyways, try adding
<?phpat the beginning of the child functions.php file, and?>at the end.Admin
Try following the methods outlined here: https://forum.graphene-theme.com/topic/changing-view-full-post
Admin
WordPress excerpt function strips all HTML tags from excerpt. In the latest version of the theme (ver 1.3), I have added an option to retain HTML tags in excerpts. Check out the option at Wp Admin > Appearance > Graphene Options > Display > Excerpts Display Options > Retain these HTML tags in excerpts
Admin
In reply to: Use random header image and defined specific header image.
May 27, 2011 at 9:05 pm #14396In Edit Post and Edit Page screen, look at the bottom right of the screen where there’s a Featured Image section. You can set a featured image for any post/page using that.
Admin
Those functions you mention are provided by the TinyMCE editor bundled with WordPress itself. The theme has nothing to do with those.
Admin
Use Custom Menu in WordPress admin > Appearance > Menus.
Admin
OK, there’s a few steps you need to take.
First, open up the theme’s
index.phpfile and insert this code just before the line that saysget_template_part('loop', 'index');:do_action('graphene_index_pre_loop');Make sure it’s the theme’s
index.phpfile. Don’t worry about losing the modification when you update the theme, as I’ll be including the code in the theme for the next update myself.Then, insert this code inside your child theme’s
functions.phpfile:/**
* Remove a certain category from the main loop
*/
function graphene_exclude_cat(){
if (is_home()){
global $wp_query, $query_string;
$cats = array(1); // The IDs of categories to be excluded
$args = wp_parse_args(array('category__not_in' => $cats, 'paged' => get_query_var('paged')), $query_string);
// Run the modified query
query_posts($args);
// Tell WordPress to set this is the home/blog page
$wp_query->is_home = true;
}
}
add_action('graphene_index_pre_loop', 'graphene_exclude_cat');Make sure you change the ID in this line:
$cats = array(1); // The IDs of categories to be excludedwith the ID of the category you wish to exclude.
Or you can also use the much easier (but not ideal) way: just change the published date of the slider posts to something very very long ago, so they’ll show up last in the blog posts list.
Admin
Try add this into the Custom CSS or your child theme’s
style.cssfile:.home .page{
display: none;
}PS: That “I want to remove this section” on your home page makes me loled. Wasn’t expecting that at all 😀
